diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
commit | ef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (patch) | |
tree | d9d995116a8a686b798d1b625b06ead26f28ba58 /lbuiltin.c | |
parent | 5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (diff) | |
download | lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.gz lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.bz2 lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.zip |
code cleaner for 16 bits.
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.108 2000/05/08 19:32:53 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.109 2000/05/09 14:50:16 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -273,7 +273,7 @@ static void passresults (lua_State *L) { | |||
273 | } | 273 | } |
274 | 274 | ||
275 | void luaB_dostring (lua_State *L) { | 275 | void luaB_dostring (lua_State *L) { |
276 | long l; | 276 | size_t l; |
277 | const char *s = luaL_check_lstr(L, 1, &l); | 277 | const char *s = luaL_check_lstr(L, 1, &l); |
278 | if (*s == ID_CHUNK) | 278 | if (*s == ID_CHUNK) |
279 | lua_error(L, "`dostring' cannot run pre-compiled code"); | 279 | lua_error(L, "`dostring' cannot run pre-compiled code"); |
@@ -633,7 +633,6 @@ static const struct luaL_reg builtin_funcs[] = { | |||
633 | 633 | ||
634 | void luaB_predefine (lua_State *L) { | 634 | void luaB_predefine (lua_State *L) { |
635 | /* pre-register mem error messages, to avoid loop when error arises */ | 635 | /* pre-register mem error messages, to avoid loop when error arises */ |
636 | luaS_newfixed(L, tableEM); | ||
637 | luaS_newfixed(L, memEM); | 636 | luaS_newfixed(L, memEM); |
638 | luaL_openl(L, builtin_funcs); | 637 | luaL_openl(L, builtin_funcs); |
639 | #ifdef DEBUG | 638 | #ifdef DEBUG |