first step in implementing internal methods.

This commit is contained in:
Roberto Ierusalimschy
1997-02-26 14:38:41 -03:00
parent bbf1b3060a
commit 131d66efd2
10 changed files with 441 additions and 236 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: fallback.h,v 1.12 1996/04/22 18:00:37 roberto Exp roberto $
** $Id: fallback.h,v 1.13 1996/04/25 14:10:00 roberto Exp roberto $
*/
#ifndef fallback_h
@@ -15,16 +15,17 @@ extern struct FB {
int nResults;
} luaI_fallBacks[];
#define FB_ERROR 0
#define FB_INDEX 1
#define FB_GETTABLE 2
#define FB_ARITH 3
#define FB_ORDER 4
#define FB_CONCAT 5
#define FB_SETTABLE 6
#define FB_GC 7
#define FB_FUNCTION 8
#define FB_GETGLOBAL 9
#define FB_GETTABLE 0
#define FB_ARITH 1
#define FB_ORDER 2
#define FB_CONCAT 3
#define FB_SETTABLE 4
#define FB_GC 5
#define FB_FUNCTION 6
#define FB_GETGLOBAL 7
#define FB_INDEX 8
#define FB_ERROR 9
#define FB_N 10
void luaI_setfallback (void);
int luaI_ref (Object *object, int lock);
@@ -33,5 +34,10 @@ void luaI_travlock (int (*fn)(Object *));
void luaI_invalidaterefs (void);
char *luaI_travfallbacks (int (*fn)(Object *));
void luaI_settag (int tag, Object *o);
Object *luaI_getim (int tag, int event);
int luaI_tag (Object *o);
void luaI_setintmethod (void);
#endif