Finally fix target detection for msvcbuild.bat.

Famous last words.
This commit is contained in:
Mike Pall
2012-07-07 20:36:35 +02:00
parent 7c056488d9
commit 6a67fa8a4b
3 changed files with 11 additions and 217 deletions

View File

@@ -62,7 +62,7 @@ int main(int argc, char **argv){
lua_State *L = luaL_newstate();
int i;
luaL_openlibs(L);
if (argc < 2) return 1;
if (argc < 2) return sizeof(void *);
lua_createtable(L, 0, 1);
lua_pushstring(L, argv[1]);
lua_rawseti(L, -2, 0);
@@ -226,7 +226,7 @@ local function strip_unused3(src)
src = gsub(src, "trydecpoint%(ls,seminfo%)",
"luaX_lexerror(ls,\"malformed number\",TK_NUMBER)")
src = gsub(src, "int c=luaZ_lookahead%b();", "")
src = gsub(src, "luaL_register%(L,\"coroutine\",co_funcs%);\nreturn 2;",
src = gsub(src, "luaL_register%(L,[^,]*,co_funcs%);\nreturn 2;",
"return 1;")
src = gsub(src, "getfuncname%b():", "NULL:")
src = gsub(src, "getobjname%b():", "NULL:")