aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 09382c6b..c34a82ef 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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 */