aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
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);