diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-26 09:50:58 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-26 09:50:58 -0200 |
commit | 2431534f1061149bf7db7985dd137cd6324056a8 (patch) | |
tree | 26823e41de155a930378f4cbc34e05c35baa1278 | |
parent | fd7d0774e549130e59f716f2397d195cedc1a412 (diff) | |
download | lua-2431534f1061149bf7db7985dd137cd6324056a8.tar.gz lua-2431534f1061149bf7db7985dd137cd6324056a8.tar.bz2 lua-2431534f1061149bf7db7985dd137cd6324056a8.zip |
details
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.16 1999/01/06 13:12:41 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.17 1999/01/08 16:47:44 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -133,8 +133,8 @@ int main (int argc, char *argv[]) | |||
133 | int i; | 133 | int i; |
134 | lua_open(); | 134 | lua_open(); |
135 | lua_pushstring("> "); lua_setglobal("_PROMPT"); | 135 | lua_pushstring("> "); lua_setglobal("_PROMPT"); |
136 | lua_userinit(); | ||
137 | setlocale(LC_ALL, ""); | 136 | setlocale(LC_ALL, ""); |
137 | lua_userinit(); | ||
138 | if (argc < 2) { /* no arguments? */ | 138 | if (argc < 2) { /* no arguments? */ |
139 | if (isatty(0)) { | 139 | if (isatty(0)) { |
140 | printf("%s %s\n", LUA_VERSION, LUA_COPYRIGHT); | 140 | printf("%s %s\n", LUA_VERSION, LUA_COPYRIGHT); |