aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-17 09:46:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-17 09:46:32 -0300
commitc066ac10a99736fff5ebaaf70daf7978f3910692 (patch)
tree171567195376f06f3d16e75444c947373e5037b0 /lcode.h
parent1e6940f291258986f1720ac1a6e5293160367388 (diff)
downloadlua-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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lcode.h b/lcode.h
index 44996a43..f081022a 100644
--- a/lcode.h
+++ b/lcode.h
@@ -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);
73LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); 73LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list);
74LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); 74LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2);
75LUAI_FUNC int luaK_getlabel (FuncState *fs); 75LUAI_FUNC int luaK_getlabel (FuncState *fs);
76LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v); 76LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line);
77LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v); 77LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v);
78LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, expdesc *v2); 78LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1,
79 expdesc *v2, int line);
79LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore); 80LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
80 81
81 82