aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c39
1 files changed, 38 insertions, 1 deletions
diff --git a/loadlib.c b/loadlib.c
index 0c3db013..6d7c5628 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.67 2009/11/16 15:51:19 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.68 2009/11/24 12:05:44 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**
@@ -22,6 +22,43 @@
22#include "lualib.h" 22#include "lualib.h"
23 23
24 24
25/*
26** LUA_PATH and LUA_CPATH are the names of the environment variables that
27** Lua check to set its paths.
28*/
29#if !defined(LUA_PATH)
30#define LUA_PATH "LUA_PATH"
31#endif
32
33#if !defined(LUA_CPATH)
34#define LUA_CPATH "LUA_CPATH"
35#endif
36
37
38/*
39** LUA_PATHSEP is the character that separates templates in a path.
40** LUA_PATH_MARK is the string that marks the substitution points in a
41** template.
42** LUA_EXECDIR in a Windows path is replaced by the executable's
43** directory.
44** LUA_IGMARK is a mark to ignore all before it when building the
45** luaopen_ function name.
46*/
47#if !defined (LUA_PATHSEP)
48#define LUA_PATHSEP ";"
49#endif
50#if !defined (LUA_PATH_MARK)
51#define LUA_PATH_MARK "?"
52#endif
53#if !defined (LUA_EXECDIR)
54#define LUA_EXECDIR "!"
55#endif
56#if !defined (LUA_IGMARK)
57#define LUA_IGMARK "-"
58#endif
59
60
61
25/* prefix for open functions in C libraries */ 62/* prefix for open functions in C libraries */
26#define LUA_POF "luaopen_" 63#define LUA_POF "luaopen_"
27 64