diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-06 16:05:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-06 16:05:10 -0300 |
| commit | 71144e3ff0cb81bd9b8bb56d94dc76074c638c64 (patch) | |
| tree | 8098675276d0640684898d4302ea98ae91e2c430 /lapi.c | |
| parent | 0dbf0c5953a3d72deebc7e41840a0e73b46de8bc (diff) | |
| download | lua-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -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 | ||
| 644 | LUA_API void lua_errorobj (lua_State *L) { | 644 | LUA_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 | ||
