diff --git a/lobject.h b/lobject.h index 62357a9a..259c2977 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.136 2002/06/20 20:41:46 roberto Exp roberto $ +** $Id: lobject.h,v 1.137 2002/06/24 13:08:45 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -212,7 +212,7 @@ typedef struct Table { struct Table *next; struct Table *mark; /* marked tables (point to itself when not marked) */ int sizearray; /* size of `array' array */ - unsigned short flags; /* 1<

next = G(L)->roottable; G(L)->roottable = t; t->mark = t; - t->flags = cast(unsigned short, ~0); + t->flags = cast(lu_byte, ~0); /* temporary values (kept only if some malloc fails) */ t->array = NULL; t->sizearray = 0; diff --git a/ltm.c b/ltm.c index ea402aac..25bebc82 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 1.94 2002/06/12 14:51:31 roberto Exp roberto $ +** $Id: ltm.c,v 1.95 2002/06/13 13:39:55 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -25,8 +25,9 @@ const char *const luaT_typenames[] = { void luaT_init (lua_State *L) { static const char *const luaT_eventname[] = { /* ORDER TM */ - "__gettable", "__settable", "__index", "__newindex", + "__index", "__newindex", "__gc", "__eq", "__weakmode", + "__gettable", "__settable", "__add", "__sub", "__mul", "__div", "__pow", "__unm", "__lt", "__le", "__concat", "__call" diff --git a/ltm.h b/ltm.h index 36577531..b0d6439a 100644 --- a/ltm.h +++ b/ltm.h @@ -1,5 +1,5 @@ /* -** $Id: ltm.h,v 1.34 2002/06/12 14:51:31 roberto Exp roberto $ +** $Id: ltm.h,v 1.35 2002/06/13 13:39:55 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -15,13 +15,13 @@ * grep "ORDER TM" */ typedef enum { - TM_GETTABLE = 0, - TM_SETTABLE, TM_INDEX, TM_NEWINDEX, TM_GC, TM_EQ, TM_WEAKMODE, /* last tag method with `fast' access */ + TM_GETTABLE, + TM_SETTABLE, TM_ADD, TM_SUB, TM_MUL,