Roberto Ierusalimschy
|
575befc394
|
comparsion tag methods follow the same rule as other binary TMs
|
15 years ago |
Roberto Ierusalimschy
|
e7ffb1b501
|
macro LUA_USE_LONGJMP allows choosing longjmp when compiling Lua as
C++ code
|
15 years ago |
Roberto Ierusalimschy
|
c066ac10a9
|
better line numbers for function calls and unary/binary operators +
null statement + no more "ambiguous syntax" restriction
|
15 years ago |
Roberto Ierusalimschy
|
1e6940f291
|
'gcstate' now also runs collector until given state + small changes
in 'testC' to test 'lua_topointer' and 'lua_tocfunction'
|
15 years ago |
Roberto Ierusalimschy
|
d8d81ba891
|
new escape sequence '\*' + several comments + moving options from
switch default into cases (as now locale is fixed)
|
15 years ago |
Roberto Ierusalimschy
|
cf22133b69
|
no need to avoid calling ctype functions as now they are implemented
by us (no inefficiencies due to accessing locale information)
|
15 years ago |
Roberto Ierusalimschy
|
b7be05ad27
|
invalid instructions "cannot" happen
|
15 years ago |
Roberto Ierusalimschy
|
afdb19ac82
|
no more 'ccall' nor 'cpcall' functions. (With light C functions they
are obsolete.)
|
15 years ago |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
15 years ago |
Roberto Ierusalimschy
|
fc6203ee43
|
BUG: 'string.format' may get buffer when there are missing arguments
|
15 years ago |
Roberto Ierusalimschy
|
b2dd246b7a
|
better control in 'totalmem' over choosing counters
|
15 years ago |
Roberto Ierusalimschy
|
d20ff60615
|
new macro LUA_NUMTAGS
|
15 years ago |
Roberto Ierusalimschy
|
d41b467320
|
check memory allows strings to live in the main GC list (it should
work ok).
|
15 years ago |
Roberto Ierusalimschy
|
4541243355
|
patterns now accept '\0' as a regular character
|
15 years ago |
Roberto Ierusalimschy
|
9100f7479a
|
new implementation for Generic Buffer manipulation (using userdata as
temporary buffer space)
|
15 years ago |
Roberto Ierusalimschy
|
055104f5b6
|
keep memory-error message in the global state, so that its use
does not depend on Lua internalizing strings to avoid a string
creation on memory errors
|
15 years ago |
Roberto Ierusalimschy
|
28aa733c15
|
macro 'eqstr' was being used to compare non-string entities
|
15 years ago |
Roberto Ierusalimschy
|
6abde1b05a
|
no need to keep "_ENV" name in global state (can be kept in lex state)
|
15 years ago |
Roberto Ierusalimschy
|
d394d5536a
|
new macro 'eqstr'
|
15 years ago |
Roberto Ierusalimschy
|
a2f98314a3
|
'lua_pushstring' now uses 'luaS_new'
|
15 years ago |
Roberto Ierusalimschy
|
a09c8d7beb
|
cannot sweep main thread in sweepstring phase
|
15 years ago |
Roberto Ierusalimschy
|
f80ff7a336
|
'luaS_new' changed from macro to function
|
15 years ago |
Roberto Ierusalimschy
|
a08fc34ee4
|
avoid using 'luaS_new' when can use 'luaS_newlstr'
|
15 years ago |
Roberto Ierusalimschy
|
d00d2eaf51
|
small changes in 'luaO_pushvfstring'
|
15 years ago |
Roberto Ierusalimschy
|
11126422d9
|
option to return GC to normal (incremental, non generational) mode
|
15 years ago |
Roberto Ierusalimschy
|
e54668b696
|
added proper code to trace garbage collection
|
15 years ago |
Roberto Ierusalimschy
|
9eb832de54
|
work related to hooks moved from 'luaV_execute' to 'traceexec'
|
15 years ago |
Roberto Ierusalimschy
|
82a1f5d354
|
comments
|
15 years ago |
Roberto Ierusalimschy
|
a8d3aa14fd
|
global table now is only kept in the registry
|
15 years ago |
Roberto Ierusalimschy
|
064e406f67
|
no more fenvs!
|
15 years ago |
Roberto Ierusalimschy
|
5c87f61e6b
|
major collections in generational mode
|
15 years ago |
Roberto Ierusalimschy
|
3aa9598177
|
'mainthread' is not inserted in the 'allgc' list anymore, but swept
separately.
|
15 years ago |
Roberto Ierusalimschy
|
64d39ed1b6
|
generational mode no longer sweep old objects
|
15 years ago |
Roberto Ierusalimschy
|
4433dbb5f5
|
userdata with finalizers are kept in a separated list ('udgc'), instead
of at the end of 'rootgc' (which was renamed to 'allgc', as it is not
"root" in the usual meaning for collectors)
|
15 years ago |
Roberto Ierusalimschy
|
5cb128ea54
|
BUG: emergency collector might resize 'strt' (string table) when
creating a new string
+ atomic and markroot steps has some cost
+ full collection must leave collector in proper state when mode
is generational
|
15 years ago |
Roberto Ierusalimschy
|
74123e9686
|
draft version of a generational mode for garbage collection. (Not well
tested; no major collections; ...)
|
15 years ago |
Roberto Ierusalimschy
|
9c196bebad
|
detail (wrong comment about LUAI_GCPAUSE)
|
15 years ago |
Roberto Ierusalimschy
|
28b2566c97
|
'lua_assert' not visible from libraries
|
15 years ago |
Roberto Ierusalimschy
|
caf74dd731
|
'cpcall' renamed to 'ccall' as it does not do a protected call
|
15 years ago |
Roberto Ierusalimschy
|
62840c5fad
|
'ipairs' is deprecated
|
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
|
22ef84b6c8
|
'_ENV' name permanently stored in global state for easier access
|
15 years ago |
Roberto Ierusalimschy
|
63a2b62468
|
must include 'string.h' because a macro uses 'strlen'
|
15 years ago |
Roberto Ierusalimschy
|
489253d753
|
better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEX
|
15 years ago |
Roberto Ierusalimschy
|
25c557ec63
|
first version of _ENV; no more global variables
|
15 years ago |
Roberto Ierusalimschy
|
f292760f12
|
small optimization in luaL_addlstring (avoid adding chars one by one)
(suggested by Chuck Coffing)
|
15 years ago |
Roberto Ierusalimschy
|
1124cb1247
|
first step towards _ENV: all chunks have an puvalues _ENV with the
global table
|
15 years ago |
Roberto Ierusalimschy
|
c295147874
|
when finding a 'name' for a function, handle the case when the function
is a for iterator
|
15 years ago |
Roberto Ierusalimschy
|
e560ac4862
|
when searching for a variable name, look existing upvalues before
goingg to upper levels
|
15 years ago |