summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lua.c b/lua.c
index 576d34fe..1ab0ac44 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.15 1998/12/28 13:44:54 roberto Exp $ 2** $Id: lua.c,v 1.16 1999/01/06 13:12:41 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*/
@@ -131,11 +131,10 @@ static void manual_input (int prompt) {
131int main (int argc, char *argv[]) 131int main (int argc, char *argv[])
132{ 132{
133 int i; 133 int i;
134 setlocale(LC_ALL, ""); 134 lua_open();
135 lua_iolibopen();
136 lua_strlibopen();
137 lua_mathlibopen();
138 lua_pushstring("> "); lua_setglobal("_PROMPT"); 135 lua_pushstring("> "); lua_setglobal("_PROMPT");
136 lua_userinit();
137 setlocale(LC_ALL, "");
139 if (argc < 2) { /* no arguments? */ 138 if (argc < 2) { /* no arguments? */
140 if (isatty(0)) { 139 if (isatty(0)) {
141 printf("%s %s\n", LUA_VERSION, LUA_COPYRIGHT); 140 printf("%s %s\n", LUA_VERSION, LUA_COPYRIGHT);