diff options
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.100 2003/10/07 20:13:41 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.101 2004/01/02 11:54:14 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 | */ |
@@ -12,6 +12,7 @@ | |||
12 | #include <string.h> | 12 | #include <string.h> |
13 | 13 | ||
14 | #define lstrlib_c | 14 | #define lstrlib_c |
15 | #define LUA_LIB | ||
15 | 16 | ||
16 | #include "lua.h" | 17 | #include "lua.h" |
17 | 18 | ||
@@ -20,9 +21,7 @@ | |||
20 | 21 | ||
21 | 22 | ||
22 | /* macro to `unsign' a character */ | 23 | /* macro to `unsign' a character */ |
23 | #ifndef uchar | ||
24 | #define uchar(c) ((unsigned char)(c)) | 24 | #define uchar(c) ((unsigned char)(c)) |
25 | #endif | ||
26 | 25 | ||
27 | 26 | ||
28 | typedef lua_Integer sint32; /* a signed version for size_t */ | 27 | typedef lua_Integer sint32; /* a signed version for size_t */ |
@@ -156,10 +155,6 @@ static int str_dump (lua_State *L) { | |||
156 | ** ======================================================= | 155 | ** ======================================================= |
157 | */ | 156 | */ |
158 | 157 | ||
159 | #ifndef MAX_CAPTURES | ||
160 | #define MAX_CAPTURES 32 /* arbitrary limit */ | ||
161 | #endif | ||
162 | |||
163 | 158 | ||
164 | #define CAP_UNFINISHED (-1) | 159 | #define CAP_UNFINISHED (-1) |
165 | #define CAP_POSITION (-2) | 160 | #define CAP_POSITION (-2) |