diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-02-08 14:39:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-02-08 14:39:42 -0200 |
commit | 74f1c3d025c6d8a714454470a953f383a1c6a641 (patch) | |
tree | cc89dfa109c64ed928217d777959ffc7ace12501 /lauxlib.c | |
parent | 1f691a4fcd32b706c79e4c8cbff17c6ae985bc34 (diff) | |
download | lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.gz lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.bz2 lua-74f1c3d025c6d8a714454470a953f383a1c6a641.zip |
small changes for "clean C"
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.24 1999/12/28 11:52:49 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.25 2000/01/19 12:00:45 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 | */ |
@@ -42,11 +42,11 @@ void luaL_argerror (lua_State *L, int narg, const char *extramsg) { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ||
45 | static void type_error (lua_State *L, int narg, const char *typename, | 45 | static void type_error (lua_State *L, int narg, const char *type_name, |
46 | lua_Object o) { | 46 | lua_Object o) { |
47 | char buff[100]; | 47 | char buff[100]; |
48 | const char *otype = (o == LUA_NOOBJECT) ? "no value" : lua_type(L, o); | 48 | const char *otype = (o == LUA_NOOBJECT) ? "no value" : lua_type(L, o); |
49 | sprintf(buff, "%.10s expected, got %.10s", typename, otype); | 49 | sprintf(buff, "%.10s expected, got %.10s", type_name, otype); |
50 | luaL_argerror(L, narg, buff); | 50 | luaL_argerror(L, narg, buff); |
51 | } | 51 | } |
52 | 52 | ||