diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-18 17:53:49 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-18 17:53:49 -0200 |
commit | 9be5844713036f89483c8f47dfaa45a1d52eb70f (patch) | |
tree | d6466081fed22b0641f8543eebb1f9b11409d6db /luaconf.h | |
parent | 497f042fadb76bdca15fec27ea087a9995182005 (diff) | |
download | lua-9be5844713036f89483c8f47dfaa45a1d52eb70f.tar.gz lua-9be5844713036f89483c8f47dfaa45a1d52eb70f.tar.bz2 lua-9be5844713036f89483c8f47dfaa45a1d52eb70f.zip |
first full implementation of new package system
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.14 2004/10/06 18:34:47 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.15 2004/10/18 18:07:31 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -31,7 +31,11 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | /* default path */ | 33 | /* default path */ |
34 | #define LUA_PATH_DEFAULT "?;?.lua" | 34 | #define LUA_PATH_DEFAULT \ |
35 | "./?.lua;/usr/local/share/lua/5.0/?.lua;/usr/local/share/lua/5.0/?/init.lua" | ||
36 | #define LUA_CPATH_DEFAULT \ | ||
37 | "./?.so;/usr/local/lib/lua/5.0/?.so;/usr/local/lib/lua/5.0/lib?.so" | ||
38 | |||
35 | 39 | ||
36 | 40 | ||
37 | /* type of numbers in Lua */ | 41 | /* type of numbers in Lua */ |
@@ -272,8 +276,16 @@ | |||
272 | 276 | ||
273 | /* `assert' options */ | 277 | /* `assert' options */ |
274 | 278 | ||
275 | /* environment variable that holds the search path for packages */ | 279 | /* environment variables that hold the search path for packages */ |
276 | #define LUA_PATH "LUA_PATH" | 280 | #define LUA_PATH "LUA_PATH" |
281 | #define LUA_CPATH "LUA_CPATH" | ||
282 | |||
283 | /* prefix for open functions in C libraries */ | ||
284 | #if defined(__APPLE__) && defined(__MACH__) | ||
285 | #define LUA_POF "_luaopen_" | ||
286 | #else | ||
287 | #define LUA_POF "luaopen_" | ||
288 | #endif | ||
277 | 289 | ||
278 | /* directory separator (for submodules) */ | 290 | /* directory separator (for submodules) */ |
279 | #define LUA_DIRSEP "/" | 291 | #define LUA_DIRSEP "/" |