aboutsummaryrefslogtreecommitdiff
path: root/ltable.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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'
* some details to avoid warningsRoberto Ierusalimschy2014-04-011-5/+5
|
* no more 'L' in macros "luai_num*" (several places that use those macrosRoberto Ierusalimschy2014-01-271-2/+2
| | | | cannot throw errors anyway...)
* 'luaC_newobj' does not handle special cases; only special caseRoberto Ierusalimschy2013-09-111-2/+2
| | | | now is threads, which do not use 'luaC_newobj' anymore.
* details (a few casts moved from macro invocation to macro definition)Roberto Ierusalimschy2013-08-291-2/+2
|
* tables and userdata all go to local list, tooRoberto Ierusalimschy2013-08-281-2/+2
|
* LOCALBLACK changed to LOCALMARK and used also to control whether objectRoberto Ierusalimschy2013-08-271-2/+2
| | | | | is in 'localgc' list + luaC_newobj by default puts object in 'localgc' list
* 'next' field for tables changed from pointer to integer (for betterRoberto Ierusalimschy2013-08-181-24/+44
| | | | alignment on 64-bit machines)
* new macro 'l_floor' (allows 'floorf' even when other math operationsRoberto Ierusalimschy2013-06-201-2/+2
| | | | do not have an 'f' variant)
* 'luai_hashnum' "inlined" into 'hashfloat'Roberto Ierusalimschy2013-05-291-5/+8
|
* "legal" way to convert a float to an integer in CRoberto Ierusalimschy2013-05-271-3/+9
|