diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-18 13:38:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-18 13:38:43 -0300 |
| commit | bfe29056186e6e25785e1233476a1b12481deab3 (patch) | |
| tree | e7bf5b79d1d0f621077f561393b4dbb801cc3a38 | |
| parent | 2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3 (diff) | |
| download | lua-bfe29056186e6e25785e1233476a1b12481deab3.tar.gz lua-bfe29056186e6e25785e1233476a1b12481deab3.tar.bz2 lua-bfe29056186e6e25785e1233476a1b12481deab3.zip | |
avoid too much configuration options
| -rw-r--r-- | loadlib.c | 21 |
1 files changed, 16 insertions, 5 deletions
| @@ -1,11 +1,11 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.20 2005/03/08 20:10:05 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.21 2005/03/09 16:28:07 roberto Exp roberto $ |
| 3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | * | 5 | ** |
| 6 | * This module contains an implementation of loadlib for Unix systems | 6 | ** This module contains an implementation of loadlib for Unix systems |
| 7 | * that have dlfcn, an implementation for Darwin (Mac OS X), an | 7 | ** that have dlfcn, an implementation for Darwin (Mac OS X), an |
| 8 | * implementation for Windows, and a stub for other systems. | 8 | ** implementation for Windows, and a stub for other systems. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | 11 | ||
| @@ -21,6 +21,17 @@ | |||
| 21 | #include "lualib.h" | 21 | #include "lualib.h" |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | /* environment variables that hold the search path for packages */ | ||
| 25 | #define LUA_PATH "LUA_PATH" | ||
| 26 | #define LUA_CPATH "LUA_CPATH" | ||
| 27 | |||
| 28 | /* prefix for open functions in C libraries */ | ||
| 29 | #define LUA_POF "luaopen_" | ||
| 30 | |||
| 31 | /* separator for open functions in C libraries */ | ||
| 32 | #define LUA_OFSEP "_" | ||
| 33 | |||
| 34 | |||
| 24 | #define LIBPREFIX "LOADLIB: " | 35 | #define LIBPREFIX "LOADLIB: " |
| 25 | 36 | ||
| 26 | #define POF LUA_POF | 37 | #define POF LUA_POF |
