diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.40 2000/10/20 16:39:03 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.41 2000/10/27 16:15:53 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 | */ |
@@ -75,8 +75,7 @@ LUALIB_API const char *luaL_check_lstr (lua_State *L, int narg, size_t *len) { | |||
75 | } | 75 | } |
76 | 76 | ||
77 | 77 | ||
78 | LUALIB_API const char *luaL_opt_lstr (lua_State *L, int narg, const char *def, | 78 | LUALIB_API const char *luaL_opt_lstr (lua_State *L, int narg, const char *def, size_t *len) { |
79 | size_t *len) { | ||
80 | if (lua_isnull(L, narg)) { | 79 | if (lua_isnull(L, narg)) { |
81 | if (len) | 80 | if (len) |
82 | *len = (def ? strlen(def) : 0); | 81 | *len = (def ? strlen(def) : 0); |