commit bfe29056186e6e25785e1233476a1b12481deab3
parent 2cbd9eecfb703b9c5b2963f6a4db63bd815fafc3
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 18 Mar 2005 13:38:21 -0300
avoid too much configuration options
Diffstat:
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/loadlib.c b/loadlib.c
@@ -1,11 +1,11 @@
/*
-** $Id: loadlib.c,v 1.20 2005/03/08 20:10:05 roberto Exp roberto $
+** $Id: loadlib.c,v 1.21 2005/03/09 16:28:07 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
-*
-* This module contains an implementation of loadlib for Unix systems
-* that have dlfcn, an implementation for Darwin (Mac OS X), an
-* implementation for Windows, and a stub for other systems.
+**
+** This module contains an implementation of loadlib for Unix systems
+** that have dlfcn, an implementation for Darwin (Mac OS X), an
+** implementation for Windows, and a stub for other systems.
*/
@@ -21,6 +21,17 @@
#include "lualib.h"
+/* 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 */
+#define LUA_POF "luaopen_"
+
+/* separator for open functions in C libraries */
+#define LUA_OFSEP "_"
+
+
#define LIBPREFIX "LOADLIB: "
#define POF LUA_POF