From 9be5844713036f89483c8f47dfaa45a1d52eb70f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Nov 2004 17:53:49 -0200 Subject: first full implementation of new package system --- luaconf.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 2b3fc736..46c4998c 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.14 2004/10/06 18:34:47 roberto Exp roberto $ +** $Id: luaconf.h,v 1.15 2004/10/18 18:07:31 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -31,7 +31,11 @@ */ /* default path */ -#define LUA_PATH_DEFAULT "?;?.lua" +#define LUA_PATH_DEFAULT \ + "./?.lua;/usr/local/share/lua/5.0/?.lua;/usr/local/share/lua/5.0/?/init.lua" +#define LUA_CPATH_DEFAULT \ + "./?.so;/usr/local/lib/lua/5.0/?.so;/usr/local/lib/lua/5.0/lib?.so" + /* type of numbers in Lua */ @@ -272,8 +276,16 @@ /* `assert' options */ -/* environment variable that holds the search path for packages */ +/* environment variables that hold the search path for packages */ #define LUA_PATH "LUA_PATH" +#define LUA_CPATH "LUA_CPATH" + +/* prefix for open functions in C libraries */ +#if defined(__APPLE__) && defined(__MACH__) +#define LUA_POF "_luaopen_" +#else +#define LUA_POF "luaopen_" +#endif /* directory separator (for submodules) */ #define LUA_DIRSEP "/" -- cgit v1.2.3-55-g6feb