aboutsummaryrefslogtreecommitdiff
path: root/manual (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Error object cannot be nilRoberto Ierusalimschy2025-02-281-1/+10
| | | | | Lua will change a nil as error object to a string message, so that it never reports an error with nil as the error object.
* '__close' gets no error object if there is no errorRoberto Ierusalimschy2025-02-281-3/+4
| | | | | Instead of receiving nil as a second argument, __close metamethods are called with just one argument when there are no errors.
* DetailsRoberto Ierusalimschy2025-02-261-1/+1
| | | | | Comments, small changes in the manual, an extra test for errors in error handling, small changes in tests.
* Renaming two new functionsRoberto Ierusalimschy2025-01-271-2/+2
| | | | | 'lua_numbertostrbuff' -> 'lua_numbertocstring' 'lua_pushextlstring' -> 'lua_pushexternalstring'
* Parameters for 'lua_createtable' back to intRoberto Ierusalimschy2025-01-211-3/+3
| | | | Tables don't accept sizes larger than int.
* DetailsRoberto Ierusalimschy2025-01-161-1/+1
| | | | New year (2024->2025), typos in comments
* Fixed conversion warnings from clangRoberto Ierusalimschy2025-01-141-4/+3
| | | | | Plus some other details. (Option '-Wuninitialized' was removed from the makefile because it is already enabled by -Wall.)
* Improvements in the manualRoberto Ierusalimschy2025-01-101-14/+20
| | | | Plus details
* Debug information about extra arguments from __callRoberto Ierusalimschy2024-11-191-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 metamethodsRoberto Ierusalimschy2024-11-161-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 Ierusalimschy2024-10-231-1/+16
| | | | | It converts a Lua number to a string in a buffer, without creating a new Lua string.
* Some adjustments in transition minor->majorRoberto Ierusalimschy2024-10-181-1/+4
| | | | Plus extra comments and other details.
* 'objsize' broke in smaller piecesRoberto Ierusalimschy2024-09-301-21/+22
|
* No errors in 'luaO_pushvfstring'Roberto Ierusalimschy2024-09-201-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 Ierusalimschy2024-09-101-1/+1
| | | | | 'size_t' is the common type for measuring memory. 'int' can be too small for steps.
* Added gcc option '-Wconversion'Roberto Ierusalimschy2024-07-271-1/+1
| | | | | No warnings for standard numerical types. Still pending alternative numerical types.
* Explicit limit for number of results in a callRoberto Ierusalimschy2024-07-181-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 shortRoberto Ierusalimschy2024-07-161-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 integerRoberto Ierusalimschy2024-06-241-0/+2
| | | | (As the length of any string in Lua.)
* Details in the manualRoberto Ierusalimschy2024-06-211-4/+9
|
* Bug: Active-lines for stripped vararg functionsRoberto Ierusalimschy2024-06-041-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 acceptsRoberto Ierusalimschy2024-06-041-3/+6
| | | | Instead of listing what it does not accept, which is always relative.
* utf8.offset returns also final position of characterRoberto Ierusalimschy2024-05-271-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 errorsRoberto Ierusalimschy2024-05-231-1/+4
|
* DetailsRoberto Ierusalimschy2024-05-081-9/+23
| | | | | Corrections in comments and manual. Added note in the manual about local variables in the REPL.
* New year (2024)Roberto Ierusalimschy2024-05-021-1/+1
|
* DetailsRoberto Ierusalimschy2024-03-281-4/+10
|
* 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.