aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-06 16:05:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-06 16:05:10 -0300
commit71144e3ff0cb81bd9b8bb56d94dc76074c638c64 (patch)
tree8098675276d0640684898d4302ea98ae91e2c430 /lapi.c
parent0dbf0c5953a3d72deebc7e41840a0e73b46de8bc (diff)
downloadlua-71144e3ff0cb81bd9b8bb56d94dc76074c638c64.tar.gz
lua-71144e3ff0cb81bd9b8bb56d94dc76074c638c64.tar.bz2
lua-71144e3ff0cb81bd9b8bb56d94dc76074c638c64.zip
errors `return' int, to avoid warnings
+ home-made `sprintf' (first version)
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 54ec5f3b..fa05ca49 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.187 2002/05/02 16:55:55 roberto Exp roberto $ 2** $Id: lapi.c,v 1.188 2002/05/06 15:51:41 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -641,11 +641,12 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold) {
641*/ 641*/
642 642
643 643
644LUA_API void lua_errorobj (lua_State *L) { 644LUA_API int lua_errorobj (lua_State *L) {
645 lua_lock(L); 645 lua_lock(L);
646 api_checknelems(L, 1); 646 api_checknelems(L, 1);
647 luaD_errorobj(L, L->top - 1, LUA_ERRRUN); 647 luaD_errorobj(L, L->top - 1, LUA_ERRRUN);
648 lua_unlock(L); 648 lua_unlock(L);
649 return 0; /* to avoid warnings */
649} 650}
650 651
651 652