diff options
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 1.117 2000/11/29 11:57:42 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.118 2000/11/30 18:50:47 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 | */ |
| @@ -332,7 +332,7 @@ static void close_func (LexState *ls) { | |||
| 332 | luaK_getlabel(fs); /* close eventual list of pending jumps */ | 332 | luaK_getlabel(fs); /* close eventual list of pending jumps */ |
| 333 | luaM_reallocvector(L, f->code, fs->pc, Instruction); | 333 | luaM_reallocvector(L, f->code, fs->pc, Instruction); |
| 334 | luaM_reallocvector(L, f->kstr, f->nkstr, TString *); | 334 | luaM_reallocvector(L, f->kstr, f->nkstr, TString *); |
| 335 | luaM_reallocvector(L, f->knum, f->nknum, Number); | 335 | luaM_reallocvector(L, f->knum, f->nknum, lua_Number); |
| 336 | luaM_reallocvector(L, f->kproto, f->nkproto, Proto *); | 336 | luaM_reallocvector(L, f->kproto, f->nkproto, Proto *); |
| 337 | removelocalvars(ls, fs->nactloc); | 337 | removelocalvars(ls, fs->nactloc); |
| 338 | luaM_reallocvector(L, f->locvars, f->nlocvars, LocVar); | 338 | luaM_reallocvector(L, f->locvars, f->nlocvars, LocVar); |
| @@ -608,7 +608,7 @@ static void simpleexp (LexState *ls, expdesc *v) { | |||
| 608 | FuncState *fs = ls->fs; | 608 | FuncState *fs = ls->fs; |
| 609 | switch (ls->t.token) { | 609 | switch (ls->t.token) { |
| 610 | case TK_NUMBER: { /* simpleexp -> NUMBER */ | 610 | case TK_NUMBER: { /* simpleexp -> NUMBER */ |
| 611 | Number r = ls->t.seminfo.r; | 611 | lua_Number r = ls->t.seminfo.r; |
| 612 | next(ls); | 612 | next(ls); |
| 613 | luaK_number(fs, r); | 613 | luaK_number(fs, r); |
| 614 | break; | 614 | break; |
