summaryrefslogtreecommitdiff
path: root/ldo.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 'moveresults' and 'luaD_poscall' moved up in the fileRoberto Ierusalimschy2016-12-131-67/+67
|
* detail (ANSI C does not accept empty arguments to macros)Roberto Ierusalimschy2016-09-201-3/+3
|
* cleaner and more correct code for 'luaD_shrinkstack' (the oldRoberto Ierusalimschy2016-09-081-5/+8
| | | | | test "inuse <= LUAI_MAXSTACK" for stack overflow is not correct, as the real maximum usable size is "LUAI_MAXSTACK - EXTRA_STACK")
* comments + removed unused variableRoberto Ierusalimschy2016-09-051-10/+6
|
* do not eliminate varargs from functions that do not use varargsRoberto Ierusalimschy2016-08-011-4/+4
| | | | (confuses the debug lib and gains very little in performance)
* bug: When a coroutine tries to resume a non-suspended coroutine,Roberto Ierusalimschy2016-07-291-16/+19
| | | | | it coud do some mess (and break C assertions) before detecting the error. Now it tests for those errors before anything else.
* comments (about hooks vs signals)Roberto Ierusalimschy2015-12-161-2/+7
|
* details (typos in comments)Roberto Ierusalimschy2015-11-191-3/+3
|
* trying to optimize a little 'luaD_poscall'Roberto Ierusalimschy2015-11-131-21/+51
|
* in 'luaD_call', use two functions instead of one with fixed booleanRoberto Ierusalimschy2015-11-021-10/+29
| | | | | argument + stack error handling in 'luaD_call' moved to a separated function
* macro 'incr_top' replaced by function 'luaD_inctop'. (It is not usedRoberto Ierusalimschy2015-11-021-1/+14
| | | | in critical time pathes, can save a few bytes without the macro)
* in 'luaD_precall', in vararg functions, complete missing parametersRoberto Ierusalimschy2015-11-021-15/+13
| | | | | only after moving them to final place (avoids checking the stack again)
* using more "conventional" loops in 'luaD_poscall' (probably a littleRoberto Ierusalimschy2015-11-021-7/+13
| | | | more efficient?)
* function prepares vararg only if it really uses them (chunksRoberto Ierusalimschy2015-10-281-2/+2
| | | | are always declared vararg but seldom uses them)
* comments for luaD_precall/luaD_poscallRoberto Ierusalimschy2015-10-281-2/+12
|
* details (avoid 'case' inside block + avoid using one variable forRoberto Ierusalimschy2015-10-281-5/+5
| | | | two roles)
* small changes to allow 'precall' to spend time preserving 'func'Roberto Ierusalimschy2015-10-211-19/+21
| | | | only when needed (that is, when stack actually changes)
* long strings are created directly in final position when possibleRoberto Ierusalimschy2015-09-081-2/+2
| | | | | (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there)
* details (use original type when saving variable's value)Roberto Ierusalimschy2015-06-181-2/+2
|
* bug: interpreter cannot pop activation frame before calling returnRoberto Ierusalimschy2015-05-221-9/+9
| | | | | hook (as it may want to access local variables active by the end of the function)
* calls to 'luaC_checkGC' in luaD_precall moved near to 'luaD_checkstack'Roberto Ierusalimschy2015-03-301-4/+4
| | | | (which is what can need memory)
* macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameterRoberto Ierusalimschy2015-03-061-2/+2
| | | | (some people use it)
* no need to ensure any stack space for panic function + some changesRoberto Ierusalimschy2014-11-111-16/+12
| | | | in 'tryfuncTM' (small simplification)
* bug: memory error in panic mode does not push error message onRoberto Ierusalimschy2014-11-101-2/+14
| | | | the stack + stack check in tryfuncTM + comments
* comments (references to "ANSI C" changed to "ISO C", which is theRoberto Ierusalimschy2014-11-021-2/+2
| | | | international name
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-4/+4
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-2/+2
|
* detail ('G(L)' -> 'g')Roberto Ierusalimschy2014-10-081-6/+7
|
* 'lua_Kcontext' -> 'lua_KContext'Roberto Ierusalimschy2014-10-071-2/+2
|
* 'lua_Ctx' -> 'lua_Kcontext'Roberto Ierusalimschy2014-08-011-2/+2
|
* new type 'lua_Ctx' for continuation-function contexts (to allow typeRoberto Ierusalimschy2014-07-171-2/+3
| | | | to be configurable)
* removed unused parameter Ä'L' in macro 'api_check' and companyRoberto Ierusalimschy2014-07-151-2/+2
|
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-2/+2
|
* more precision between closure types ('LClosure' x 'CClosure')Roberto Ierusalimschy2014-06-191-4/+4
|
* cleaner way to handle bit CIST_OAH (with auxiliar macros)Roberto Ierusalimschy2014-06-121-2/+2
|
* janitor work on 'lua_resume' and related codeRoberto Ierusalimschy2014-06-111-28/+32
|
* bit-field CIST_YIELDED removed (it was never consulted)Roberto Ierusalimschy2014-06-101-4/+3
|
* no need for field 'status' in structure 'CallInfo' (after removalRoberto Ierusalimschy2014-06-101-20/+21
| | | | | of 'lua_getctx') + field 'old_allowhook' can be packed into a single bit
* new type lua_KFunction + no more 'lua_getctx'Roberto Ierusalimschy2014-06-101-4/+4
|
* added commentsRoberto Ierusalimschy2014-06-091-6/+19
|
* new function 'lua_isyieldable' (and 'coroutine.isyieldable')Roberto Ierusalimschy2014-05-081-1/+6
|
* details (typos in comments)Roberto Ierusalimschy2014-03-211-2/+2
|
* more uniformity for defining system-dependent featuresRoberto Ierusalimschy2014-02-261-9/+12
|
* field 'op' renamed to 'open'Roberto Ierusalimschy2014-02-151-2/+2
|
* bug: attempting to resume the running coroutine makes it unyieldableRoberto Ierusalimschy2013-11-081-2/+3
|
* CallInfo lists shrinks together with their associated stacksRoberto Ierusalimschy2013-09-171-2/+6
|
* upvalues collected by reference countRoberto Ierusalimschy2013-08-271-10/+5
|
* BUG: stack overflow in vararg functions with many fixedRoberto Ierusalimschy2013-04-191-4/+11
| | | | parameters called with few arguments
* BUG: 'pcall' may not restore previous error function whenRoberto Ierusalimschy2012-10-011-2/+6
| | | | inside coroutines