Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Debug information about extra arguments from __call | Roberto Ierusalimschy | 2024-11-19 | 1 | -2/+11 |
| | | | | | | 'debug.getinfo' can return number of extra arguments added to a call by a chain of __call metavalues. That information is being used to improve error messages about errors in these extra arguments. | ||||
* | Counter for length of chains of __call metamethods | Roberto Ierusalimschy | 2024-11-16 | 1 | -0/+4 |
| | | | | | This counter will allow (in a later commit) error messages to correct argument numbers in functions called through __call metamethods. | ||||
* | New function 'lua_numbertostrbuff' | Roberto Ierusalimschy | 2024-10-23 | 1 | -1/+16 |
| | | | | | It converts a Lua number to a string in a buffer, without creating a new Lua string. | ||||
* | Some adjustments in transition minor->major | Roberto Ierusalimschy | 2024-10-18 | 1 | -1/+4 |
| | | | | Plus extra comments and other details. | ||||
* | 'objsize' broke in smaller pieces | Roberto Ierusalimschy | 2024-09-30 | 1 | -21/+22 |
| | |||||
* | No errors in 'luaO_pushvfstring' | Roberto Ierusalimschy | 2024-09-20 | 1 | -9/+16 |
| | | | | | | Any call to 'va_start' must have a corresponding call to 'va_end'; so, functions called between them (luaO_pushvfstring in particular) cannot raise errors. | ||||
* | Parameter for lua_gc/LUA_GCSTEP changed to 'size_t' | Roberto Ierusalimschy | 2024-09-10 | 1 | -1/+1 |
| | | | | | 'size_t' is the common type for measuring memory. 'int' can be too small for steps. | ||||
* | Added gcc option '-Wconversion' | Roberto Ierusalimschy | 2024-07-27 | 1 | -1/+1 |
| | | | | | No warnings for standard numerical types. Still pending alternative numerical types. | ||||
* | Explicit limit for number of results in a call | Roberto Ierusalimschy | 2024-07-18 | 1 | -2/+8 |
| | | | | | | The parameter 'nresults' in 'lua_call' and similar functions has a limit of 250. It already had an undocumented (and unchecked) limit of SHRT_MAX, but it is seldom larger than 2. | ||||
* | Maximum stack size may not fit in unsigned short | Roberto Ierusalimschy | 2024-07-16 | 1 | -6/+9 |
| | | | | | | Therefore, fields ftransfer/ntransfer in lua_Debug must have type 'int'. (Maximum stack size must fit in an 'int'.) Also, this commit adds check that maximum stack size respects size_t for size in bytes. | ||||
* | Length of external strings must fit in Lua integer | Roberto Ierusalimschy | 2024-06-24 | 1 | -0/+2 |
| | | | | (As the length of any string in Lua.) | ||||
* | Details in the manual | Roberto Ierusalimschy | 2024-06-21 | 1 | -4/+9 |
| | |||||
* | Bug: Active-lines for stripped vararg functions | Roberto Ierusalimschy | 2024-06-04 | 1 | -6/+6 |
| | | | | | Lua seg. faults when asked to create the 'activelines' table for a vararg function with no debug information. | ||||
* | Manual for 'string.format' lists what it accepts | Roberto Ierusalimschy | 2024-06-04 | 1 | -3/+6 |
| | | | | Instead of listing what it does not accept, which is always relative. | ||||
* | utf8.offset returns also final position of character | Roberto Ierusalimschy | 2024-05-27 | 1 | -8/+14 |
| | | | | | 'utf8.offset' returns two values: the initial and the final position of the given character. | ||||
* | Manual: errors in lua_toclose are not memory errors | Roberto Ierusalimschy | 2024-05-23 | 1 | -1/+4 |
| | |||||
* | Details | Roberto Ierusalimschy | 2024-05-08 | 1 | -9/+23 |
| | | | | | Corrections in comments and manual. Added note in the manual about local variables in the REPL. | ||||
* | New year (2024) | Roberto Ierusalimschy | 2024-05-02 | 1 | -1/+1 |
| | |||||
* | Details | Roberto Ierusalimschy | 2024-03-28 | 1 | -4/+10 |
| | |||||
* | New interface to function 'luaL_openselectedlibs' | Roberto Ierusalimschy | 2024-02-15 | 2 | -31/+56 |
| | | | | | Instead of preloading all non-loaded libraries, there is another mask to select which libraries to preload. | ||||
* | Better handling of size limit when resizing a table | Roberto Ierusalimschy | 2024-02-07 | 1 | -1/+1 |
| | | | | | | | | 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.) | ||||
* | Details | Roberto Ierusalimschy | 2024-01-29 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into nextversion | Roberto Ierusalimschy | 2024-01-25 | 1 | -0/+4 |
|\ | |||||
| * | Panic functions should not raise errors | Roberto Ierusalimschy | 2023-11-24 | 1 | -0/+4 |
| | | | | | | | | | | The standard panic function was using 'lua_tostring', which may raise a memory-allocation error if error value is a number. | ||||
* | | New function 'table.create' | Roberto Ierusalimschy | 2024-01-18 | 1 | -2/+15 |
| | | | | | | | | | | Creates a table preallocating memory. (It just exports to Lua the API function 'lua_createtable'.) | ||||
* | | New mechanism to query GC parameters | Roberto Ierusalimschy | 2024-01-16 | 1 | -12/+15 |
| | | |||||
* | | Clear interface between references and predefines | Roberto Ierusalimschy | 2024-01-15 | 1 | -8/+18 |
| | | | | | | | | | | The reference system has a defined way to add initial values to the table where it operates. | ||||
* | | A few more tweaks in the garbage collector | Roberto Ierusalimschy | 2024-01-10 | 1 | -2/+2 |
| | | |||||
* | | Several tweaks in the garbage collector | Roberto Ierusalimschy | 2023-12-27 | 1 | -30/+39 |
| | | | | | | | | | | | | - back with step size in collectgarbage("step") - adjustments in defaults for some GC parameters - adjustments in 'luaO_codeparam' | ||||
* | | New option "setparms" for 'collectgarbage' | Roberto Ierusalimschy | 2023-12-22 | 1 | -31/+61 |
| | | | | | | | | | | | | The generational mode also uses the parameters for the incremental mode in its major collections, so it should be easy to change those parameters without having to change the GC mode. | ||||
* | | Option 0 for step multiplier makes GC non-incremental | Roberto Ierusalimschy | 2023-12-20 | 1 | -14/+14 |
| | | |||||
* | | Cleaner protocol between 'lua_dump' and writer function | Roberto Ierusalimschy | 2023-12-14 | 1 | -2/+19 |
| | | | | | | | | | | 'lua_dump' signals to the writer function the end of a dump, so that is has more freedom when using the stack. | ||||
* | | First criteria for shifts minor<->major | Roberto Ierusalimschy | 2023-12-07 | 1 | -57/+77 |
| | | |||||
* | | Details in the manual | Roberto Ierusalimschy | 2023-11-24 | 1 | -21/+13 |
| | | |||||
* | | Fixed buffers save long strings as external. | Roberto Ierusalimschy | 2023-11-10 | 1 | -2/+4 |
| | | |||||
* | | External strings | Roberto Ierusalimschy | 2023-11-09 | 1 | -0/+34 |
| | | | | | | | | Strings can use external buffers to store their contents. | ||||
* | | Added suport for Fixed Buffers | Roberto Ierusalimschy | 2023-09-05 | 1 | -1/+16 |
| | | | | | | | | | | A fixed buffer keeps a binary chunk "forever", so that the program does not need to copy some of its parts when loading it. | ||||
* | | Merge branch 'master' into nextversion | Roberto Ierusalimschy | 2023-08-23 | 1 | -0/+4 |
|\| | |||||
| * | Documentation for "LUA_NOENV" | Roberto Ierusalimschy | 2023-08-23 | 1 | -0/+4 |
| | | | | | | | | | | Registry field "LUA_NOENV" (that signals to libraries that option -E is on) now part of the "official" API of Lua stand-alone. | ||||
* | | Merge branch 'master' into nextversion | Roberto Ierusalimschy | 2023-06-22 | 2 | -22/+32 |
|\| | |||||
| * | "Emergency" new version 5.4.6v5.4.6 | Roberto Ierusalimschy | 2023-05-02 | 1 | -15/+25 |
| | | | | | | | | | | | | 'lua_resetthread' is back to its original signature, to avoid incompatibilities in the ABI between releases of the same version. New function 'lua_closethread' added with the "correct" signature. | ||||
| * | Detailsv5.4.5 | Roberto Ierusalimschy | 2023-04-18 | 1 | -4/+4 |
| | | | | | | | | Typos in comments and details in the manual. | ||||
| * | New year (2023) | Roberto Ierusalimschy | 2023-03-31 | 1 | -1/+1 |
| | | | | | | | | | | Also, small tweak in makefile. (-Wsign-compare is already enabled by -Wextra.) | ||||
* | | Clock component removed from 'luaL_makeseed' | Roberto Ierusalimschy | 2023-03-23 | 1 | -2/+2 |
| | | | | | | | | 'clock' can be quite slow on some machines. | ||||
* | | New function 'luaL_makeseed' | Roberto Ierusalimschy | 2023-03-20 | 1 | -5/+18 |
| | | | | | | | | | | | | This function unifies code from 'lua_newstate', 'math.randomseed', and 'table.sort' that tries to create a value with a minimum level of randomness. | ||||
* | | Control variables in for loops are read only | Roberto Ierusalimschy | 2022-12-21 | 1 | -10/+6 |
| | | |||||
* | | Towards Lua 5.5 | Roberto Ierusalimschy | 2022-12-20 | 1 | -120/+3 |
|/ | |||||
* | Bug: stack overflow with nesting of coroutine.close | Roberto Ierusalimschy | 2022-10-25 | 1 | -1/+6 |
| | |||||
* | Option '-l g=mod' added to the manual | Roberto Ierusalimschy | 2022-10-19 | 1 | -11/+12 |
| | | | | Plus some other improvements in the manual. | ||||
* | Note in the manual about using '...' as an expression | Roberto Ierusalimschy | 2022-09-08 | 1 | -5/+16 |
| |