diff options
author | Mike Pall <mike> | 2012-07-07 20:36:35 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-07-07 20:36:35 +0200 |
commit | 6a67fa8a4b2b038e0dca676303545da47f2b9773 (patch) | |
tree | 4e34a2e21e2a5a9b4a7a59056967f5920266db13 /src/host/genminilua.lua | |
parent | 7c056488d96434fc9996ba8b2b2a684f03472b62 (diff) | |
download | luajit-6a67fa8a4b2b038e0dca676303545da47f2b9773.tar.gz luajit-6a67fa8a4b2b038e0dca676303545da47f2b9773.tar.bz2 luajit-6a67fa8a4b2b038e0dca676303545da47f2b9773.zip |
Finally fix target detection for msvcbuild.bat.
Famous last words.
Diffstat (limited to 'src/host/genminilua.lua')
-rw-r--r-- | src/host/genminilua.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/genminilua.lua b/src/host/genminilua.lua index 7282cf16..587d5a8d 100644 --- a/src/host/genminilua.lua +++ b/src/host/genminilua.lua | |||
@@ -62,7 +62,7 @@ int main(int argc, char **argv){ | |||
62 | lua_State *L = luaL_newstate(); | 62 | lua_State *L = luaL_newstate(); |
63 | int i; | 63 | int i; |
64 | luaL_openlibs(L); | 64 | luaL_openlibs(L); |
65 | if (argc < 2) return 1; | 65 | if (argc < 2) return sizeof(void *); |
66 | lua_createtable(L, 0, 1); | 66 | lua_createtable(L, 0, 1); |
67 | lua_pushstring(L, argv[1]); | 67 | lua_pushstring(L, argv[1]); |
68 | lua_rawseti(L, -2, 0); | 68 | lua_rawseti(L, -2, 0); |
@@ -226,7 +226,7 @@ local function strip_unused3(src) | |||
226 | src = gsub(src, "trydecpoint%(ls,seminfo%)", | 226 | src = gsub(src, "trydecpoint%(ls,seminfo%)", |
227 | "luaX_lexerror(ls,\"malformed number\",TK_NUMBER)") | 227 | "luaX_lexerror(ls,\"malformed number\",TK_NUMBER)") |
228 | src = gsub(src, "int c=luaZ_lookahead%b();", "") | 228 | src = gsub(src, "int c=luaZ_lookahead%b();", "") |
229 | src = gsub(src, "luaL_register%(L,\"coroutine\",co_funcs%);\nreturn 2;", | 229 | src = gsub(src, "luaL_register%(L,[^,]*,co_funcs%);\nreturn 2;", |
230 | "return 1;") | 230 | "return 1;") |
231 | src = gsub(src, "getfuncname%b():", "NULL:") | 231 | src = gsub(src, "getfuncname%b():", "NULL:") |
232 | src = gsub(src, "getobjname%b():", "NULL:") | 232 | src = gsub(src, "getobjname%b():", "NULL:") |