a716ae1f50
avoids including 'stdio.h' everywhere (because of definitions for luai_writestring/luai_writeline)
Roberto Ierusalimschy2011-11-09 12:47:14 -02:00
475e6c5352
'lua_setglobal/lua_getglobal' implemented as functions to avoid problems with stack indices (e.g., lua_getglobal(L, lua_tostring(L, -1)) )
Roberto Ierusalimschy2011-10-24 14:53:05 -02:00
6819c2a98a
silly bug in 5.2 beta: assignment conflict code did not test to check whether variable was a table element
Roberto Ierusalimschy2011-10-24 12:51:44 -02:00
1350a2bcb5
more macros to try to make NaN trick work with other sizes of IEEE float numbers. (It has not been tested with such different sizes...)
Roberto Ierusalimschy2011-10-17 12:46:13 -02:00
9bbfe9f3fd
avoid the word 'TRICKLE' in macro name (as it has nothing to do with its meaning)
Roberto Ierusalimschy2011-10-07 16:53:05 -03:00
788a0ecd27
'luaC_separateudata' renamed to 'separatetobefnz' and called only from 'lgc.c'
Roberto Ierusalimschy2011-10-03 14:54:25 -03:00
6d86b937e4
'luaC_separateudata' called from 'luaC_freeallobjects' + removed extra 'luaF_close' (already being called by 'close_state')
Roberto Ierusalimschy2011-10-03 14:54:25 -03:00
bc90cf4b83
retraverse all gray lists together to avoid traversing some weak tables twice (as they may change lists when traversed)
Roberto Ierusalimschy2011-10-03 13:22:05 -03:00
95ed6c1127
better(?) scheme for cleaning weak tables; all ressurected objects are removed from weak values before finalization
Roberto Ierusalimschy2011-09-24 18:00:40 -03:00
12ab78aca6
detail in extra trace code: total bytes is given by 'gettotalbytes', not by 'totalbytes' counter.
Roberto Ierusalimschy2011-09-20 16:25:23 -03:00
45c346645c
avoid clearing ephemeron tables that have nothing to be cleaned (no white elements)
Roberto Ierusalimschy2011-09-19 14:03:38 -03:00
500336efd0
small bug in if-goto optimization: block must be closed ('leaveblock') *before* the jump out ('escapelist')
Roberto Ierusalimschy2011-09-14 14:40:26 -03:00
3dc5475e23
'nCcalls' should be local to each thread, as each thread may have its own C stack (with LuaThreads or something similar)
Roberto Ierusalimschy2011-08-23 14:24:34 -03:00
8a008a2057
bug: __newindex metamethod may not work if metatable is its own metatable.
Roberto Ierusalimschy2011-08-17 17:38:51 -03:00
89b59eee73
bug: __newindex metamethod may not work if metatable is its own metatable + luaV_settable does not create entry when there is a metamethod (and therefore entry is useless)
Roberto Ierusalimschy2011-08-17 17:26:47 -03:00
0b65cb74cd
new implementation for 'getobjname': first search for relevant instruction (new function 'findsetreg') and then try to build a meaningful name
Roberto Ierusalimschy2011-08-12 17:01:44 -03:00
92afcf2823
no more 'luaH_setstr (used only once) + 'luaH_setint' receives value to be set.
Roberto Ierusalimschy2011-08-09 17:58:29 -03:00
b5bf7d9ef4
'string.format' checks whether values for integer formats are actually integers
Roberto Ierusalimschy2011-08-09 17:58:29 -03:00
6a5d89b39f
detail (using array instead of several variables to keep track of enabled command-line options)
Roberto Ierusalimschy2011-08-04 15:16:16 -03:00
ff98f17d27
detail: factoring in common code for opening files and checking for errors
Roberto Ierusalimschy2011-07-28 15:41:15 -03:00
59bcd137ae
reducing even more use of C stack by the parser: struct 'FuncState' does not need field 'L' + number of labels/gotos in a chunk may be limited to SHRT_MAX. (Also removed some non-needed 'unsigned's.)
Roberto Ierusalimschy2011-07-27 15:09:01 -03:00
2557107e91
removed unused variable 'found' (in 'findfield') + removed legacy test for 'what' being "tail"
Roberto Ierusalimschy2011-07-25 14:18:49 -03:00