diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 10:30:22 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 10:30:22 -0300 |
commit | a1d3e001b9d6e553591c5dc7fe6b59a170163f63 (patch) | |
tree | 678fe3794ad8e70bbedd188f72cf21221faeaaf8 | |
parent | 10b4799ce57100545cd27bc7c7b2fd83c6c30ab8 (diff) | |
download | lua-a1d3e001b9d6e553591c5dc7fe6b59a170163f63.tar.gz lua-a1d3e001b9d6e553591c5dc7fe6b59a170163f63.tar.bz2 lua-a1d3e001b9d6e553591c5dc7fe6b59a170163f63.zip |
comments
-rw-r--r-- | lparser.h | 4 | ||||
-rw-r--r-- | lstrlib.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.h,v 1.22 2000/08/08 20:42:07 roberto Exp roberto $ | 2 | ** $Id: lparser.h,v 1.23 2000/08/22 17:44:17 roberto Exp roberto $ |
3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -43,7 +43,7 @@ typedef struct FuncState { | |||
43 | struct lua_State *L; /* copy of the Lua state */ | 43 | struct lua_State *L; /* copy of the Lua state */ |
44 | int pc; /* next position to code */ | 44 | int pc; /* next position to code */ |
45 | int lasttarget; /* `pc' of last `jump target' */ | 45 | int lasttarget; /* `pc' of last `jump target' */ |
46 | int jlt; /* list of jumps to `lasttarged' */ | 46 | int jlt; /* list of jumps to `lasttarget' */ |
47 | int stacklevel; /* number of values on activation register */ | 47 | int stacklevel; /* number of values on activation register */ |
48 | int nactloc; /* number of active local variables */ | 48 | int nactloc; /* number of active local variables */ |
49 | int nupvalues; /* number of upvalues */ | 49 | int nupvalues; /* number of upvalues */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.47 2000/08/28 17:57:04 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.48 2000/08/29 20:43:28 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 | */ |
@@ -265,7 +265,7 @@ static const char *max_expand (lua_State *L, const char *s, const char *p, | |||
265 | long i = 0; /* counts maximum expand for item */ | 265 | long i = 0; /* counts maximum expand for item */ |
266 | while ((s+i)<cap->src_end && luaI_singlematch((unsigned char)*(s+i), p, ep)) | 266 | while ((s+i)<cap->src_end && luaI_singlematch((unsigned char)*(s+i), p, ep)) |
267 | i++; | 267 | i++; |
268 | /* keeps trying to match mith the maximum repetitions */ | 268 | /* keeps trying to match with the maximum repetitions */ |
269 | while (i>=0) { | 269 | while (i>=0) { |
270 | const char *res = match(L, (s+i), ep+1, cap); | 270 | const char *res = match(L, (s+i), ep+1, cap); |
271 | if (res) return res; | 271 | if (res) return res; |