diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/stdlib.c | 4 | ||||
-rw-r--r-- | src/lib/lua/luaconf.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib.c b/src/lib/libc/stdlib.c index 6b200c2..fa9d468 100644 --- a/src/lib/libc/stdlib.c +++ b/src/lib/libc/stdlib.c @@ -76,10 +76,6 @@ double strtod(const char *nptr, char **endptr) { } char *getenv(const char *name) { - // HACK - if (!strcmp(name, "LUA_INIT")) { - return "require 'init'"; - } // TODO return 0; } diff --git a/src/lib/lua/luaconf.h b/src/lib/lua/luaconf.h index 22418f3..c0cfb0f 100644 --- a/src/lib/lua/luaconf.h +++ b/src/lib/lua/luaconf.h @@ -174,8 +174,10 @@ ** non-conventional directories. */ #define LUA_ROOT "sys:/lua/" +#define LUA_APPROOT "app:/" #define LUA_PATH_DEFAULT \ LUA_ROOT"?.lua;" LUA_ROOT"?/init.lua;" \ + LUA_APPROOT"?.lua;" LUA_APPROOT"?/init.lua;" \ "./?.lua;" "./?/init.lua" #define LUA_CPATH_DEFAULT \ LUA_ROOT"?.so;" "./?.so" |