diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 17:10:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 17:10:05 -0300 |
commit | f8df21bd2071c4e3729d37d1552f54ca2742551a (patch) | |
tree | 6d85e7fd9f86bfb6879c0edd60780b1f40325027 /lstrlib.c | |
parent | d3902cfa81021bca0a8c30b3ad79a1e2367f6621 (diff) | |
download | lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.tar.gz lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.tar.bz2 lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.zip |
`luaconf.h´ exports all its definitions always (so all of them
must have a lua/LUA prefix).
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.108 2004/11/19 16:58:43 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.109 2004/12/01 15:46:06 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 | */ |
@@ -172,7 +172,7 @@ typedef struct MatchState { | |||
172 | struct { | 172 | struct { |
173 | const char *init; | 173 | const char *init; |
174 | ptrdiff_t len; | 174 | ptrdiff_t len; |
175 | } capture[MAX_CAPTURES]; | 175 | } capture[LUA_MAXCAPTURES]; |
176 | } MatchState; | 176 | } MatchState; |
177 | 177 | ||
178 | 178 | ||
@@ -327,7 +327,7 @@ static const char *start_capture (MatchState *ms, const char *s, | |||
327 | const char *p, int what) { | 327 | const char *p, int what) { |
328 | const char *res; | 328 | const char *res; |
329 | int level = ms->level; | 329 | int level = ms->level; |
330 | if (level >= MAX_CAPTURES) luaL_error(ms->L, "too many captures"); | 330 | if (level >= LUA_MAXCAPTURES) luaL_error(ms->L, "too many captures"); |
331 | ms->capture[level].init = s; | 331 | ms->capture[level].init = s; |
332 | ms->capture[level].len = what; | 332 | ms->capture[level].len = what; |
333 | ms->level = level+1; | 333 | ms->level = level+1; |