From bfe29056186e6e25785e1233476a1b12481deab3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 18 Mar 2005 13:38:43 -0300 Subject: [PATCH] avoid too much configuration options --- loadlib.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/loadlib.c b/loadlib.c index f5543718..2d3b261c 100644 --- 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