diff options
Diffstat (limited to 'lbuiltin.c')
| -rw-r--r-- | lbuiltin.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbuiltin.c,v 1.87 1999/12/23 18:19:57 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.88 1999/12/27 13:04:53 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 | */ |
| @@ -94,16 +94,16 @@ static Hash *gettable (lua_State *L, int arg) { | |||
| 94 | ** If your system does not support "stderr", redefine this function, or | 94 | ** If your system does not support "stderr", redefine this function, or |
| 95 | ** redefine _ERRORMESSAGE so that it won't need _ALERT. | 95 | ** redefine _ERRORMESSAGE so that it won't need _ALERT. |
| 96 | */ | 96 | */ |
| 97 | void luaB_alert (lua_State *L) { | 97 | void luaB__alert (lua_State *L) { |
| 98 | fputs(luaL_check_string(L, 1), stderr); | 98 | fputs(luaL_check_string(L, 1), stderr); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | 101 | ||
| 102 | /* | 102 | /* |
| 103 | ** Standard implementation of _ERRORMESSAGE. | 103 | ** Standard implementation of _ERRORMESSAGE. |
| 104 | ** The library "iolib" redefines _ERRORMESSAGE for better error information. | 104 | ** The library `liolib' redefines _ERRORMESSAGE for better error information. |
| 105 | */ | 105 | */ |
| 106 | void luaB_ERRORMESSAGE (lua_State *L) { | 106 | void luaB__ERRORMESSAGE (lua_State *L) { |
| 107 | lua_Object al = lua_rawgetglobal(L, "_ALERT"); | 107 | lua_Object al = lua_rawgetglobal(L, "_ALERT"); |
| 108 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ | 108 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ |
| 109 | char buff[600]; | 109 | char buff[600]; |
| @@ -529,7 +529,7 @@ static void swap (lua_State *L, Hash *a, int i, int j) { | |||
| 529 | 529 | ||
| 530 | static int sort_comp (lua_State *L, lua_Object f, const TObject *a, | 530 | static int sort_comp (lua_State *L, lua_Object f, const TObject *a, |
| 531 | const TObject *b) { | 531 | const TObject *b) { |
| 532 | /* notice: the caller (auxsort) must check stack space */ | 532 | /* WARNING: the caller (auxsort) must ensure stack space */ |
| 533 | if (f != LUA_NOOBJECT) { | 533 | if (f != LUA_NOOBJECT) { |
| 534 | *(L->top) = *f; | 534 | *(L->top) = *f; |
| 535 | *(L->top+1) = *a; | 535 | *(L->top+1) = *a; |
| @@ -609,8 +609,8 @@ void luaB_sort (lua_State *L) { | |||
| 609 | 609 | ||
| 610 | 610 | ||
| 611 | static const struct luaL_reg builtin_funcs[] = { | 611 | static const struct luaL_reg builtin_funcs[] = { |
| 612 | {"_ALERT", luaB_alert}, | 612 | {"_ALERT", luaB__alert}, |
| 613 | {"_ERRORMESSAGE", luaB_ERRORMESSAGE}, | 613 | {"_ERRORMESSAGE", luaB__ERRORMESSAGE}, |
| 614 | {"call", luaB_call}, | 614 | {"call", luaB_call}, |
| 615 | {"collectgarbage", luaB_collectgarbage}, | 615 | {"collectgarbage", luaB_collectgarbage}, |
| 616 | {"copytagmethods", luaB_copytagmethods}, | 616 | {"copytagmethods", luaB_copytagmethods}, |
