diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-30 16:50:47 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-30 16:50:47 -0200 |
| commit | 01b00cc29261579600ce414b470c339510ac49d5 (patch) | |
| tree | d485971f691e6914b92d52a4ba6976f6f3357a23 /lcode.h | |
| parent | fc7b167ae0a0d65f0050299101e7d177550d7120 (diff) | |
| download | lua-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.h | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -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 | ||
| 41 | extern const struct OpProperties { | 41 | typedef 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 | |||
| 47 | extern const OpProperties luaK_opproperties[]; | ||
| 46 | 48 | ||
| 47 | 49 | ||
| 48 | void luaK_error (LexState *ls, const char *msg); | 50 | void luaK_error (LexState *ls, const char *msg); |
