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 |
Roberto Ierusalimschy
|
a650378822
|
'cpcall' reimplemented as a predefined value in the registry
|
15 years ago |
Roberto Ierusalimschy
|
99182c6872
|
references must start after predefined values in the registry
|
15 years ago |
Roberto Ierusalimschy
|
67cae2854c
|
'lua_mainthread' replaced by new preregistered value LUA_RIDX_MAINTHREAD
|
15 years ago |
Roberto Ierusalimschy
|
0e45ffb8e4
|
first implementation of 'lua_yieldk' (yield with continuation)
|
15 years ago |
Roberto Ierusalimschy
|
071e54ae0b
|
extra facilities to testC: comments + commands print, callk and yield +
Cfunc with extra upvalues
|
15 years ago |
Roberto Ierusalimschy
|
a68494fb32
|
'debug.[gs]etupvalue' should be able to access C upvalues too
|
15 years ago |
Roberto Ierusalimschy
|
4b44793dc5
|
"bug": lua_createtable with sizes changed (array <-> record)
|
15 years ago |
Roberto Ierusalimschy
|
90e2a716c8
|
details + comments
|
15 years ago |
Roberto Ierusalimschy
|
d9fbbe1f23
|
"file:write" returns "file" in case of success
|
15 years ago |
Roberto Ierusalimschy
|
4a714cebd1
|
API checks now have explanatory messages
|
15 years ago |
Roberto Ierusalimschy
|
5b6be84106
|
ensures that argument 'mode' to 'io.open' matches "[rwa]%+?b?", to
avoid passing invalid modes to 'fopen'.
|
15 years ago |
Roberto Ierusalimschy
|
b2bb2f7f59
|
better machinery to test continuations in the C API
|
15 years ago |