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 |
Roberto Ierusalimschy
|
f180822fa6
|
back to internal table for 'ctype', no more locale manipulation
|
14 years ago |
Roberto Ierusalimschy
|
136f8e148d
|
added cast to void to calls to 'setlocale' (to easy redefining it as
a constant)
|
14 years ago |
Roberto Ierusalimschy
|
cb4950a6d8
|
parser must work with C locale, but external locale must be preserved
|
14 years ago |
Roberto Ierusalimschy
|
3b44821334
|
stricter control (using tag variants) over closure kinds (Lua x C)
|
14 years ago |
Roberto Ierusalimschy
|
3f04a9f2c0
|
code is simpler without 'goto' here
|
14 years ago |
Roberto Ierusalimschy
|
7482e8f914
|
no need of lookahead in Zio
|
14 years ago |
Roberto Ierusalimschy
|
f079749287
|
some reorganization of dynamic data structures used by the parser
|
14 years ago |
Roberto Ierusalimschy
|
7cc0e63d8a
|
first implementation of 'goto'
|
14 years ago |
Roberto Ierusalimschy
|
4590a89b32
|
corrected warnings from different compilers (mostly casts and small
details)
|
14 years ago |
Roberto Ierusalimschy
|
ffff9a49da
|
'nresults' in CallInfo now refers to number of results that the current
function returns (and not what it expects from a call)
|
14 years ago |
Roberto Ierusalimschy
|
545f43065f
|
'luaF_newLclosure' gets prototype of new closure as argument
|
15 years ago |
Roberto Ierusalimschy
|
237f755dca
|
typos in comments
|
15 years ago |
Roberto Ierusalimschy
|
53f9499f7f
|
"light C function" is a better name than "C-function pointer"
|
15 years ago |
Roberto Ierusalimschy
|
e7ffb1b501
|
macro LUA_USE_LONGJMP allows choosing longjmp when compiling Lua as
C++ code
|
15 years ago |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
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
|
064e406f67
|
no more fenvs!
|
15 years ago |
Roberto Ierusalimschy
|
4c54cd3a10
|
when yielding, original 'func' value must be kept and restored so
that 'poscall' puts results in the right slot.
|
15 years ago |
Roberto Ierusalimschy
|
0c7de97d47
|
correct error message when yielding from outside a coroutine
|
15 years ago |
Roberto Ierusalimschy
|
f84b575cfa
|
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
|
15 years ago |
Roberto Ierusalimschy
|
e0f9d1c8f5
|
removed export of function only for coco
|
15 years ago |
Roberto Ierusalimschy
|
de6fc75d63
|
several configuration options that do not change often moved out of
luaconf.h and into more internal files
|
15 years ago |
Roberto Ierusalimschy
|
2bb19ccf08
|
reordering of some functions + cleaner way to code lua_resume/resume +
small bug in lua_resume (in case of calling errors lua_resume should
remove only new arguments from the stack and push error message).
|
15 years ago |
Roberto Ierusalimschy
|
2643da67c6
|
error messages from 'lua_resume' must be generated in protected mode,
to avoid raising memory errors
|
15 years ago |
Roberto Ierusalimschy
|
3e41afcec5
|
extra api checks for number of returns of C functions and for lua_yield
|
15 years ago |
Roberto Ierusalimschy
|
b0f2b288a6
|
new scheme for debug info about tail calls: no more 'fake' stack entries,
but stack entry knows whether it was tail called
|
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
|
5bc91c6405
|
no more one environment per thread: all threads share a single global
environment
|
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
|
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
|
0e45ffb8e4
|
first implementation of 'lua_yieldk' (yield with continuation)
|
15 years ago |
Roberto Ierusalimschy
|
f76f4cb79d
|
new way to control stack overflow, controling only total size of the stack
|
16 years ago |
Roberto Ierusalimschy
|
9423e22aa3
|
no more L->base + ci->base only for Lua functions (C functions may use
'func')
|
16 years ago |
Roberto Ierusalimschy
|
019ebcb85f
|
errors in finalizers are propagated with code LUA_ERRGCMM (ERRor in
__gc MetaMethod)
|
16 years ago |
Roberto Ierusalimschy
|
e091a254df
|
new way to GC stacks: the entire stack must be correct all the times;
the 'dead' part of a stack (after the top) must have only nil's, so
that 'top' may go up without cleaning the stack.
|
16 years ago |
Roberto Ierusalimschy
|
e5249b9fb5
|
'exit' changed to 'abort' in case of panic (+ some extra comments)
'abort' seems more in line with panic ("abnormal termination")
|
16 years ago |
Roberto Ierusalimschy
|
d3037d97ec
|
several small improvements based on 'ci' being fixed now (including
erasing savedpc from lua_State)
|
16 years ago |
Roberto Ierusalimschy
|
4f88418170
|
'CallInfo' stack implemented as double-linked list instead of an array
|
16 years ago |