Roberto Ierusalimschy
|
2b25489b47
|
'notail' -> 'noextrachars' ('notail' may confuse with tail calls)
|
15 years ago |
Roberto Ierusalimschy
|
a6f465f558
|
new mark LUAMOD_API for all luaopen_* functions
|
15 years ago |
Roberto Ierusalimschy
|
9a41506b8f
|
'os.exit' should close state only when second argument is true
|
15 years ago |
Roberto Ierusalimschy
|
9a6d9ea57a
|
GC may get stuck during a parser and avoids proper resizing of the
string table, making its lists grow too much and degrading performance.
|
15 years ago |
Roberto Ierusalimschy
|
062e809e54
|
new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and
definitions of non-static variables
|
15 years ago |
Roberto Ierusalimschy
|
b4c1824824
|
'luaV_arith' must be marked 'LUAI_FUNC' (as all non-static functions)
|
15 years ago |
Roberto Ierusalimschy
|
2e5ef6a9fb
|
new macro 'isdummy'
|
15 years ago |
Roberto Ierusalimschy
|
1dea393058
|
small corrections for 'luaall.c'
|
15 years ago |
Roberto Ierusalimschy
|
45dec34597
|
comments
|
15 years ago |
Roberto Ierusalimschy
|
b40a38a8ac
|
remove declaration of removed function
|
15 years ago |
Roberto Ierusalimschy
|
ac899a6307
|
'debug.joinupvalue' -> 'debug.upvaluejoin'
|
15 years ago |
Roberto Ierusalimschy
|
ce444bff33
|
(huge) simplification of GC management
|
15 years ago |
Roberto Ierusalimschy
|
2d5931ebc8
|
ensure that reader function cannot yield during parsing
|
15 years ago |
Roberto Ierusalimschy
|
35fa276099
|
parser/scanner keep GC running
|
15 years ago |
Roberto Ierusalimschy
|
b51d76ce8d
|
when doing hard memory tests, perform a full GC at every possible step
|
15 years ago |
Roberto Ierusalimschy
|
95020afb63
|
'module' returns the new module (to be used with lexical environments)
|
15 years ago |
Roberto Ierusalimschy
|
c5050b1c41
|
functions 'getfenv' and 'setfenv' are deprecated
|
15 years ago |
Roberto Ierusalimschy
|
b9063a08f5
|
new function 'loadin'
|
15 years ago |
Roberto Ierusalimschy
|
7fe405739c
|
renaming: 'lua_upvaladdr' -> 'lua_upvalueid',
'lua_upvaljoin' -> 'lua_upvaluejoin'
|
15 years ago |
Roberto Ierusalimschy
|
1ce819333d
|
new option 'isrunning' for 'lua_gc' (and 'collectgarbage')
|
15 years ago |
Roberto Ierusalimschy
|
88eb901f81
|
registry and global table may be changed through the API without a
write barrier, so GC should visit them in the atomic phase.
|
15 years ago |
Roberto Ierusalimschy
|
2583bac3d3
|
several small changes to simplify changing TValue if needed
|
15 years ago |
Roberto Ierusalimschy
|
63a3b1a1eb
|
macro 'checkvalref' redefined as function (to avoid too long macros)
|
15 years ago |
Roberto Ierusalimschy
|
fbf866a1a5
|
macro 'gkey' returns a "real" TValue*
|
15 years ago |
Roberto Ierusalimschy
|
49a67c6d3f
|
new macro 'NILCONSTANT' to initialize nil constants
|
15 years ago |
Roberto Ierusalimschy
|
a921d81033
|
avoid using 'ttype' when there is an explicit test + macro 'checkdeadkey'
to avoid repetitions
|
15 years ago |
Roberto Ierusalimschy
|
155dd01163
|
avoid using 'ttype' when there is an explicit test
|
15 years ago |
Roberto Ierusalimschy
|
599789a907
|
better to enclose macros in 'if' bodies with brackets
|
15 years ago |
Roberto Ierusalimschy
|
9756f56354
|
better control over accesses to TValue fields
|
15 years ago |
Roberto Ierusalimschy
|
b7d5f18d71
|
api functions to manipulate upvalues do not need to check their
arguments (the caller must check them before calling)
|
15 years ago |
Roberto Ierusalimschy
|
5598b2bc55
|
new functions to identify and join upvalues
|
15 years ago |
Roberto Ierusalimschy
|
77077b39d5
|
comment explaining OP_VARARG was wrong (and corresponding code was not
very clear)
|
15 years ago |
Roberto Ierusalimschy
|
5bc91c6405
|
no more one environment per thread: all threads share a single global
environment
|
15 years ago |
Roberto Ierusalimschy
|
f5073de0a7
|
'ipairs' goes until length of array instead of stopping at the first nil
|
15 years ago |
Roberto Ierusalimschy
|
f6ed285cf2
|
new hash for doubles based on frexp, to avoid low-level tricks
|
15 years ago |
Roberto Ierusalimschy
|
1448e736f0
|
better documentation for constructor syntax
|
15 years ago |
Roberto Ierusalimschy
|
6e415e9387
|
local function definition does not need to correct debug information
|
15 years ago |
Roberto Ierusalimschy
|
b114c99a60
|
two small bugs: 'debug.getinfo' did not consider negative indices as out
of range + 'debug.[gs]etlocal' crash on tail calls
|
15 years ago |
Roberto Ierusalimschy
|
916587508c
|
parser keeps list of active local variables in a single dynamic array,
therefore saving C stack space
|
15 years ago |
Roberto Ierusalimschy
|
a5382b763c
|
new function lua_copy
|
15 years ago |
Roberto Ierusalimschy
|
ba21aa8b2b
|
'cpcall' must ensure correct environment for called function
|
15 years ago |
Roberto Ierusalimschy
|
d119cf3035
|
a few more instructions to testC (func2udata and getfield)
|
15 years ago |
Roberto Ierusalimschy
|
0ac3d07ea6
|
first implementation of lexical environments
|
15 years ago |
Roberto Ierusalimschy
|
5938212748
|
information about upvalues (where they come from) kept in Proto structure,
instead of sequence of pseudo-opcodes after OP_CLOSURE
|
15 years ago |
Roberto Ierusalimschy
|
1829911d7c
|
some operations may shrink g->totalbytes so g->estimate must be
more flexible
|
15 years ago |
Roberto Ierusalimschy
|
bed2cb725a
|
initialize g->estimate (just in case)
|
15 years ago |
Roberto Ierusalimschy
|
ab75bd23ee
|
handle extended opcodes (with OP_EXTRAARG) when checking metamethod
calls
|
15 years ago |
Roberto Ierusalimschy
|
cee94df6e0
|
function list in luaL_register may be NULL for an empty list
|
15 years ago |
Roberto Ierusalimschy
|
fcc46467fa
|
limit of constants per function changed to 2^26 using extra arguments
to opcodes LOADK, GETGLOBAL, and SETGLOBAL
|
15 years ago |
Roberto Ierusalimschy
|
f8e354e240
|
detail (space between function name and its parameter list)
|
15 years ago |