aboutsummaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-11-30 16:50:47 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-11-30 16:50:47 -0200
commit01b00cc29261579600ce414b470c339510ac49d5 (patch)
treed485971f691e6914b92d52a4ba6976f6f3357a23 /lcode.h
parentfc7b167ae0a0d65f0050299101e7d177550d7120 (diff)
downloadlua-01b00cc29261579600ce414b470c339510ac49d5.tar.gz
lua-01b00cc29261579600ce414b470c339510ac49d5.tar.bz2
lua-01b00cc29261579600ce414b470c339510ac49d5.zip
better control over extensions of char/short to int
Diffstat (limited to 'lcode.h')
-rw-r--r--lcode.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lcode.h b/lcode.h
index c0f3392a..bb032267 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.15 2000/06/28 20:20:36 roberto Exp roberto $ 2** $Id: lcode.h,v 1.16 2000/08/09 14:49:13 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*/
@@ -38,11 +38,13 @@ enum Mode {iO, iU, iS, iAB}; /* instruction format */
38 38
39#define VD 100 /* flag for variable delta */ 39#define VD 100 /* flag for variable delta */
40 40
41extern const struct OpProperties { 41typedef struct OpProperties {
42 char mode; 42 char mode;
43 unsigned char push; 43 unsigned char push;
44 unsigned char pop; 44 unsigned char pop;
45} luaK_opproperties[]; 45} OpProperties;
46
47extern const OpProperties luaK_opproperties[];
46 48
47 49
48void luaK_error (LexState *ls, const char *msg); 50void luaK_error (LexState *ls, const char *msg);