summaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-22 15:44:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-22 15:44:46 -0300
commit5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (patch)
treec5c7f73e8d10b6081d07999a44bb5f93769440f8 /lcode.h
parent93d93a0bfbc30f1176e973e1238b51e560eeb233 (diff)
downloadlua-5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4.tar.gz
lua-5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4.tar.bz2
lua-5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4.zip
array `luaK_opproperties' keeps delta stack and mode for each opcode
Diffstat (limited to 'lcode.h')
-rw-r--r--lcode.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lcode.h b/lcode.h
index 00b3d9f6..285383c0 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.11 2000/04/07 19:35:20 roberto Exp roberto $ 2** $Id: lcode.h,v 1.12 2000/04/12 18:47:03 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*/
@@ -20,6 +20,14 @@
20#define NO_JUMP (-1) 20#define NO_JUMP (-1)
21 21
22 22
23enum Mode {iO, iU, iS, iAB}; /* instruction format */
24
25extern const struct OpProperties {
26 char mode;
27 signed char delta;
28} luaK_opproperties[];
29
30
23void luaK_error (LexState *ls, const char *msg); 31void luaK_error (LexState *ls, const char *msg);
24int luaK_code0 (FuncState *fs, OpCode o); 32int luaK_code0 (FuncState *fs, OpCode o);
25int luaK_code1 (FuncState *fs, OpCode o, int arg1); 33int luaK_code1 (FuncState *fs, OpCode o, int arg1);