Roberto Ierusalimschy
c77baf752c
comment
14 years ago
Roberto Ierusalimschy
a122688091
better error message for 'lua -e -i'
14 years ago
Roberto Ierusalimschy
f3026c36c2
details in opcode list
14 years ago
Roberto Ierusalimschy
cd0ebd0a80
'proto->source' may be NULL (if dump strips debug information)
14 years ago
Roberto Ierusalimschy
8bc33a088c
'os.exit' acceps booleans as status (for EXIT_SUCESS and EXIT_FAILURE)
14 years ago
Roberto Ierusalimschy
c3eb89544f
'luaL_loadlib' accepts Utf8 BOM in the beginning of files
14 years ago
Roberto Ierusalimschy
ffff9a49da
'nresults' in CallInfo now refers to number of results that the current
function returns (and not what it expects from a call)
14 years ago
Roberto Ierusalimschy
b22356e5c5
hexadecimal constants may be floating values too
14 years ago
Roberto Ierusalimschy
a289a62717
'loadin' should not check whether upvalue is called '_ENV',
because its name may be unknown when there is no debug information.
14 years ago
Roberto Ierusalimschy
e3eabcf913
'lua_[gs]etupvalue' may work even without debug information
(that is, without upvalue names)
14 years ago
Roberto Ierusalimschy
0df2238063
name "_ENV" configurable through 'luaconf.h'
14 years ago
Roberto Ierusalimschy
6828f6d427
new parameter 'majorinc' to control frequency of major collections
in generational mode
14 years ago
Roberto Ierusalimschy
daa5fe3e31
'loadin' should accept any value for the environment (not only tables) +
it should check whether chunk has upvalue named '_ENV'
14 years ago
Roberto Ierusalimschy
8d9ea59d28
'pushclosure' -> 'codeclosure' (as there is another 'pushclosure' in
'lvm.c) + small detail
14 years ago
Roberto Ierusalimschy
5e7dbd0b8b
api checks to ensure that thread is OK when using lua_call/lua_pcall
14 years ago
Roberto Ierusalimschy
cd6c276e41
use index 0 for header of list of free references
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
78f9635111
several new comments
14 years ago
Roberto Ierusalimschy
8b7cf8c62d
'lua_[gs]etenv' -> 'lua_[gs]etuservalue'
14 years ago
Roberto Ierusalimschy
73b0a3451d
environment variables consulted by Lua may be version-specific
14 years ago
Roberto Ierusalimschy
85c1461422
new macros LUA_VERSION_{MAJOR/MINOR/RELEASE}
14 years ago
Roberto Ierusalimschy
5ba556d27a
using curly brackets to mark blocks of '#if/#else/#endif's
15 years ago
Roberto Ierusalimschy
81dd13f4c6
new way to distinguish between indexing tables in registers and
tables in upvalues (+ fixed small bug when checking conflicts in
multiple assignments)
15 years ago
Roberto Ierusalimschy
6a02bbe1e2
better organization for fields in struct 'expdesc'
15 years ago
Roberto Ierusalimschy
7631c29b2f
comand-line option '-l' creates global with given name after
requiring module
15 years ago
Roberto Ierusalimschy
a9dc7c8828
functions lua_tonumber/lua_tointeger replaced by lua_tonumberx/lua_tointegerx
that have an extra out parameter with conversion status
15 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
a71c5f6f53
typo in comments
15 years ago
Roberto Ierusalimschy
d9ea6eca7c
macro 'key2tal' replaced by 'gkey' (as both were equal)
15 years ago
Roberto Ierusalimschy
ca3865cf1b
'getlocal' gets information about parameters of Lua functions
15 years ago
Roberto Ierusalimschy
bef5980744
no more support for old Mac OS systems
15 years ago
Roberto Ierusalimschy
409741e900
'what' may be NULL in 'kname'
15 years ago
Roberto Ierusalimschy
b98de30b8f
'ipair' is back
15 years ago
Roberto Ierusalimschy
9f48712c15
use ANSI versions of DLL functions in Windows
15 years ago
Roberto Ierusalimschy
bd262d591f
'coroutine' library separated from 'baselib'
15 years ago
Roberto Ierusalimschy
0d116c3ada
unused '#include' removed
15 years ago
Roberto Ierusalimschy
79f11fb2bb
back with #-comments for binary files
15 years ago
Roberto Ierusalimschy
fabe4ec487
better barrier for prototypes
15 years ago
Roberto Ierusalimschy
575074fd85
Lua closures are cached for reuse
15 years ago
Roberto Ierusalimschy
545f43065f
'luaF_newLclosure' gets prototype of new closure as argument
15 years ago
Roberto Ierusalimschy
3819c30e55
better names for barrier macros
15 years ago
Roberto Ierusalimschy
e94fac8956
bug: generational collection was not running collector! (must write
a test for this...)
15 years ago
Roberto Ierusalimschy
2c1a5d678d
factoring out common code in 'module' and 'luaL_openlib'
15 years ago
Roberto Ierusalimschy
bd619b9311
new macro MAXUPVAL (maximum number of upvalues per closure)
15 years ago
Roberto Ierusalimschy
aca84ee1a0
correct definition for 'lua_cpcall' (tested)
15 years ago
Roberto Ierusalimschy
5038e3c58c
corrected compatibility macro 'lua_cpcall' (untested)
15 years ago
Roberto Ierusalimschy
5a7dee0c5d
added class '%g' in patterns (for graphical characters)
15 years ago
Roberto Ierusalimschy
ddf1f2a053
GC should not run when stopped, even in hard tests
15 years ago