aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 51bea491..9b0e29fe 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -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*/
97void luaB_alert (lua_State *L) { 97void 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*/
106void luaB_ERRORMESSAGE (lua_State *L) { 106void 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
530static int sort_comp (lua_State *L, lua_Object f, const TObject *a, 530static 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
611static const struct luaL_reg builtin_funcs[] = { 611static 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},