aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstrlib.c b/lstrlib.c
index f66e56ae..ebe27d35 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -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;