aboutsummaryrefslogtreecommitdiff
path: root/manual (follow)
Commit message (Collapse)AuthorAgeFilesLines
* New interface to function 'luaL_openselectedlibs'Roberto Ierusalimschy2024-02-152-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 tableRoberto Ierusalimschy2024-02-071-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.)
* DetailsRoberto Ierusalimschy2024-01-291-1/+1
|
* Merge branch 'master' into nextversionRoberto Ierusalimschy2024-01-251-0/+4
|\
| * Panic functions should not raise errorsRoberto Ierusalimschy2023-11-241-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 Ierusalimschy2024-01-181-2/+15
| | | | | | | | | | Creates a table preallocating memory. (It just exports to Lua the API function 'lua_createtable'.)
* | New mechanism to query GC parametersRoberto Ierusalimschy2024-01-161-12/+15
| |
* | Clear interface between references and predefinesRoberto Ierusalimschy2024-01-151-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 collectorRoberto Ierusalimschy2024-01-101-2/+2
| |
* | Several tweaks in the garbage collectorRoberto Ierusalimschy2023-12-271-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 Ierusalimschy2023-12-221-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-incrementalRoberto Ierusalimschy2023-12-201-14/+14
| |
* | Cleaner protocol between 'lua_dump' and writer functionRoberto Ierusalimschy2023-12-141-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<->majorRoberto Ierusalimschy2023-12-071-57/+77
| |
* | Details in the manualRoberto Ierusalimschy2023-11-241-21/+13
| |
* | Fixed buffers save long strings as external.Roberto Ierusalimschy2023-11-101-2/+4
| |
* | External stringsRoberto Ierusalimschy2023-11-091-0/+34
| | | | | | | | Strings can use external buffers to store their contents.
* | Added suport for Fixed BuffersRoberto Ierusalimschy2023-09-051-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 nextversionRoberto Ierusalimschy2023-08-231-0/+4
|\|
| * Documentation for "LUA_NOENV"Roberto Ierusalimschy2023-08-231-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 nextversionRoberto Ierusalimschy2023-06-222-22/+32
|\|
| * "Emergency" new version 5.4.6v5.4.6Roberto Ierusalimschy2023-05-021-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.5Roberto Ierusalimschy2023-04-181-4/+4
| | | | | | | | Typos in comments and details in the manual.
| * New year (2023)Roberto Ierusalimschy2023-03-311-1/+1
| | | | | | | | | | Also, small tweak in makefile. (-Wsign-compare is already enabled by -Wextra.)
* | Clock component removed from 'luaL_makeseed'Roberto Ierusalimschy2023-03-231-2/+2
| | | | | | | | 'clock' can be quite slow on some machines.
* | New function 'luaL_makeseed'Roberto Ierusalimschy2023-03-201-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 onlyRoberto Ierusalimschy2022-12-211-10/+6
| |
* | Towards Lua 5.5Roberto Ierusalimschy2022-12-201-120/+3
|/
* Bug: stack overflow with nesting of coroutine.closeRoberto Ierusalimschy2022-10-251-1/+6
|
* Option '-l g=mod' added to the manualRoberto Ierusalimschy2022-10-191-11/+12
| | | | Plus some other improvements in the manual.
* Note in the manual about using '...' as an expressionRoberto Ierusalimschy2022-09-081-5/+16
|
* Better documentation for 'multires' expressionsRoberto Ierusalimschy2022-08-191-72/+116
| | | | | | Manual has a new section explaining multires expressions, lists of expressions, and adjustments. This commit also corrects some comments in the code.
* Details (identation and typos)Roberto Ierusalimschy2022-05-101-2/+2
|
* DetailsRoberto Ierusalimschy2022-04-011-1/+3
| | | | | Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack
* Explanation of borders in the manualv5.4.4Roberto Ierusalimschy2022-01-131-10/+12
| | | | | | The explanation includes the limit case of maxinteger being a border. It also avoids the term "natural", which might include large floats with natural values.
* New year (2022)Roberto Ierusalimschy2022-01-021-1/+1
|
* Bug: GC is not reentrantRoberto Ierusalimschy2021-12-131-5/+6
| | | | As the GC is not reentrant, finalizers should not be able to invoke it.
* Corrected bug in 'luaD_tryfuncTM'Roberto Ierusalimschy2021-11-161-1/+1
| | | | | | The pointer to the metamethod can be invalidated by a finalizer that can run during a GC in 'checkstackGCp'. (This commit also fixes a detail in the manual.) Bug introduced in commit 91673a8ec.
* DocumentationRoberto Ierusalimschy2021-10-111-2/+10
| | | | | Better explanation about the guaranties of multiple assignment in the manual.
* Revamp of format validation in 'string.format'Roberto Ierusalimschy2021-09-031-2/+4
| | | | | When calling 'sprintf', not all conversion specifiers accept all flags; some combinations are undefined behavior.
* Improved documentation for 'lua_getinfo'Roberto Ierusalimschy2021-08-111-18/+24
|
* Correction on documentation of string-buffer operationsRoberto Ierusalimschy2021-07-211-4/+4
| | | | | | All string-buffer operations can potentially change the stack in unspecified ways; the push/pop documentation in the manual should reflect that.
* Avoid the term "undefined behavior" in the manualRoberto Ierusalimschy2021-06-091-3/+2
|
* DetailsRoberto Ierusalimschy2021-03-291-9/+12
| | | | Comments and small improvements in the manual.
* lua_settop/lua_pop closes to-be-closed variablesRoberto Ierusalimschy2021-03-091-12/+11
| | | | | | The existence of 'lua_closeslot' is no reason for lua_pop not to close to-be-closed variables too. It is too error-prone for lua_pop not to close tbc variables being popped from the stack.
* New release number (5.4.3)Roberto Ierusalimschy2021-03-031-1/+1
|
* Normalization of metamethod typography in the manualRoberto Ierusalimschy2021-03-021-10/+10
|
* '__close' methods can yield in the return of a C functionRoberto Ierusalimschy2021-02-121-0/+3
| | | | | | | When, inside a coroutine, a C function with to-be-closed slots return, the corresponding metamethods can yield. ('__close' metamethods called through 'lua_closeslot' still cannot yield, as there is no continuation to go when resuming.)
* Simpler handling of errors when creating tbc variablesRoberto Ierusalimschy2021-01-191-4/+0
| | | | | | New field 'lua_State.ptbc' keeps to-be-closed variable until its upvalue is created, so that it can be closed in case of a memory-allocation error.
* Corrected documentation for 'table.sort'Roberto Ierusalimschy2021-01-141-8/+8
| | | | | The sort function must define a (strict) weak order for a correct sorting. A partial order is not enough.