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 /lauxlib.h | |
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 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.44 2002/04/02 20:42:49 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.45 2002/05/01 20:40:42 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -31,9 +31,8 @@ LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int nup); | |||
31 | LUALIB_API void luaL_opennamedlib (lua_State *L, const char *libname, | 31 | LUALIB_API void luaL_opennamedlib (lua_State *L, const char *libname, |
32 | const luaL_reg *l, int nup); | 32 | const luaL_reg *l, int nup); |
33 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event); | 33 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event); |
34 | LUALIB_API void luaL_typerror (lua_State *L, int narg, const char *tname); | 34 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname); |
35 | LUALIB_API void luaL_argerror (lua_State *L, int numarg, | 35 | LUALIB_API int luaL_argerror (lua_State *L, int numarg, const char *extramsg); |
36 | const char *extramsg); | ||
37 | LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, | 36 | LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, |
38 | size_t *len); | 37 | size_t *len); |
39 | LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, | 38 | LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, |
@@ -45,7 +44,8 @@ LUALIB_API void luaL_check_stack (lua_State *L, int space, const char *msg); | |||
45 | LUALIB_API void luaL_check_type (lua_State *L, int narg, int t); | 44 | LUALIB_API void luaL_check_type (lua_State *L, int narg, int t); |
46 | LUALIB_API void luaL_check_any (lua_State *L, int narg); | 45 | LUALIB_API void luaL_check_any (lua_State *L, int narg); |
47 | 46 | ||
48 | LUALIB_API void luaL_verror (lua_State *L, const char *fmt, ...); | 47 | LUALIB_API int luaL_verror (lua_State *L, const char *fmt, ...); |
48 | LUALIB_API void luaL_vstr (lua_State *L, const char *fmt, ...); | ||
49 | LUALIB_API int luaL_findstring (const char *name, | 49 | LUALIB_API int luaL_findstring (const char *name, |
50 | const char *const list[]); | 50 | const char *const list[]); |
51 | 51 | ||