aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-05 14:51:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-05 14:51:58 -0300
commit22329e4cdf6c6741523099173c31b0a421825a3c (patch)
tree6448d563eaf5d8e6b3d7e792459c04f5ac740ddf /lcode.h
parent9f734094f9bbb34216ef555edf08019d5feea13b (diff)
downloadlua-22329e4cdf6c6741523099173c31b0a421825a3c.tar.gz
lua-22329e4cdf6c6741523099173c31b0a421825a3c.tar.bz2
lua-22329e4cdf6c6741523099173c31b0a421825a3c.zip
implementation of BREAK
Diffstat (limited to 'lcode.h')
-rw-r--r--lcode.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lcode.h b/lcode.h
index ce3901db..287977d2 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.8 2000/03/15 20:50:33 roberto Exp roberto $ 2** $Id: lcode.h,v 1.9 2000/03/17 13:09:46 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*/
@@ -13,6 +13,9 @@
13#include "lparser.h" 13#include "lparser.h"
14 14
15 15
16#define NO_JUMP (-1) /* marks end of patch list */
17
18
16void luaK_error (LexState *ls, const char *msg); 19void luaK_error (LexState *ls, const char *msg);
17int luaK_0(FuncState *fs, OpCode o, int d); 20int luaK_0(FuncState *fs, OpCode o, int d);
18int luaK_U(FuncState *fs, OpCode o, int u, int d); 21int luaK_U(FuncState *fs, OpCode o, int u, int d);
@@ -20,8 +23,9 @@ int luaK_S(FuncState *fs, OpCode o, int s, int d);
20int luaK_AB(FuncState *fs, OpCode o, int a, int b, int d); 23int luaK_AB(FuncState *fs, OpCode o, int a, int b, int d);
21int luaK_code (FuncState *fs, Instruction i, int delta); 24int luaK_code (FuncState *fs, Instruction i, int delta);
22void luaK_retcode (FuncState *fs, int nlocals, int nexps); 25void luaK_retcode (FuncState *fs, int nlocals, int nexps);
23void luaK_fixjump (FuncState *fs, int pc, int dest); 26int luaK_jump (FuncState *fs);
24void luaK_patchlist (FuncState *fs, int list, int target); 27void luaK_patchlist (FuncState *fs, int list, int target);
28void luaK_concat (FuncState *fs, int *l1, int l2);
25void luaK_goiftrue (FuncState *fs, expdesc *v, int keepvalue); 29void luaK_goiftrue (FuncState *fs, expdesc *v, int keepvalue);
26void luaK_goiffalse (FuncState *fs, expdesc *v, int keepvalue); 30void luaK_goiffalse (FuncState *fs, expdesc *v, int keepvalue);
27int luaK_getlabel (FuncState *fs); 31int luaK_getlabel (FuncState *fs);