diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-04 16:33:40 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-12-04 16:33:40 -0200 |
commit | 4894c2796277b47b0ffc8983e8231d2cc95ee09b (patch) | |
tree | dc702c79716a42f22301bc5b9b5798a28173f7c2 /lparser.c | |
parent | 10ac68c648e0e1d23fe5485bc711df8fc71b6ae3 (diff) | |
download | lua-4894c2796277b47b0ffc8983e8231d2cc95ee09b.tar.gz lua-4894c2796277b47b0ffc8983e8231d2cc95ee09b.tar.bz2 lua-4894c2796277b47b0ffc8983e8231d2cc95ee09b.zip |
lua_Number defined in lua.h (1st version)
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; |