Roberto Ierusalimschy
|
e61ee8a036
|
in 'luaD_call', use two functions instead of one with fixed boolean
argument + stack error handling in 'luaD_call' moved to a separated
function
|
9 years ago |
Roberto Ierusalimschy
|
8c1fb91802
|
macro 'incr_top' replaced by function 'luaD_inctop'. (It is not used
in critical time pathes, can save a few bytes without the macro)
|
9 years ago |
Roberto Ierusalimschy
|
c5363a1b58
|
in 'luaD_precall', in vararg functions, complete missing parameters
only after moving them to final place (avoids checking the stack
again)
|
9 years ago |
Roberto Ierusalimschy
|
ffd0d1232d
|
using more "conventional" loops in 'luaD_poscall' (probably a little
more efficient?)
|
9 years ago |
Roberto Ierusalimschy
|
6707ce6349
|
function prepares vararg only if it really uses them (chunks
are always declared vararg but seldom uses them)
|
9 years ago |
Roberto Ierusalimschy
|
ae515a346c
|
comments for luaD_precall/luaD_poscall
|
9 years ago |
Roberto Ierusalimschy
|
3cdf1d676b
|
details (avoid 'case' inside block + avoid using one variable for
two roles)
|
9 years ago |
Roberto Ierusalimschy
|
5bdee4f810
|
small changes to allow 'precall' to spend time preserving 'func'
only when needed (that is, when stack actually changes)
|
9 years ago |
Roberto Ierusalimschy
|
41964648ee
|
long strings are created directly in final position when possible
(instead of using an auxiliar buffer to first create the string
and then allocate the final string and copy result there)
|
9 years ago |
Roberto Ierusalimschy
|
dcad08b76d
|
details (use original type when saving variable's value)
|
10 years ago |
Roberto Ierusalimschy
|
d39bb51faa
|
bug: interpreter cannot pop activation frame before calling return
hook (as it may want to access local variables active by the end
of the function)
|
10 years ago |
Roberto Ierusalimschy
|
484bf14a6b
|
calls to 'luaC_checkGC' in luaD_precall moved near to 'luaD_checkstack'
(which is what can need memory)
|
10 years ago |
Roberto Ierusalimschy
|
a30c66f0fc
|
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
|
10 years ago |
Roberto Ierusalimschy
|
9a38c08011
|
no need to ensure any stack space for panic function + some changes
in 'tryfuncTM' (small simplification)
|
10 years ago |
Roberto Ierusalimschy
|
bfa0898312
|
bug: memory error in panic mode does not push error message on
the stack + stack check in tryfuncTM + comments
|
10 years ago |
Roberto Ierusalimschy
|
e75c0148c3
|
comments (references to "ANSI C" changed to "ISO C", which is the
international name
|
10 years ago |
Roberto Ierusalimschy
|
28fdbcf393
|
added include for 'lprefix.h', for stuff that must be added before
any other header file
|
10 years ago |
Roberto Ierusalimschy
|
bdf566a8a3
|
`name' in comments changed to 'name'
|
10 years ago |
Roberto Ierusalimschy
|
f97c64d7bf
|
macros 'LUA_QL'/'LUA_QL' deprecated
|
10 years ago |
Roberto Ierusalimschy
|
85fc9ecd5f
|
detail ('G(L)' -> 'g')
|
10 years ago |
Roberto Ierusalimschy
|
2a21f6c894
|
'lua_Kcontext' -> 'lua_KContext'
|
10 years ago |
Roberto Ierusalimschy
|
2be88d5084
|
'lua_Ctx' -> 'lua_Kcontext'
|
10 years ago |
Roberto Ierusalimschy
|
1aa4f69b51
|
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
|
10 years ago |
Roberto Ierusalimschy
|
5bbb4a06a6
|
removed unused parameter Ä'L' in macro 'api_check' and company
|
10 years ago |
Roberto Ierusalimschy
|
b9dcf9974d
|
detail (typos in comments)
|
11 years ago |
Roberto Ierusalimschy
|
89b56e7d84
|
more precision between closure types ('LClosure' x 'CClosure')
|
11 years ago |
Roberto Ierusalimschy
|
fa3113ffbf
|
cleaner way to handle bit CIST_OAH (with auxiliar macros)
|
11 years ago |
Roberto Ierusalimschy
|
d94bb6c273
|
janitor work on 'lua_resume' and related code
|
11 years ago |
Roberto Ierusalimschy
|
88a9e51f34
|
bit-field CIST_YIELDED removed (it was never consulted)
|
11 years ago |
Roberto Ierusalimschy
|
542b6cfc02
|
no need for field 'status' in structure 'CallInfo' (after removal
of 'lua_getctx') + field 'old_allowhook' can be packed into a single
bit
|
11 years ago |
Roberto Ierusalimschy
|
6f6fd96e3b
|
new type lua_KFunction + no more 'lua_getctx'
|
11 years ago |
Roberto Ierusalimschy
|
35a6aad0d7
|
added comments
|
11 years ago |
Roberto Ierusalimschy
|
1bd70a8e40
|
new function 'lua_isyieldable' (and 'coroutine.isyieldable')
|
11 years ago |
Roberto Ierusalimschy
|
da4811238a
|
details (typos in comments)
|
11 years ago |
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
11 years ago |
Roberto Ierusalimschy
|
ffa96d988d
|
field 'op' renamed to 'open'
|
11 years ago |
Roberto Ierusalimschy
|
7a8eb83b4a
|
bug: attempting to resume the running coroutine makes it unyieldable
|
11 years ago |
Roberto Ierusalimschy
|
4c6dfc342b
|
CallInfo lists shrinks together with their associated stacks
|
11 years ago |
Roberto Ierusalimschy
|
af35c7f398
|
upvalues collected by reference count
|
11 years ago |
Roberto Ierusalimschy
|
fa3b126a23
|
BUG: stack overflow in vararg functions with many fixed
parameters called with few arguments
|
12 years ago |
Roberto Ierusalimschy
|
b157f3546e
|
BUG: 'pcall' may not restore previous error function when
inside coroutines
|
12 years ago |
Roberto Ierusalimschy
|
2dc91ca5ee
|
checks garbage collector every time it calls a function (as the
stack can grow and so allocates more memory)
|
12 years ago |
Roberto Ierusalimschy
|
b926472312
|
change in error message
|
13 years ago |
Roberto Ierusalimschy
|
cc2a60ecb7
|
bugs in yields inside debug hooks
|
13 years ago |
Roberto Ierusalimschy
|
3cadc37f47
|
no more 'Proto' objects on the stack. Protos are anchored on outer
Protos or on a Closure, which must be created before the Proto.
|
13 years ago |
Roberto Ierusalimschy
|
a94ce68e0a
|
bug: wrong handling of 'nCcalls' in coroutines
|
13 years ago |
Roberto Ierusalimschy
|
3617e04e97
|
'lua_load' has an extra argument 'mode'
|
13 years ago |
Roberto Ierusalimschy
|
217e67cb22
|
new type 'l_noret' for function that do not return
|
13 years ago |
Roberto Ierusalimschy
|
ec431ce5db
|
comment
|
13 years ago |
Roberto Ierusalimschy
|
3dc5475e23
|
'nCcalls' should be local to each thread, as each thread may have its
own C stack (with LuaThreads or something similar)
|
13 years ago |