lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Here's the patch -- see the subject: line...
Incidentally, it wasn't very easy to disable loadlib support
at all in 5.1w3.
The 'config' file's notes about setting LOADLIB to 0 or 1
won't seem to affect matters, since loadlib.c uses #ifdef
rather then #if to test this var (and others).

Regards,
--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
--- loadlib.c.orig	Tue Dec  7 16:19:27 2004
+++ loadlib.c	Tue Dec  7 16:19:31 2004
@@ -176,7 +176,7 @@
 
 #define freelib(lib)	((void)lib)
 
-static int loadlib(lua_State *L)
+static int loadlib(lua_State *L, const char *path, const char *init)
 {
  registerlib(L, NULL);  /* to avoid warnings */
  lua_pushnil(L);