Roberto Ierusalimschy
b2aa2ba046
using constants for "_LOADED" and "PRELOAD"
8 years ago
Roberto Ierusalimschy
de3fd8ab83
Handling of LUA_PATH/LUA_CPATH moved from package library to stand
alone interpreter (so that 'lua.c' concentrates all handling of
environment variables)
8 years ago
Roberto Ierusalimschy
c5112f7b15
details (comments)
9 years ago
Roberto Ierusalimschy
374f6c4612
detail ('fopen' needs 'stdio.h')
10 years ago
Roberto Ierusalimschy
a9a4bf68b0
typo in comment
10 years ago
Roberto Ierusalimschy
0adfa773b9
new macro 'cast_func' adds '__extension__' (in gnu compilers) when
converting void* to function, to avoid warnings
10 years ago
Roberto Ierusalimschy
52c0f9575b
uses return value from lua_getfield
10 years ago
Roberto Ierusalimschy
e320790154
using address instead of string for key for table 'CLIBS' in the
registry
10 years ago
Roberto Ierusalimschy
c49edc4566
keep "#include <windows.h>" in this file, but without the
previous requirement that it must be included before any other
header file (it doesn't seem to matter)
10 years ago
Roberto Ierusalimschy
28fdbcf393
added include for 'lprefix.h', for stuff that must be added before
any other header file
10 years ago
Roberto Ierusalimschy
aa1bd8876c
comments
10 years ago
Roberto Ierusalimschy
bdf566a8a3
`name' in comments changed to 'name'
10 years ago
Roberto Ierusalimschy
f97c64d7bf
macros 'LUA_QL'/'LUA_QL' deprecated
10 years ago
Roberto Ierusalimschy
3ccbae84d2
added some casts between integral types (to avoid warnings)
10 years ago
Roberto Ierusalimschy
255d59ed5e
some janitorial work (comments, small refactoring)
10 years ago
Roberto Ierusalimschy
f14662fca6
detail (added placeholders for non-function fields to preallocate
space for them)
10 years ago
Roberto Ierusalimschy
a3addae036
lua_gettable and similars return type of gotten value
11 years ago
Roberto Ierusalimschy
c5fcba1a17
detail (changing some names of macros)
11 years ago
Roberto Ierusalimschy
b77a90681e
typos in comments
13 years ago
Roberto Ierusalimschy
ec22fc963a
detail (separate code to create 'searchers' table into a new function)
13 years ago
Roberto Ierusalimschy
b10dbe5c72
bug: C libraries must be unloaded after all other finalizers have run,
because a finalizer may use a C function from a C library
13 years ago
Roberto Ierusalimschy
e2fc2ce8df
new way to handle -E option (write a mark in the registry to avoid
reading environment variables)
13 years ago
Roberto Ierusalimschy
7bcb2462e4
comments
13 years ago
Roberto Ierusalimschy
aea68e5c54
explicit option RTLD_LOCAL instead of 0 (Posix does not fix
a default for dlopen)
13 years ago
Roberto Ierusalimschy
5184ff2096
'LUA_DL_DLL' is not yet defined before the inclusion of 'lua.h'
13 years ago
Roberto Ierusalimschy
3105febf9a
using Lua buffers to build error messages
13 years ago
Roberto Ierusalimschy
eef22fa4ce
create error messages with a single concat, to avoid problems with
creating strings piecemeal
13 years ago
Roberto Ierusalimschy
30cea671a7
configurable 'directory separator' in 'package.searchpath'
13 years ago
Roberto Ierusalimschy
6d8d282e0f
avoid calling "extra value" as if it were a function option
13 years ago
Roberto Ierusalimschy
79cbc3468c
removed and deprecated functions really removed from the code base
14 years ago
Roberto Ierusalimschy
49a01c0991
'package.loaders' -> 'package.searchers'
14 years ago
Roberto Ierusalimschy
19fbdf6cae
'luaL_findtable' -> 'luaL_getsubtable'
14 years ago
Roberto Ierusalimschy
e049abb69a
loaders receive an extra argument returned by the searcher
(typically the file name)
14 years ago
Roberto Ierusalimschy
e7a9c45a48
trying to avoid assumption that sizeof(char)==1
14 years ago
Roberto Ierusalimschy
67feed49f1
optional argument 'sep' to 'searchpath'
14 years ago
Roberto Ierusalimschy
0a6a6b9d9d
no more sentinel to detect loops in module dependencies;
usual message for infinite recursion is good enough.
14 years ago
Roberto Ierusalimschy
c97aa9485c
new function 'luaL_setmetatable'
14 years ago
Roberto Ierusalimschy
ba8dca00ac
detail (ununsed parameter)
14 years ago
Roberto Ierusalimschy
0df2238063
name "_ENV" configurable through 'luaconf.h'
14 years ago
Roberto Ierusalimschy
fd4b4a2a68
detail: registry._PRELOAD must be a table, no need to check
14 years ago
Roberto Ierusalimschy
d447945685
'module'/'luaL_register' and associates are deprecated
14 years ago
Roberto Ierusalimschy
73b0a3451d
environment variables consulted by Lua may be version-specific
14 years ago
Roberto Ierusalimschy
7192afafee
new module policy: C modules do not create globals and do not register
themselves with 'require' (let 'require' do its work); new auxiliary
functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref.
Old luaL_register will be deprecated.
15 years ago
Roberto Ierusalimschy
a139e2e003
old (and complex) luaL_findtable now used only in compatibility code
inside lauxlib.c
15 years ago
Roberto Ierusalimschy
bef5980744
no more support for old Mac OS systems
15 years ago
Roberto Ierusalimschy
9f48712c15
use ANSI versions of DLL functions in Windows
15 years ago
Roberto Ierusalimschy
2c1a5d678d
factoring out common code in 'module' and 'luaL_openlib'
15 years ago
Roberto Ierusalimschy
5ca7cdd709
for compatibility only: 'module' changes the first upvalue of
calling function to affect its environment
15 years ago
Roberto Ierusalimschy
1514e49d43
avoid using function environments in C libraries (as it probably will
be deprecated)
15 years ago
Roberto Ierusalimschy
b678f246a4
HINSTANCE -> HMODULE (they are the same thing, but the MS documentation
uses the latter) + LoadLibrary -> LoadLibraryEx with optional arguments,
to allow the option LOAD_WITH_ALTERED_SEARCH_PATH
15 years ago