summaryrefslogtreecommitdiff
path: root/lapi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* call 'checkGC' *after* creating new objects (this is how 'execute'Roberto Ierusalimschy2016-02-291-10/+10
| | | | | | does it) (It increases the changes that 'allgc' start with a non-white object, which helps 'entersweep')
* 'luaV_fastget' only treats the real fast case (table with a non-nilRoberto Ierusalimschy2016-01-051-15/+15
| | | | value at given key, so that it does not need to check metamethods)
* in 'luaD_call', use two functions instead of one with fixed booleanRoberto Ierusalimschy2015-11-021-7/+7
| | | | argument
* allow NULL string when length is zero in 'lua_pushlstring' andRoberto Ierusalimschy2015-10-061-5/+5
| | | | 'luaL_addlstring'
* 'setobj2t' incorporated into 'luaV_fastset' + 'invalidateTMcache'Roberto Ierusalimschy2015-09-091-26/+21
| | | | | | is not needed in the fast track (as it does not create new entries) + small bug in 'auxsetstr' (calling barrier with wrong object) + using 'setobj2t' without side effects in its arguments
* added assert for NULL pointer in 'lua_pushlstring'Roberto Ierusalimschy2015-08-251-1/+6
|
* 'invalidateTMcache' not needed in all 'settable' usesRoberto Ierusalimschy2015-08-031-1/+2
|
* fast track for 'settable'Roberto Ierusalimschy2015-08-031-21/+31
|
* implementation of fast track for gettable operationsRoberto Ierusalimschy2015-07-201-18/+30
|
* details (use original type when saving variable's value)Roberto Ierusalimschy2015-06-181-2/+2
|
* avoid using API functions inside the coreRoberto Ierusalimschy2015-04-061-12/+10
|
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-281-2/+2
|
* macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameterRoberto Ierusalimschy2015-03-061-38/+38
| | | | (some people use it)
* added API checks to some unprotected 'top' incrementsRoberto Ierusalimschy2015-02-111-7/+12
|
* size of short strings stored in a single byte, to reduce the sizeRoberto Ierusalimschy2015-01-161-4/+6
| | | | of struct 'TString'
* removed useless initializationsRoberto Ierusalimschy2014-12-261-2/+2
|
* details (match parameter names with lua.h and manual)Roberto Ierusalimschy2014-11-121-12/+12
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* 'lua_load' sets _ENV for any chunk with upvalues (not just thoseRoberto Ierusalimschy2014-10-311-2/+2
| | | | with exactly one upvalue)
* removed useless 'include math.h'Roberto Ierusalimschy2014-10-281-2/+1
|
* `name' in comments changed to 'name'Roberto Ierusalimschy2014-10-251-5/+5
|
* 'lua_stringtonum' -> 'lua_stringtonumber'Roberto Ierusalimschy2014-10-171-2/+2
|
* 'lua_strtonum' -> 'lua_stringtonum'Roberto Ierusalimschy2014-10-151-2/+2
|
* 'lua_Kcontext' -> 'lua_KContext'Roberto Ierusalimschy2014-10-071-3/+3
|
* detailRoberto Ierusalimschy2014-08-271-5/+3
|
* new functions 'lua_geti/lua_seti' (non raw)Roberto Ierusalimschy2014-08-211-1/+25
|
* 'lua_Ctx' -> 'lua_Kcontext'Roberto Ierusalimschy2014-08-011-4/+4
|
* new macro 'cvt2str' to better control whether numbers are convertibleRoberto Ierusalimschy2014-07-301-6/+6
| | | | to strings
* 'lua_replace' implemented as a macro using 'lua_copy'Roberto Ierusalimschy2014-07-221-21/+10
|
* more precise type for argument to 'aux_upvalue'Roberto Ierusalimschy2014-07-211-4/+4
|
* put the restriction that 'luaC_barrierback' works only on tablesRoberto Ierusalimschy2014-07-191-17/+23
| | | | in its prototype
* type 'Udata' refers directly to structure inside the union (unionRoberto Ierusalimschy2014-07-181-5/+5
| | | | used only for aligning purposes now)
* added check for conversion 'obj2gco' (and corrections for smallRoberto Ierusalimschy2014-07-181-3/+3
| | | | problems detected by this check)
* new type 'lua_Ctx' for continuation-function contexts (to allow typeRoberto Ierusalimschy2014-07-171-3/+3
| | | | to be configurable)
* removed unused parameter Ä'L' in macro 'api_check' and companyRoberto Ierusalimschy2014-07-151-39/+39
|
* added api check in 'lua_typename' (tag is valid)Roberto Ierusalimschy2014-07-151-2/+3
|
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-2/+2
|
* detail (comment)Roberto Ierusalimschy2014-06-261-2/+2
|
* unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)Roberto Ierusalimschy2014-06-261-48/+1
| | | | deprecated
* LUA_MAXUNSIGNED was only used to define 2.0^intnumbits (and thatRoberto Ierusalimschy2014-06-241-2/+7
| | | | | | definition was not strictly portable), so it was removed and replaced by a more correct and direct definition for 2.0^intnumbits (only where it was needed)
* 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-5/+2
|
* must also reset CIST_OAH if necessary (CallInfo is not a fresh one)Roberto Ierusalimschy2014-06-101-5/+6
|
* no need for field 'status' in structure 'CallInfo' (after removalRoberto Ierusalimschy2014-06-101-2/+3
| | | | | 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-12/+3
|
* removed macro 'luai_checknum' (as NaN trick is not doable now)Roberto Ierusalimschy2014-05-151-3/+1
|
* avoid non-conformant pointer arithmetic in api check for 'lua_rotate'Roberto Ierusalimschy2014-05-151-3/+3
|
* function 'reverse' uses appropriate variants of 'setobj' for betterRoberto Ierusalimschy2014-05-141-3/+3
| | | | documentation
* comments added to 'lua_rotate'Roberto Ierusalimschy2014-05-141-7/+11
|
* new API function 'lua_rotate'Roberto Ierusalimschy2014-05-131-15/+20
|