diff options
| -rw-r--r-- | lua.c | 9 |
1 files changed, 1 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.c,v 1.18 1999/01/26 11:50:58 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.19 1999/02/04 17:47:59 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 | */ |
| @@ -15,12 +15,6 @@ | |||
| 15 | #include "lualib.h" | 15 | #include "lualib.h" |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #ifndef OLD_ANSI | ||
| 19 | #include <locale.h> | ||
| 20 | #else | ||
| 21 | #define setlocale(a,b) 0 | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #ifdef _POSIX_SOURCE | 18 | #ifdef _POSIX_SOURCE |
| 25 | #include <unistd.h> | 19 | #include <unistd.h> |
| 26 | #else | 20 | #else |
| @@ -131,7 +125,6 @@ int main (int argc, char *argv[]) | |||
| 131 | int i; | 125 | int i; |
| 132 | lua_open(); | 126 | lua_open(); |
| 133 | lua_pushstring("> "); lua_setglobal("_PROMPT"); | 127 | lua_pushstring("> "); lua_setglobal("_PROMPT"); |
| 134 | setlocale(LC_ALL, ""); | ||
| 135 | lua_userinit(); | 128 | lua_userinit(); |
| 136 | if (argc < 2) { /* no arguments? */ | 129 | if (argc < 2) { /* no arguments? */ |
| 137 | if (isatty(0)) { | 130 | if (isatty(0)) { |
