diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-06-06 10:30:25 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-06-06 10:30:25 -0300 |
| commit | d987cf1f812b131788029d6de0c81ed64020e522 (patch) | |
| tree | d67230d0bd44584fc1616349ca14fb6ebfc94418 /lopcodes.h | |
| parent | eca9fa02d2887d06cee5e2f742f7e3031ac76a51 (diff) | |
| download | lua-d987cf1f812b131788029d6de0c81ed64020e522.tar.gz lua-d987cf1f812b131788029d6de0c81ed64020e522.tar.bz2 lua-d987cf1f812b131788029d6de0c81ed64020e522.zip | |
new mark LUAI_DATA for extern data
Diffstat (limited to 'lopcodes.h')
| -rw-r--r-- | lopcodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.h,v 1.119 2005/05/04 20:42:28 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.120 2005/05/20 15:53:42 roberto Exp roberto $ |
| 3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -248,7 +248,7 @@ enum OpArgMask { | |||
| 248 | OpArgK /* argument is a constant or register/constant */ | 248 | OpArgK /* argument is a constant or register/constant */ |
| 249 | }; | 249 | }; |
| 250 | 250 | ||
| 251 | extern const lu_byte luaP_opmodes[NUM_OPCODES]; | 251 | LUAI_DATA const lu_byte luaP_opmodes[NUM_OPCODES]; |
| 252 | 252 | ||
| 253 | #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) | 253 | #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) |
| 254 | #define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) | 254 | #define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) |
| @@ -257,7 +257,7 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES]; | |||
| 257 | #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) | 257 | #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) |
| 258 | 258 | ||
| 259 | 259 | ||
| 260 | extern const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ | 260 | LUAI_DATA const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ |
| 261 | 261 | ||
| 262 | 262 | ||
| 263 | /* number of list items to accumulate before a SETLIST instruction */ | 263 | /* number of list items to accumulate before a SETLIST instruction */ |
