diff options
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 37 |
1 files changed, 19 insertions, 18 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: fallback.h,v 1.13 1996/04/25 14:10:00 roberto Exp roberto $ | 2 | ** $Id: fallback.h,v 1.14 1997/02/26 17:38:41 roberto Unstable roberto $ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #ifndef fallback_h | 5 | #ifndef fallback_h |
@@ -8,24 +8,20 @@ | |||
8 | #include "lua.h" | 8 | #include "lua.h" |
9 | #include "opcode.h" | 9 | #include "opcode.h" |
10 | 10 | ||
11 | extern struct FB { | 11 | #define IM_GETTABLE 0 |
12 | char *kind; | 12 | #define IM_ARITH 1 |
13 | Object function; | 13 | #define IM_ORDER 2 |
14 | int nParams; | 14 | #define IM_CONCAT 3 |
15 | int nResults; | 15 | #define IM_SETTABLE 4 |
16 | } luaI_fallBacks[]; | 16 | #define IM_GC 5 |
17 | #define IM_FUNCTION 6 | ||
18 | #define IM_INDEX 7 | ||
19 | #define IM_N 8 | ||
17 | 20 | ||
18 | #define FB_GETTABLE 0 | 21 | #define GIM_ERROR 0 |
19 | #define FB_ARITH 1 | 22 | #define GIM_GETGLOBAL 1 |
20 | #define FB_ORDER 2 | 23 | #define GIM_SETGLOBAL 2 |
21 | #define FB_CONCAT 3 | 24 | #define GIM_N 3 |
22 | #define FB_SETTABLE 4 | ||
23 | #define FB_GC 5 | ||
24 | #define FB_FUNCTION 6 | ||
25 | #define FB_GETGLOBAL 7 | ||
26 | #define FB_INDEX 8 | ||
27 | #define FB_ERROR 9 | ||
28 | #define FB_N 10 | ||
29 | 25 | ||
30 | void luaI_setfallback (void); | 26 | void luaI_setfallback (void); |
31 | int luaI_ref (Object *object, int lock); | 27 | int luaI_ref (Object *object, int lock); |
@@ -35,9 +31,14 @@ void luaI_invalidaterefs (void); | |||
35 | char *luaI_travfallbacks (int (*fn)(Object *)); | 31 | char *luaI_travfallbacks (int (*fn)(Object *)); |
36 | 32 | ||
37 | void luaI_settag (int tag, Object *o); | 33 | void luaI_settag (int tag, Object *o); |
34 | lua_Type luaI_typetag (int tag); | ||
38 | Object *luaI_getim (int tag, int event); | 35 | Object *luaI_getim (int tag, int event); |
36 | Object *luaI_getgim (int event); | ||
37 | Object *luaI_getimbyObj (Object *o, int event); | ||
39 | int luaI_tag (Object *o); | 38 | int luaI_tag (Object *o); |
40 | void luaI_setintmethod (void); | 39 | void luaI_setintmethod (void); |
40 | void luaI_setglobalmethod (void); | ||
41 | void luaI_initfallbacks (void); | ||
41 | 42 | ||
42 | #endif | 43 | #endif |
43 | 44 | ||