diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-10 16:21:20 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-10 16:21:20 -0300 |
| commit | 578433176865773ddd4c935f0a936c2a897826b3 (patch) | |
| tree | 5a753a99cd92845e6b73954ba370a683c1310d4c | |
| parent | 88a9e51f3431548833772207242f9c804fb8e44d (diff) | |
| download | lua-578433176865773ddd4c935f0a936c2a897826b3.tar.gz lua-578433176865773ddd4c935f0a936c2a897826b3.tar.bz2 lua-578433176865773ddd4c935f0a936c2a897826b3.zip | |
new items in default path for Windows
| -rw-r--r-- | luaconf.h | 16 |
1 files changed, 10 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.205 2014/05/27 13:59:03 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.206 2014/06/02 00:03:16 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 | */ |
| @@ -100,26 +100,30 @@ | |||
| 100 | ** hierarchy or if you want to install your libraries in | 100 | ** hierarchy or if you want to install your libraries in |
| 101 | ** non-conventional directories. | 101 | ** non-conventional directories. |
| 102 | */ | 102 | */ |
| 103 | #if defined(_WIN32) /* { */ | 103 | #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR |
| 104 | #if defined(_WIN32) /* { */ | ||
| 104 | /* | 105 | /* |
| 105 | ** In Windows, any exclamation mark ('!') in the path is replaced by the | 106 | ** In Windows, any exclamation mark ('!') in the path is replaced by the |
| 106 | ** path of the directory of the executable file of the current process. | 107 | ** path of the directory of the executable file of the current process. |
| 107 | */ | 108 | */ |
| 108 | #define LUA_LDIR "!\\lua\\" | 109 | #define LUA_LDIR "!\\lua\\" |
| 109 | #define LUA_CDIR "!\\" | 110 | #define LUA_CDIR "!\\" |
| 111 | #define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\" | ||
| 110 | #define LUA_PATH_DEFAULT \ | 112 | #define LUA_PATH_DEFAULT \ |
| 111 | LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \ | 113 | LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \ |
| 112 | LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \ | 114 | LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \ |
| 115 | LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \ | ||
| 113 | ".\\?.lua;" ".\\?\\init.lua" | 116 | ".\\?.lua;" ".\\?\\init.lua" |
| 114 | #define LUA_CPATH_DEFAULT \ | 117 | #define LUA_CPATH_DEFAULT \ |
| 115 | LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll" | 118 | LUA_CDIR"?.dll;" \ |
| 119 | LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \ | ||
| 120 | LUA_CDIR"loadall.dll;" ".\\?.dll" | ||
| 116 | 121 | ||
| 117 | #else /* }{ */ | 122 | #else /* }{ */ |
| 118 | 123 | ||
| 119 | #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/" | ||
| 120 | #define LUA_ROOT "/usr/local/" | 124 | #define LUA_ROOT "/usr/local/" |
| 121 | #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR | 125 | #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" |
| 122 | #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR | 126 | #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" |
| 123 | #define LUA_PATH_DEFAULT \ | 127 | #define LUA_PATH_DEFAULT \ |
| 124 | LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ | 128 | LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ |
| 125 | LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ | 129 | LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ |
