diff options
author | Lua Team <team@lua.org> | 2005-09-09 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2005-09-09 12:00:00 +0000 |
commit | bd80c4ee9b6d9464cf9f3ff4ee41890d8b3ca9e6 (patch) | |
tree | e1d7c1b341ccb9a3a1fb044ac6e67b5a5e0259b7 /etc/noparser.c | |
parent | bf6b5550cdfbc0c4a3a4577776ad76628d80718e (diff) | |
download | lua-github-5.1-alpha.tar.gz |
Lua 5.1-alpha5.1-alpha
Diffstat (limited to 'etc/noparser.c')
-rw-r--r-- | etc/noparser.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/etc/noparser.c b/etc/noparser.c index 9396ad60..13ba5462 100644 --- a/etc/noparser.c +++ b/etc/noparser.c @@ -18,13 +18,14 @@ #include "lparser.h" #include "lzio.h" -void luaX_init (lua_State *L) { +LUAI_FUNC void luaX_init (lua_State *L) { UNUSED(L); } -Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { +LUAI_FUNC Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { UNUSED(z); UNUSED(buff); + UNUSED(name); lua_pushliteral(L,"parser not loaded"); lua_error(L); return NULL; @@ -33,10 +34,17 @@ Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { #ifdef NODUMP #include "lundump.h" -int luaU_dump (lua_State* L, const Proto* Main, lua_Chunkwriter w, void* data, int strip) -{ - return 0; - lua_pushliteral(L,"dumper not loaded"); - lua_error(L); +LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) { + UNUSED(f); + UNUSED(w); + UNUSED(data); + UNUSED(strip); +#if 1 + UNUSED(L); + return 0; +#else + lua_pushliteral(L,"dumper not loaded"); + lua_error(L); +#endif } #endif |