From c066ac10a99736fff5ebaaf70daf7978f3910692 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sat, 17 Apr 2010 09:46:32 -0300 Subject: better line numbers for function calls and unary/binary operators + null statement + no more "ambiguous syntax" restriction --- lcode.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lcode.h') diff --git a/lcode.h b/lcode.h index 44996a43..f081022a 100644 --- a/lcode.h +++ b/lcode.h @@ -1,5 +1,5 @@ /* -** $Id: lcode.h,v 1.52 2009/09/23 20:33:05 roberto Exp roberto $ +** $Id: lcode.h,v 1.53 2010/02/26 20:40:29 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -73,9 +73,10 @@ LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); LUAI_FUNC int luaK_getlabel (FuncState *fs); -LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v); +LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v); -LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, expdesc *v2); +LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, + expdesc *v2, int line); LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore); -- cgit v1.2.3-55-g6feb