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
Roberto Ierusalimschy
e34d3c06b0
it is better to call open functions with lua_call to not mess
the caller stack
15 years ago
Roberto Ierusalimschy
e8a2c36909
more comments
15 years ago
Roberto Ierusalimschy
3c39a0e8cb
bug: loadfile of binary files read first character twice
15 years ago
Roberto Ierusalimschy
3d45a8eb1c
really stop collection during finalizers
15 years ago
Roberto Ierusalimschy
3d80aeab5a
lua_pushstring may reallocate the stack, making 'o' a dangling
pointer
15 years ago
Roberto Ierusalimschy
3811e23b32
detail (comment)
15 years ago
Roberto Ierusalimschy
12c764ed1e
semicolons now represent the empty statement
15 years ago
Roberto Ierusalimschy
e99e9a9473
patches for last two bugs (string.format and io.read)
15 years ago
Roberto Ierusalimschy
f35ac38e1d
updated depenency lists + eliminated duplication of definitions
for MYCFLAGS, MYLDFLAGS, and MYLIBS.
15 years ago
Roberto Ierusalimschy
058279d548
comments
15 years ago
Roberto Ierusalimschy
69ba1ac441
new "instruction" 'absindex'
15 years ago
Roberto Ierusalimschy
4a925c1552
in 'absindex', do not need to call gettop (can inline it)
15 years ago
Roberto Ierusalimschy
cf531912f2
one more macro (mvdispatch) to easy experiments with alternative
dispatch methods
15 years ago
Roberto Ierusalimschy
0d00729e31
detail (breaking a long line)
15 years ago
Roberto Ierusalimschy
b6e9fcbd70
use of macro ('vmcase') to format all cases in main switch of
'luaV_execute' (to facilitate experiences with direct threading)
15 years ago
Roberto Ierusalimschy
8554baeacf
small changes in 'luaV_execute' to make cases more regularly formatted
15 years ago
Roberto Ierusalimschy
f5b7f077ec
added comments to '#else' and '#endif' in long conditionals
15 years ago
Roberto Ierusalimschy
e924a7f9ea
new API function 'lua_absindex'
15 years ago
Roberto Ierusalimschy
4fd76b8148
avoid "strong" cast
15 years ago
Roberto Ierusalimschy
de0f51a02c
wrong type being assigned (not detected because of obj2gco macro)
15 years ago
Roberto Ierusalimschy
0567221848
udata in 'tobefnz' list be have old bit on (it will be cleared
when udata is moved to 'allgc' list)
15 years ago
Roberto Ierusalimschy
1c1a98e872
corrected some places where an old object could end up in front
of a new one + minimal documentation about this problem
15 years ago
Roberto Ierusalimschy
c006f085d9
new macro 'resetoldbit'
15 years ago
Roberto Ierusalimschy
a48e330f37
macros 'lua_number2int' and 'lua_number2uint' for Visual Studio
corrected and tested
15 years ago
Roberto Ierusalimschy
dcc070683c
avoid reserving LUA_RIDX_LAST slots in any table used by reference
system. Store free list in a field indexed by a unique name,
instead of using a numerical index.
15 years ago
Roberto Ierusalimschy
2d81cfa4e1
corrected definition of 'lua_register' (there is no LUA_ENVIRONINDEX
anymore)
15 years ago
Roberto Ierusalimschy
0bccf03d7e
slightly better definition for 'changenvalue'
15 years ago
Roberto Ierusalimschy
ad2b5decc8
'lua_assert' can be empty when assertions are off
15 years ago
Roberto Ierusalimschy
32c1764b5d
slightly better definition for 'isgray'
15 years ago
Roberto Ierusalimschy
de97177744
avoid 'else assert' (which may result in an empty else)
15 years ago
Roberto Ierusalimschy
fa2ddb070a
details (to avoid too long strings in assertions)
15 years ago
Roberto Ierusalimschy
0fac33da9e
bug: incremental sweep was not cleaning old bits (as it stopped in the
first old object) + bug: moving udata to 'udgc' list might put old
object in front a new one + some new macros + generational mode may
be in 'pause' state (it just skips 'markroot')
15 years ago
Roberto Ierusalimschy
8e1bdda66a
stupid bug when calling 'luaC_changemode' (in function lua_gc)
15 years ago
Roberto Ierusalimschy
9c1347e647
more tests in 'lua_checkmemory' + more information in function
'gccolor'
15 years ago
Roberto Ierusalimschy
b373a40133
new macro 'isgenerational' + new macro 'isold' + better deffinition
for 'isdead', compatible with the code used by 'sweeplist'
15 years ago
Roberto Ierusalimschy
25951e0ea5
some cleaning in 'sweeplist' (threads do not need to be traversed
if they are going to be collected + use of bit masks to unify
differences in generational and incremental modes)
15 years ago
Roberto Ierusalimschy
a4f20e3c8b
comments
15 years ago
Roberto Ierusalimschy
8c583c61a3
more tests in 'lua_checkmemory'
15 years ago