diff options
Diffstat (limited to 'fallback.c')
| -rw-r--r-- | fallback.c | 7 |
1 files changed, 4 insertions, 3 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 2.7 1997/06/16 18:43:19 roberto Exp roberto $"; | 6 | char *rcs_fallback="$Id: fallback.c,v 2.8 1997/06/17 17:27:07 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -281,7 +281,7 @@ char *luaI_travfallbacks (int (*fn)(TObject *)) | |||
| 281 | * =================================================================== | 281 | * =================================================================== |
| 282 | * compatibility with old fallback system | 282 | * compatibility with old fallback system |
| 283 | */ | 283 | */ |
| 284 | 284 | #if LUA_COMPAT2_5 | |
| 285 | 285 | ||
| 286 | static void errorFB (void) | 286 | static void errorFB (void) |
| 287 | { | 287 | { |
| @@ -310,6 +310,7 @@ static void fillvalids (IMS e, TObject *func) | |||
| 310 | *luaI_getim(t, e) = *func; | 310 | *luaI_getim(t, e) = *func; |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | |||
| 313 | void luaI_setfallback (void) | 314 | void luaI_setfallback (void) |
| 314 | { | 315 | { |
| 315 | static char *oldnames [] = {"error", "getglobal", "arith", "order", NULL}; | 316 | static char *oldnames [] = {"error", "getglobal", "arith", "order", NULL}; |
| @@ -364,4 +365,4 @@ void luaI_setfallback (void) | |||
| 364 | else | 365 | else |
| 365 | lua_pushcfunction(replace); | 366 | lua_pushcfunction(replace); |
| 366 | } | 367 | } |
| 367 | 368 | #endif | |
