aboutsummaryrefslogtreecommitdiff
path: root/fallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'fallback.h')
-rw-r--r--fallback.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/fallback.h b/fallback.h
index cb0d2220..e34363af 100644
--- a/fallback.h
+++ b/fallback.h
@@ -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
11extern 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
30void luaI_setfallback (void); 26void luaI_setfallback (void);
31int luaI_ref (Object *object, int lock); 27int luaI_ref (Object *object, int lock);
@@ -35,9 +31,14 @@ void luaI_invalidaterefs (void);
35char *luaI_travfallbacks (int (*fn)(Object *)); 31char *luaI_travfallbacks (int (*fn)(Object *));
36 32
37void luaI_settag (int tag, Object *o); 33void luaI_settag (int tag, Object *o);
34lua_Type luaI_typetag (int tag);
38Object *luaI_getim (int tag, int event); 35Object *luaI_getim (int tag, int event);
36Object *luaI_getgim (int event);
37Object *luaI_getimbyObj (Object *o, int event);
39int luaI_tag (Object *o); 38int luaI_tag (Object *o);
40void luaI_setintmethod (void); 39void luaI_setintmethod (void);
40void luaI_setglobalmethod (void);
41void luaI_initfallbacks (void);
41 42
42#endif 43#endif
43 44