diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-03-19 16:41:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-03-19 16:41:10 -0300 |
commit | 1444d28476af70bc51c4fdba71deb669f41c77a3 (patch) | |
tree | 6d19c5653702ea341f6650f3e917ed77456f757f /opcode.h | |
parent | 2de803c250de373186afbbea0a5978f54c52850c (diff) | |
download | lua-1444d28476af70bc51c4fdba71deb669f41c77a3.tar.gz lua-1444d28476af70bc51c4fdba71deb669f41c77a3.tar.bz2 lua-1444d28476af70bc51c4fdba71deb669f41c77a3.zip |
first full implementation of internal methods
Diffstat (limited to 'opcode.h')
-rw-r--r-- | opcode.h | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | ** TeCGraf - PUC-Rio | 2 | ** TeCGraf - PUC-Rio |
3 | ** $Id: opcode.h,v 3.27 1997/03/06 17:30:55 roberto Exp roberto $ | 3 | ** $Id: opcode.h,v 3.28 1997/03/11 18:44:28 roberto Exp roberto $ |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef opcode_h | 6 | #ifndef opcode_h |
@@ -16,18 +16,20 @@ | |||
16 | 16 | ||
17 | typedef enum | 17 | typedef enum |
18 | { | 18 | { |
19 | LUA_T_NIL = -1, | 19 | LUA_T_NIL = -9, |
20 | LUA_T_NUMBER = -2, | 20 | LUA_T_NUMBER = -8, |
21 | LUA_T_STRING = -3, | 21 | LUA_T_STRING = -7, |
22 | LUA_T_ARRAY = -4, /* array==table */ | 22 | LUA_T_ARRAY = -6, /* array==table */ |
23 | LUA_T_FUNCTION = -5, | 23 | LUA_T_FUNCTION = -5, |
24 | LUA_T_CFUNCTION= -6, | 24 | LUA_T_CFUNCTION= -4, |
25 | LUA_T_MARK = -7, | 25 | LUA_T_MARK = -3, |
26 | LUA_T_CMARK = -8, | 26 | LUA_T_CMARK = -2, |
27 | LUA_T_LINE = -9, | 27 | LUA_T_LINE = -1, |
28 | LUA_T_USERDATA = 0 | 28 | LUA_T_USERDATA = 0 |
29 | } lua_Type; | 29 | } lua_Type; |
30 | 30 | ||
31 | #define NUM_TYPES 10 | ||
32 | |||
31 | 33 | ||
32 | typedef enum { | 34 | typedef enum { |
33 | /* name parm before after side effect | 35 | /* name parm before after side effect |
@@ -156,7 +158,7 @@ void luaI_codedebugline (int line); /* from "lua.stx" module */ | |||
156 | void lua_travstack (int (*fn)(Object *)); | 158 | void lua_travstack (int (*fn)(Object *)); |
157 | Object *luaI_Address (lua_Object o); | 159 | Object *luaI_Address (lua_Object o); |
158 | void luaI_pushobject (Object *o); | 160 | void luaI_pushobject (Object *o); |
159 | void luaI_gcFB (Object *o); | 161 | void luaI_gcIM (Object *o); |
160 | int luaI_dorun (TFunc *tf); | 162 | int luaI_dorun (TFunc *tf); |
161 | 163 | ||
162 | #endif | 164 | #endif |