diff options
Diffstat (limited to 'fallback.c')
-rw-r--r-- | fallback.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_fallback="$Id: fallback.c,v 1.16 1995/10/17 11:52:38 roberto Exp roberto $"; | 6 | char *rcs_fallback="$Id: fallback.c,v 1.17 1995/10/17 14:30:05 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include <string.h> | 9 | #include <string.h> |
@@ -36,8 +36,10 @@ struct FB luaI_fallBacks[] = { | |||
36 | {"concat", {LUA_T_CFUNCTION, {concatFB}}, 2, 1}, | 36 | {"concat", {LUA_T_CFUNCTION, {concatFB}}, 2, 1}, |
37 | {"settable", {LUA_T_CFUNCTION, {gettableFB}}, 3, 0}, | 37 | {"settable", {LUA_T_CFUNCTION, {gettableFB}}, 3, 0}, |
38 | {"gc", {LUA_T_CFUNCTION, {GDFB}}, 1, 0}, | 38 | {"gc", {LUA_T_CFUNCTION, {GDFB}}, 1, 0}, |
39 | {"function", {LUA_T_CFUNCTION, {funcFB}}, -1, -1} | 39 | {"function", {LUA_T_CFUNCTION, {funcFB}}, -1, -1}, |
40 | /* no fixed number of params or results */ | 40 | /* no fixed number of params or results */ |
41 | {"getglobal", {LUA_T_CFUNCTION, {indexFB}}, 1, 1} | ||
42 | /* same default behavior of index FB */ | ||
41 | }; | 43 | }; |
42 | 44 | ||
43 | #define N_FB (sizeof(luaI_fallBacks)/sizeof(struct FB)) | 45 | #define N_FB (sizeof(luaI_fallBacks)/sizeof(struct FB)) |