diff options
-rw-r--r-- | lbuiltin.c | 10 | ||||
-rw-r--r-- | lua.c | 4 |
2 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.71 1999/11/10 15:41:11 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.72 1999/11/11 17:02:40 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -369,16 +369,16 @@ static void luaB_tostring (void) { | |||
369 | lua_pushobject(obj); | 369 | lua_pushobject(obj); |
370 | return; | 370 | return; |
371 | case LUA_T_ARRAY: | 371 | case LUA_T_ARRAY: |
372 | sprintf(buff, "table: %p", (void *)o->value.a); | 372 | sprintf(buff, "table: %p", o->value.a); |
373 | break; | 373 | break; |
374 | case LUA_T_CLOSURE: | 374 | case LUA_T_CLOSURE: |
375 | sprintf(buff, "function: %p", (void *)o->value.cl); | 375 | sprintf(buff, "function: %p", o->value.cl); |
376 | break; | 376 | break; |
377 | case LUA_T_PROTO: | 377 | case LUA_T_PROTO: |
378 | sprintf(buff, "function: %p", (void *)o->value.tf); | 378 | sprintf(buff, "function: %p", o->value.tf); |
379 | break; | 379 | break; |
380 | case LUA_T_CPROTO: | 380 | case LUA_T_CPROTO: |
381 | sprintf(buff, "function: %p", (void *)o->value.f); | 381 | sprintf(buff, "function: %p", o->value.f); |
382 | break; | 382 | break; |
383 | case LUA_T_USERDATA: | 383 | case LUA_T_USERDATA: |
384 | sprintf(buff, "userdata: %p", o->value.ts->u.d.value); | 384 | sprintf(buff, "userdata: %p", o->value.ts->u.d.value); |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.24 1999/11/09 17:59:35 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.25 1999/11/12 13:54:44 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -18,7 +18,7 @@ | |||
18 | #ifdef _POSIX_SOURCE | 18 | #ifdef _POSIX_SOURCE |
19 | #include <unistd.h> | 19 | #include <unistd.h> |
20 | #else | 20 | #else |
21 | #define isatty(x) (x==0) /* assume stdin is a tty */ | 21 | static int isatty (int x) { return x==0; } /* assume stdin is a tty */ |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | 24 | ||