Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/lua/dist/src lua: fixed LUA_ROOT, LUA_PATH_DEFA...



details:   https://anonhg.NetBSD.org/src/rev/1cd052ecc73a
branches:  trunk
changeset: 335972:1cd052ecc73a
user:      lneto <lneto%NetBSD.org@localhost>
date:      Wed Feb 04 04:47:57 2015 +0000

description:
lua: fixed LUA_ROOT, LUA_PATH_DEFAULT and LUA_CPATH_DEFAULT

* reverted from r1.8 (mbalmer)

diffstat:

 external/mit/lua/dist/src/luaconf.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r ddad158ff811 -r 1cd052ecc73a external/mit/lua/dist/src/luaconf.h
--- a/external/mit/lua/dist/src/luaconf.h       Wed Feb 04 04:37:13 2015 +0000
+++ b/external/mit/lua/dist/src/luaconf.h       Wed Feb 04 04:47:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: luaconf.h,v 1.11 2015/02/02 14:03:05 lneto Exp $       */
+/*     $NetBSD: luaconf.h,v 1.12 2015/02/04 04:47:57 lneto Exp $       */
 
 /*
 ** Id: luaconf.h,v 1.238 2014/12/29 13:27:55 roberto Exp 
@@ -753,6 +753,18 @@
 #define LUA_MAXINTEGER         INTMAX_MAX
 #define LUA_MININTEGER         INTMAX_MIN
 
+/* Path */
+#undef LUA_ROOT
+#undef LUA_PATH_DEFAULT
+#undef LUA_CPATH_DEFAULT
+
+#define LUA_ROOT       "/usr/"
+#define LUA_PATH_DEFAULT  \
+               LUA_LDIR"?.lua;"  LUA_LDIR"?/init.lua;" \
+               LUA_CDIR"?.lua;"  LUA_CDIR"?/init.lua"
+#define LUA_CPATH_DEFAULT \
+               LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
+
 #ifndef _KERNEL
 
 #include <stdint.h>



Home | Main Index | Thread Index | Old Index