aboutsummaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fallback.c b/fallback.c
index 0902c25e..da7ed923 100644
--- a/fallback.c
+++ b/fallback.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_fallback="$Id: fallback.c,v 2.7 1997/06/16 18:43:19 roberto Exp roberto $"; 6char *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
286static void errorFB (void) 286static 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
313void luaI_setfallback (void) 314void 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