diff options
author | Lua Team <team@lua.org> | 2003-11-25 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2003-11-25 12:00:00 +0000 |
commit | 72286a8eeb927e1a33f24e9d99bb37ec5343ad45 (patch) | |
tree | 5a325cc1666ee447433fd4a565ec7f12be57f00f /src/luac/luac.c | |
parent | f0e4e22f5c119865eb5a8d3844a40df2d5980b3b (diff) | |
download | lua-github-5.0.1.tar.gz |
Lua 5.0.15.0.1
Diffstat (limited to 'src/luac/luac.c')
-rw-r--r-- | src/luac/luac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luac/luac.c b/src/luac/luac.c index 9ea23342..1aff0bd9 100644 --- a/src/luac/luac.c +++ b/src/luac/luac.c @@ -1,5 +1,5 @@ /* -** $Id: luac.c,v 1.44 2003/04/07 20:34:20 lhf Exp $ +** $Id: luac.c,v 1.44a 2003/04/07 20:34:20 lhf Exp $ ** Lua compiler (saves bytecodes to files; also list bytecodes) ** See Copyright Notice in lua.h */ @@ -182,7 +182,9 @@ int main(int argc, char* argv[]) FILE* D=fopen(output,"wb"); if (D==NULL) cannot(output,"open","out"); if (stripping) strip(L,f); + lua_lock(L); luaU_dump(L,f,writer,D); + lua_unlock(L); if (ferror(D)) cannot(output,"write","out"); fclose(D); } |