aboutsummaryrefslogtreecommitdiff
path: root/ltable.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* better names for macros for tags and types.Roberto Ierusalimschy2018-02-261-6/+6
| | | | | rttype -> rawtt; ttyperaw -> withvariant; ttype -> ttypetag; tnov -> ttype
* first version of empty entries in tablesRoberto Ierusalimschy2018-02-231-30/+33
| | | | (so that, in the future, tables can contain regular nil entries)
* small reorganization of 'luaV_flttointeger'/'luaV_tointeger'Roberto Ierusalimschy2018-02-211-4/+5
|
* more generic way to handle 'gclist'Roberto Ierusalimschy2018-02-191-2/+2
|
* janitor work on castsRoberto Ierusalimschy2018-01-281-5/+5
|
* another try with table resize.Roberto Ierusalimschy2017-12-291-41/+55
| | | | | (Old version was leaving some elements unanchored while allocating new memory)
* more freedom in handling memory-allocation errors (not all allocationsRoberto Ierusalimschy2017-12-081-32/+63
| | | | | automatically raise an error), which allows fixing a bug when resizing a table.
* using explicit tests for allocation overflow whenever possibleRoberto Ierusalimschy2017-12-071-9/+29
|
* detail (typo in comments)Roberto Ierusalimschy2017-11-231-2/+2
|
* new function 'luaV_flttointeger' to convert floats to integers (withoutRoberto Ierusalimschy2017-11-081-3/+3
| | | | | string coercions) + string operands to bitwise operations handled by string metamethods
* new type 'StackValue' for stack elementsRoberto Ierusalimschy2017-06-291-6/+6
| | | | (we may want to put extra info there in the future)
* no more 'DEADKEY'. Table traversals do not need to consider dead keys;Roberto Ierusalimschy2017-06-121-37/+27
| | | | | | if the key is dead, it cannot be given to 'next'. Instead, we now use a 'table' tag without the collectable bit, which makes it a unique tag good enough to reserve space.
* in hash nodes, keys are stored in separate pieces to avoid wastingRoberto Ierusalimschy2017-06-091-46/+85
| | | | space with alignments
* BUG: in 'computesizes', 'twotoi' overflows when a sequence hasRoberto Ierusalimschy2017-05-191-3/+6
| | | | more than 2^30 elements.
* better implementation for 'hash_search', without using 'size_t'Roberto Ierusalimschy2017-05-191-28/+36
| | | | (simpler to implement and to explain)
* reimplementation of 'luaH_getn', trying to handle numeric limitsRoberto Ierusalimschy2017-05-161-33/+44
| | | | properly.
* detail ('1' -> '1u' in unsigned operation)Roberto Ierusalimschy2017-05-091-2/+2
|
* using 'lastfree == NULL' to signal that table is using the dummyRoberto Ierusalimschy2016-11-071-23/+23
| | | | node for its hash part + new macro 'allocsizenode'
* details (typos in comments)Roberto Ierusalimschy2015-11-191-2/+2
|
* no need for a special case to get long strings (not that common)Roberto Ierusalimschy2015-11-031-22/+16
|
* added comment and assert about dead keysRoberto Ierusalimschy2015-11-031-2/+3
|
* bug: despite its name, 'luaH_getstr' did not work for strings inRoberto Ierusalimschy2015-11-031-16/+35
| | | | general, but only for short strings
* avoid possibility of subtle arith. overflowRoberto Ierusalimschy2015-07-041-2/+2
|
* detailRoberto Ierusalimschy2015-07-011-2/+2
|
* comment (FALLTHROUGH position)Roberto Ierusalimschy2015-06-091-3/+3
|
* detail (removed useless '#include')Roberto Ierusalimschy2015-05-201-2/+1
|
* detail (comment)Roberto Ierusalimschy2015-04-021-2/+2
|
* janitor work (comments, variable names, some other details)Roberto Ierusalimschy2015-03-301-25/+31
|
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-301-2/+2
|
* 'point2int' -> 'point2uint' (to reflect its actual result type)Roberto Ierusalimschy2015-03-031-2/+2
|
* 'numisinteger' (for table keys) replaced by 'luaV_tointeger' (oldRoberto Ierusalimschy2015-02-201-17/+5
| | | | 'tointeger_aux'), which can do the same job.
* make 'hashfloat' configurableRoberto Ierusalimschy2015-02-201-8/+8
|
* detail (file does not need 'string.h')Roberto Ierusalimschy2015-02-161-2/+1
|
* some changes in 'hashfloat' to avoid undefined (in ISO C) numericalRoberto Ierusalimschy2015-02-131-8/+21
| | | | conversions
* size of short strings stored in a single byte, to reduce the sizeRoberto Ierusalimschy2015-01-161-2/+2
| | | | of struct 'TString'
* 'setkey' -> 'setnodekey' (to avoid conflicts with POSIX)v5.3.0Roberto Ierusalimschy2015-01-051-2/+2
|
* 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-18/+18
|
* 'lua_numtointeger' -> 'lua_numbertointeger'Roberto Ierusalimschy2014-10-241-2/+2
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-2/+2
|
* size for array part of a table ('sizearray') changed from 'int' toRoberto Ierusalimschy2014-09-041-59/+75
| | | | 'unsigned int', which allows twice as many elements in the array part
* details in commentsRoberto Ierusalimschy2014-08-011-2/+2
|
* simpler definition for 'setobj' (trust the compiler for the assignment)Roberto Ierusalimschy2014-07-291-4/+5
|
* type 'TString' refers directly to the structure inside the unionRoberto Ierusalimschy2014-07-181-11/+11
| | | | (union used only for size purposes)
* 'IntPoint' -> 'point2int' + ensure that casted value fits inRoberto Ierusalimschy2014-06-261-2/+2
| | | | destination type
* use appropriate macros to convert GCObject to specific typesRoberto Ierusalimschy2014-06-181-2/+3
|
* function 'luaV_numtointeger' changed to a global macroRoberto Ierusalimschy2014-05-261-8/+13
| | | | 'lua_numtointeger' (tricky, small, and useful in several places)
* cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable fromRoberto Ierusalimschy2014-04-151-2/+2
| | | | outside (mostly for testing)
* macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, thatRoberto Ierusalimschy2014-04-151-2/+2
| | | | should be used only between lua_Integer and lua_Unsigned
* maximum size of array part of a table now is restricted not only byRoberto Ierusalimschy2014-04-131-8/+8
| | | | the size of an 'int', but also by the size of a 'lua_Integer'