diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:50:20 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:50:20 -0200 |
commit | 46f1429936ff7cde274f9896d022ab494567ee7a (patch) | |
tree | 9fdba8a4b51ca29e1cb91088b4db8e461a9c6426 /lstrlib.c | |
parent | e0f9d1c8f5cca74d1ad4017a1f14ff1acac2075a (diff) | |
download | lua-46f1429936ff7cde274f9896d022ab494567ee7a.tar.gz lua-46f1429936ff7cde274f9896d022ab494567ee7a.tar.bz2 lua-46f1429936ff7cde274f9896d022ab494567ee7a.zip |
more options moved from luaconf.h into internal files
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.145 2009/11/26 16:49:28 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.146 2009/12/17 12:26:09 roberto Exp roberto $ |
3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -698,6 +698,24 @@ static int str_gsub (lua_State *L) { | |||
698 | /* }====================================================== */ | 698 | /* }====================================================== */ |
699 | 699 | ||
700 | 700 | ||
701 | /* | ||
702 | ** length modifier for integer conversions ** in 'string.format' and | ||
703 | ** integer type corresponding to the previous length | ||
704 | */ | ||
705 | |||
706 | #if defined(LUA_USELONGLONG) | ||
707 | |||
708 | #define LUA_INTFRMLEN "ll" | ||
709 | #define LUA_INTFRM_T long long | ||
710 | |||
711 | #else | ||
712 | |||
713 | #define LUA_INTFRMLEN "l" | ||
714 | #define LUA_INTFRM_T long | ||
715 | |||
716 | #endif | ||
717 | |||
718 | |||
701 | /* maximum size of each formatted item (> len(format('%99.99f', -1e308))) */ | 719 | /* maximum size of each formatted item (> len(format('%99.99f', -1e308))) */ |
702 | #define MAX_ITEM 512 | 720 | #define MAX_ITEM 512 |
703 | /* valid flags in a format specification */ | 721 | /* valid flags in a format specification */ |