diff options
author | Alex Auvolat <alex@adnab.me> | 2017-04-19 12:13:30 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-04-19 12:13:30 +0200 |
commit | d4a89538d381bb62b4c7c864b09d3d8274cf0bdb (patch) | |
tree | db9f4e0066eddd7661eaf92375e84d584c64d987 /src/lib | |
parent | 8e88e765ee17296a85c5ae372471ed248ce321db (diff) | |
download | kogata-d4a89538d381bb62b4c7c864b09d3d8274cf0bdb.tar.gz kogata-d4a89538d381bb62b4c7c864b09d3d8274cf0bdb.zip |
First code for lx (Lua eXtended)
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" |