summaryrefslogtreecommitdiff
path: root/ltable.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-8/+27
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.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
|
* new function 'tointeger' + 'luaV_arith' replaced by 'luaT_trybinTM'Roberto Ierusalimschy2013-04-291-14/+3
|
* "integer" keys in tables are now lua_Integer, not 'int'.Roberto Ierusalimschy2013-04-261-15/+19
|
* first steps in the support of integers: basic representation + table ↵Roberto Ierusalimschy2013-04-151-24/+39
| | | | indexing + basic API ops (tointeger/pushinteger) + equality + a few extra stuff
* detailRoberto Ierusalimschy2012-09-111-3/+3
|
* spaces -> tabs in #definesRoberto Ierusalimschy2012-05-231-3/+3
|
* random seed used in the hash of all strings to avoid intentionalRoberto Ierusalimschy2012-02-011-2/+2
| | | | collisions