diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-08 14:47:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-08 14:47:44 -0200 |
commit | 01772cefa5217a7840254d1e7ec340dea8f0747a (patch) | |
tree | 01fcf83242542a8ad171a358994b7c4c0cc835dd /lua.c | |
parent | dc90d4bce340f987a5048c17699a653f47360711 (diff) | |
download | lua-01772cefa5217a7840254d1e7ec340dea8f0747a.tar.gz lua-01772cefa5217a7840254d1e7ec340dea8f0747a.tar.bz2 lua-01772cefa5217a7840254d1e7ec340dea8f0747a.zip |
new library for debbuging
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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) { | |||
131 | int main (int argc, char *argv[]) | 131 | int 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); |