more options moved from luaconf.h into internal files

This commit is contained in:
Roberto Ierusalimschy
2009-12-17 10:50:20 -02:00
parent e0f9d1c8f5
commit 46f1429936
3 changed files with 53 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstrlib.c,v 1.145 2009/11/26 16:49:28 roberto Exp roberto $
** $Id: lstrlib.c,v 1.146 2009/12/17 12:26:09 roberto Exp roberto $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
@@ -698,6 +698,24 @@ static int str_gsub (lua_State *L) {
/* }====================================================== */
/*
** length modifier for integer conversions ** in 'string.format' and
** integer type corresponding to the previous length
*/
#if defined(LUA_USELONGLONG)
#define LUA_INTFRMLEN "ll"
#define LUA_INTFRM_T long long
#else
#define LUA_INTFRMLEN "l"
#define LUA_INTFRM_T long
#endif
/* maximum size of each formatted item (> len(format('%99.99f', -1e308))) */
#define MAX_ITEM 512
/* valid flags in a format specification */