aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* details (merging declarations with initialization)Roberto Ierusalimschy2015-11-231-7/+5
|
* randomness in pivot for 'table.sort' done by a macro (easier to change)Roberto Ierusalimschy2015-11-201-11/+17
|
* in 'table.sort': tighter checks for invalid order function +Roberto Ierusalimschy2015-11-121-5/+22
| | | | | "random" pivot for larger intervals (to avoid attacks with bad data)
* janitor work on 'table.sort': added comments, partition code movedRoberto Ierusalimschy2015-11-061-54/+76
| | | | | to a separated function, code conventions updated, etc. No changes at all in the logic/algorithm
* 'table.move' tries to copy elements in increasing orderRoberto Ierusalimschy2015-09-171-4/+10
| | | | whenever possible
* 'tablib' does not try to use raw operations when possible: fastRoberto Ierusalimschy2015-09-091-87/+78
| | | | | track should make standard operations fast enough to forgo raw accesses
* avoid subtle possibility of arithmetic overflowRoberto Ierusalimschy2015-07-041-5/+5
|
* better check for overflows in 'table.move' (removes restriction thatRoberto Ierusalimschy2015-01-131-3/+5
| | | | initial position should be positive)
* 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-3/+3
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-4/+4
|
* 'luaL_getmetafield' returns type of metafield (instead of a boolean)Roberto Ierusalimschy2014-09-221-3/+3
|
* new functions 'lua_geti/lua_seti' (non raw)Roberto Ierusalimschy2014-08-211-24/+5
|
* 'table.copy' -> 'table.move' + optional parameter moved to the end +Roberto Ierusalimschy2014-08-211-21/+22
| | | | several functions operate on "virtual" tables too
* added some casts between integral types (to avoid warnings)Roberto Ierusalimschy2014-07-291-5/+5
|
* first implementation for 'table.copy'Roberto Ierusalimschy2014-07-251-1/+39
|
* Table library now respects '__index'/'__newindex' metamethodsRoberto Ierusalimschy2014-07-161-43/+96
|
* more direct implementation of 'table.pack'Roberto Ierusalimschy2014-05-161-10/+6
|
* detail (avoid "casting down" in case lua_Integer is smaller than int)Roberto Ierusalimschy2014-04-121-2/+2
|
* 'int' -> 'lua_Integer' in several functionsRoberto Ierusalimschy2014-04-041-11/+11
|
* bug: compiler could optimize away overflow check (+ changing indicesRoberto Ierusalimschy2014-04-011-9/+12
| | | | from 'int' to 'lua_Integer')
* details (typos in comments)Roberto Ierusalimschy2014-03-211-2/+2
|
* no need to handle 0 as a special case in 'table.remove'Roberto Ierusalimschy2013-03-071-3/+1
|
* better error checking for 'table.insert' and 'table.remove'Roberto Ierusalimschy2013-02-061-10/+12
|
* 'table.pack' does not return 'n' (may be confusing whenRoberto Ierusalimschy2011-11-281-3/+2
| | | | using table.pack as last argument in a call)
* lint (wrong identation)Roberto Ierusalimschy2011-09-301-2/+2
|
* removed and deprecated functions really removed from the code baseRoberto Ierusalimschy2011-07-051-11/+3
|
* 'table.pack' also returns 'n' + 'deprecated' changed to 'removed'Roberto Ierusalimschy2011-07-021-15/+17
|
* table library respects '#' metamethodsRoberto Ierusalimschy2010-12-171-4/+4
|
* removed deprecated functions getn-foreach-foreachiv5.2-alphaRoberto Ierusalimschy2010-11-231-53/+7
|
* corrected warnings from different compilers (mostly casts and smallRoberto Ierusalimschy2010-10-251-2/+3
| | | | details)
* new module policy: C modules do not create globals and do not registerRoberto Ierusalimschy2010-07-021-2/+2
| | | | | | themselves with 'require' (let 'require' do its work); new auxiliary functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref. Old luaL_register will be deprecated.
* better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEXRoberto Ierusalimschy2010-03-131-10/+10
|
* table.pack was locking last result, avoiding its collectionRoberto Ierusalimschy2010-01-131-1/+3
|
* 'unpack' moved to table library (and therefore "renamed" toRoberto Ierusalimschy2009-12-281-2/+24
| | | | 'table.unpack'.
* code for error message for 'setn' removedRoberto Ierusalimschy2009-12-181-7/+1
|
* 'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'Roberto Ierusalimschy2009-12-171-3/+3
|
* new 'table.pack' functionRoberto Ierusalimschy2009-12-071-1/+25
|
* 'table.maxn' deprecatedRoberto Ierusalimschy2009-11-261-2/+7
|
* new mark LUAMOD_API for all luaopen_* functionsRoberto Ierusalimschy2009-11-241-2/+2
|
* 'lua_lessthan' replaced by more generic 'lua_compare'Roberto Ierusalimschy2009-06-171-2/+2
|
* 'context' added to suspendable callsRoberto Ierusalimschy2009-03-231-5/+7
|
* yielding across lua_call (first version)Roberto Ierusalimschy2009-03-101-11/+19
|
* 'table.sort' detects invalid order function before calling itRoberto Ierusalimschy2008-04-071-3/+3
| | | | for nil elements
* 'table.concat' may get confused with too large limitsRoberto Ierusalimschy2008-02-141-9/+15
|
* BUG: table.remove removes last element of a table when givenRoberto Ierusalimschy2007-11-261-2/+3
| | | | an out-of-bound index
* better error message for 'concat'Roberto Ierusalimschy2007-09-121-2/+4
|
* detailRoberto Ierusalimschy2007-06-211-2/+2
|
* clearing some old compatibility codeRoberto Ierusalimschy2007-06-211-13/+4
|
* more robust implementation for table.insertRoberto Ierusalimschy2005-10-231-11/+18
|