Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Parameters for 'lua_createtable' back to int | Roberto Ierusalimschy | 2025-01-21 | 1 | -4/+4 |
| | | | | Tables don't accept sizes larger than int. | ||||
* | Details | Roberto Ierusalimschy | 2024-09-12 | 1 | -3/+3 |
| | | | | Fixed comments in sort partition. | ||||
* | '-Wconversion' extended to all options of Lua numbers | Roberto Ierusalimschy | 2024-07-27 | 1 | -12/+20 |
| | |||||
* | Added gcc option '-Wconversion' | Roberto Ierusalimschy | 2024-07-27 | 1 | -2/+2 |
| | | | | | No warnings for standard numerical types. Still pending alternative numerical types. | ||||
* | llimits.h being used by all Lua code | Roberto Ierusalimschy | 2024-06-20 | 1 | -0/+1 |
| | | | | | | The definitions in llimits.h are useful not only for the core. That header only defines types and '#define's, so libs and core still do not share any real code/data. | ||||
* | Some 'unsigned int' changed to 'unsigned' | Roberto Ierusalimschy | 2024-03-22 | 1 | -2/+1 |
| | | | | | 'unsigned int' is too long sometimes. (We already write 'long' instead of 'long int'...) | ||||
* | Details | Roberto Ierusalimschy | 2024-03-13 | 1 | -1/+1 |
| | | | | | | - 'unsigned int' -> 'unsigned' - Some explicit casts to avoid warnings - Test avoids printing the value of 'fail' (which may not be nil) | ||||
* | Better handling of size limit when resizing a table | Roberto Ierusalimschy | 2024-02-07 | 1 | -2/+4 |
| | | | | | | | | Avoid silent conversions from int to unsigned int when calling 'luaH_resize'; avoid silent conversions from lua_Integer to int in 'table.create'; MAXASIZE corrected for the new implementation of arrays; 'luaH_resize' checks explicitly whether new size respects MAXASIZE. (Even constructors were bypassing that check.) | ||||
* | New function 'table.create' | Roberto Ierusalimschy | 2024-01-18 | 1 | -0/+9 |
| | | | | | Creates a table preallocating memory. (It just exports to Lua the API function 'lua_createtable'.) | ||||
* | Clock component removed from 'luaL_makeseed' | Roberto Ierusalimschy | 2023-03-23 | 1 | -1/+1 |
| | | | | 'clock' can be quite slow on some machines. | ||||
* | New function 'luaL_makeseed' | Roberto Ierusalimschy | 2023-03-20 | 1 | -26/+3 |
| | | | | | | This function unifies code from 'lua_newstate', 'math.randomseed', and 'table.sort' that tries to create a value with a minimum level of randomness. | ||||
* | Corrected error message in 'table.remove' | Roberto Ierusalimschy | 2022-09-07 | 1 | -1/+1 |
| | |||||
* | Avoid overflows when incrementing parameters in C | Roberto Ierusalimschy | 2021-09-22 | 1 | -1/+2 |
| | | | | | | Any C function can receive maxinteger as an integer argument, and therefore cannot increment it without some care (e.g., doing unsigned arithmetic as the core does). | ||||
* | Details | Roberto Ierusalimschy | 2021-03-29 | 1 | -1/+1 |
| | | | | Comments and small improvements in the manual. | ||||
* | Broadening the use of branch hints | Roberto Ierusalimschy | 2021-02-24 | 1 | -4/+5 |
| | | | | | | More uses of macros 'likely'/'unlikely' (renamed to 'l_likely'/'l_unlikely'), both in range (extended to the libraries) and in scope (extended to hooks, stack growth). | ||||
* | Bug: 'string.concat' error message uses wrong format | Roberto Ierusalimschy | 2021-02-15 | 1 | -1/+1 |
| | |||||
* | Details (typos in comments) | Roberto Ierusalimschy | 2019-07-05 | 1 | -1/+1 |
| | |||||
* | Details | Roberto Ierusalimschy | 2019-06-03 | 1 | -1/+1 |
| | | | | | Several small changes from feedback on 5.4 alhpa rc1 (warnings, typos in the manual, and the like) | ||||
* | Details | Roberto Ierusalimschy | 2019-05-13 | 1 | -1/+1 |
| | | | | | | - 'luaL_setfuncs' avoids creating closures for placeholders. - Fixed some warnings about unused values in comma expressions. - Comments. | ||||
* | Small optimizations in range checks | Roberto Ierusalimschy | 2019-03-27 | 1 | -2/+6 |
| | | | | | | | | Checks of the form '1 <= x && x <= M' were rewritten in the form '(unsigned)x - 1 < (unsigned)M', which is usually more efficient. (Other similar checks have similar translations.) Although some compilers do these optimizations, that does not happen for all compilers or all cases. | ||||
* | Removed extra information from RCS keyword strings | Roberto Ierusalimschy | 2018-08-23 | 1 | -1/+1 |
| | | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept. | ||||
* | no more nil-in-table | Roberto Ierusalimschy | 2018-04-04 | 1 | -3/+3 |
| | |||||
* | avoid functions named 'pack' | Roberto Ierusalimschy | 2018-03-16 | 1 | -5/+5 |
| | | | | (name too common, may collide when doing 'onelua.c') | ||||
* | removed compatibility code with older versions | Roberto Ierusalimschy | 2018-02-27 | 1 | -27/+1 |
| | |||||
* | first (parcial) implementation of 'keyin'/'removekey' | Roberto Ierusalimschy | 2018-02-25 | 1 | -3/+3 |
| | | | | (still no metamethods, no raw verssions) | ||||
* | in 'table.move', destination table can be source table even if | Roberto Ierusalimschy | 2016-02-25 | 1 | -3/+3 |
| | | | | given as an explicit extra argument | ||||
* | details (removed silly use of 'luaL_opt' + better error messages | Roberto Ierusalimschy | 2016-02-08 | 1 | -3/+3 |
| | | | | in cases of "table expected") | ||||
* | in 'table.sort': 'typedef' for type of indices + removed stack check | Roberto Ierusalimschy | 2015-12-14 | 1 | -16/+17 |
| | | | | (recursion is in the C stack, not in the Lua stack!) | ||||
* | randomness in 'table.sort' used only when needed (big imbalance in | Roberto Ierusalimschy | 2015-11-25 | 1 | -38/+73 |
| | | | | partition result) + small refactoring | ||||
* | handling 'clock_t' and 'time_t' correctly in ISO C point of view | Roberto Ierusalimschy | 2015-11-24 | 1 | -5/+14 |
| | |||||
* | using unsigned int (instead of int) in 'table.sort' to avoid overflows | Roberto Ierusalimschy | 2015-11-23 | 1 | -17/+23 |
| | | | | (when computing the pivot and in original table size) | ||||
* | details (merging declarations with initialization) | Roberto Ierusalimschy | 2015-11-23 | 1 | -7/+5 |
| | |||||
* | randomness in pivot for 'table.sort' done by a macro (easier to change) | Roberto Ierusalimschy | 2015-11-20 | 1 | -11/+17 |
| | |||||
* | in 'table.sort': tighter checks for invalid order function + | Roberto Ierusalimschy | 2015-11-12 | 1 | -5/+22 |
| | | | | | "random" pivot for larger intervals (to avoid attacks with bad data) | ||||
* | janitor work on 'table.sort': added comments, partition code moved | Roberto Ierusalimschy | 2015-11-06 | 1 | -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 order | Roberto Ierusalimschy | 2015-09-17 | 1 | -4/+10 |
| | | | | whenever possible | ||||
* | 'tablib' does not try to use raw operations when possible: fast | Roberto Ierusalimschy | 2015-09-09 | 1 | -87/+78 |
| | | | | | track should make standard operations fast enough to forgo raw accesses | ||||
* | avoid subtle possibility of arithmetic overflow | Roberto Ierusalimschy | 2015-07-04 | 1 | -5/+5 |
| | |||||
* | better check for overflows in 'table.move' (removes restriction that | Roberto Ierusalimschy | 2015-01-13 | 1 | -3/+5 |
| | | | | initial position should be positive) | ||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+6 |
| | | | | any other header file | ||||
* | `name' in comments changed to 'name' | Roberto Ierusalimschy | 2014-10-25 | 1 | -3/+3 |
| | |||||
* | macros 'LUA_QL'/'LUA_QL' deprecated | Roberto Ierusalimschy | 2014-10-17 | 1 | -4/+4 |
| | |||||
* | 'luaL_getmetafield' returns type of metafield (instead of a boolean) | Roberto Ierusalimschy | 2014-09-22 | 1 | -3/+3 |
| | |||||
* | new functions 'lua_geti/lua_seti' (non raw) | Roberto Ierusalimschy | 2014-08-21 | 1 | -24/+5 |
| | |||||
* | 'table.copy' -> 'table.move' + optional parameter moved to the end + | Roberto Ierusalimschy | 2014-08-21 | 1 | -21/+22 |
| | | | | several functions operate on "virtual" tables too | ||||
* | added some casts between integral types (to avoid warnings) | Roberto Ierusalimschy | 2014-07-29 | 1 | -5/+5 |
| | |||||
* | first implementation for 'table.copy' | Roberto Ierusalimschy | 2014-07-25 | 1 | -1/+39 |
| | |||||
* | Table library now respects '__index'/'__newindex' metamethods | Roberto Ierusalimschy | 2014-07-16 | 1 | -43/+96 |
| | |||||
* | more direct implementation of 'table.pack' | Roberto Ierusalimschy | 2014-05-16 | 1 | -10/+6 |
| | |||||
* | detail (avoid "casting down" in case lua_Integer is smaller than int) | Roberto Ierusalimschy | 2014-04-12 | 1 | -2/+2 |
| |