diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-04-30 17:13:38 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-04-30 17:13:38 -0300 |
| commit | b4cd38ba6c148cf7db5deae6208b660c3417cac9 (patch) | |
| tree | 8818b5e364c8ad5489a9755d3fc24110bccfdfe2 /lstrlib.c | |
| parent | 079facab40542ff2e6be9ecc254fd148772b47c9 (diff) | |
| download | lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.gz lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.bz2 lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.zip | |
new scheme for configuration through `luaconf.h'
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) |
