diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-17 09:46:32 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-17 09:46:32 -0300 |
| commit | c066ac10a99736fff5ebaaf70daf7978f3910692 (patch) | |
| tree | 171567195376f06f3d16e75444c947373e5037b0 /lcode.h | |
| parent | 1e6940f291258986f1720ac1a6e5293160367388 (diff) | |
| download | lua-c066ac10a99736fff5ebaaf70daf7978f3910692.tar.gz lua-c066ac10a99736fff5ebaaf70daf7978f3910692.tar.bz2 lua-c066ac10a99736fff5ebaaf70daf7978f3910692.zip | |
better line numbers for function calls and unary/binary operators +
null statement + no more "ambiguous syntax" restriction
Diffstat (limited to 'lcode.h')
| -rw-r--r-- | lcode.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcode.h,v 1.52 2009/09/23 20:33:05 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.53 2010/02/26 20:40:29 roberto Exp roberto $ |
| 3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -73,9 +73,10 @@ LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); | |||
| 73 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); | 73 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); |
| 74 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); | 74 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); |
| 75 | LUAI_FUNC int luaK_getlabel (FuncState *fs); | 75 | LUAI_FUNC int luaK_getlabel (FuncState *fs); |
| 76 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v); | 76 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); |
| 77 | LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v); | 77 | LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v); |
| 78 | LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, expdesc *v2); | 78 | LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, |
| 79 | expdesc *v2, int line); | ||
| 79 | LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore); | 80 | LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore); |
| 80 | 81 | ||
| 81 | 82 | ||
