aboutsummaryrefslogtreecommitdiff
path: root/lua.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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-1/+1
| | | | Tables don't accept sizes larger than int.
* DetailsRoberto Ierusalimschy2025-01-161-2/+2
| | | | New year (2024->2025), typos in comments
* Debug information about extra arguments from __callRoberto Ierusalimschy2024-11-191-0/+1
| | | | | | '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.
* New function 'lua_numbertostrbuff'Roberto Ierusalimschy2024-10-231-1/+3
| | | | | It converts a Lua number to a string in a buffer, without creating a new Lua string.
* Maximum stack size may not fit in unsigned shortRoberto Ierusalimschy2024-07-161-2/+2
| | | | | | 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.
* New year (2024)Roberto Ierusalimschy2024-05-021-2/+2
|
* DetailsRoberto Ierusalimschy2024-03-131-2/+1
| | | | | | - 'unsigned int' -> 'unsigned' - Some explicit casts to avoid warnings - Test avoids printing the value of 'fail' (which may not be nil)
* Removed deprecated function 'setcstacklimit'Roberto Ierusalimschy2024-02-071-1/+0
|
* 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.)
* New mechanism to query GC parametersRoberto Ierusalimschy2024-01-161-1/+1
|
* Clear interface between references and predefinesRoberto Ierusalimschy2024-01-151-2/+3
| | | | | The reference system has a defined way to add initial values to the table where it operates.
* Removed uses of LUA_NUMTAGSRoberto Ierusalimschy2024-01-131-2/+0
| | | | That constant was already deprecated (see commit 6aabf4b15e7).
* New option "setparms" for 'collectgarbage'Roberto Ierusalimschy2023-12-221-1/+20
| | | | | | 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.
* Removed deprecated options in 'lua_gc'Roberto Ierusalimschy2023-11-301-5/+3
| | | | Options 'setpause' and 'setstepmul' were deprecated in Lua 5.4.
* External stringsRoberto Ierusalimschy2023-11-091-0/+2
| | | | Strings can use external buffers to store their contents.
* Merge branch 'master' into nextversionRoberto Ierusalimschy2023-06-221-13/+25
|\
| * Removed redundancy in definitions of version/releaseRoberto Ierusalimschy2023-06-211-11/+21
| | | | | | | | String rendering now derived from the numeric original definitions.
| * "Emergency" new version 5.4.6v5.4.6Roberto Ierusalimschy2023-05-021-3/+4
| | | | | | | | | | | | '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.
| * New year (2023)Roberto Ierusalimschy2023-03-311-2/+2
| | | | | | | | | | Also, small tweak in makefile. (-Wsign-compare is already enabled by -Wextra.)
* | New function 'luaL_makeseed'Roberto Ierusalimschy2023-03-201-1/+2
| | | | | | | | | | | | This function unifies code from 'lua_newstate', 'math.randomseed', and 'table.sort' that tries to create a value with a minimum level of randomness.
* | Towards Lua 5.5Roberto Ierusalimschy2022-12-201-4/+4
|/
* Details in some header filesRoberto Ierusalimschy2022-12-141-6/+10
| | | | | Identifier LUA_NUMTAGS was deprecated (changed to LUA_NUMTYPES) + better handling of some inclusion loops.
* Bug: stack overflow with nesting of coroutine.closeRoberto Ierusalimschy2022-10-251-1/+1
|
* New release number (5.4.5)Roberto Ierusalimschy2022-04-071-2/+2
|
* New year (2022)Roberto Ierusalimschy2022-01-021-2/+2
|
* Next release number (5.4.4)Roberto Ierusalimschy2021-03-291-2/+2
|
* New release number (5.4.3)Roberto Ierusalimschy2021-03-031-3/+3
|
* New API function 'lua_closeslot'Roberto Ierusalimschy2021-01-111-1/+2
| | | | | | Closing a to-be-closed variable with 'lua_settop' is too restrictive, as it erases all slots above the variable. Moreover, it adds side effects to 'lua_settop', which should be a fairly basic function.
* New release number (5.4.2)Roberto Ierusalimschy2020-10-121-1/+1
|
* New release number (5.4.1)Roberto Ierusalimschy2020-09-151-1/+1
|
* Clearer distinction between types and tagsRoberto Ierusalimschy2020-01-311-1/+3
| | | | | LUA_T* represents only types; tags (types + Variants) are represented by LUA_V* constants.
* Copyright year changed to 2020Roberto Ierusalimschy2019-12-271-2/+2
|
* 'setCstacklimit' renamed to 'setcstacklimit'Roberto Ierusalimschy2019-09-241-1/+1
| | | | Function names in the API use only lowercase letters.
* New function 'setCstacklimit'Roberto Ierusalimschy2019-06-181-0/+1
| | | | | Added new functions to dynamically set the C-stack limit ('lua_setCstacklimit' in the C-API, 'debug.setCstacklimit' in Lua).
* Added field 'srclen' to structure 'lua_Debug'Roberto Ierusalimschy2019-04-041-0/+1
| | | | | | This new field gets the length of 'source' in the same structure. Unlike the other strings in that structure, 'source' can be relatively large, and Lua already has its length readily available.
* Year in copyright notice updated to 2019Roberto Ierusalimschy2019-03-251-2/+2
|
* Changes in the warning systemRoberto Ierusalimschy2019-03-141-2/+2
| | | | | | | | - The warning functions get an extra parameter that tells whether message is to be continued (instead of using end-of-lines as a signal). - The user data for the warning function is a regular value, instead of a writable slot inside the Lua state.
* No more LUA_ERRGCMM errorsRoberto Ierusalimschy2019-01-011-2/+1
| | | | | Errors in finalizers (__gc metamethods) are never propagated. Instead, they generate a warning.
* Added a warning system to LuaRoberto Ierusalimschy2018-12-281-0/+14
| | | | | The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program.
* New functions 'lua_resetthread' and 'coroutine.kill'Roberto Ierusalimschy2018-12-131-0/+1
| | | | | | New functions to reset/kill a thread/coroutine, mainly (only?) to close any pending to-be-closed variable. ('lua_resetthread' also allows a thread to be reused...)
* 'lua_toclose' gets the index to be closed as an argumentRoberto Ierusalimschy2018-11-121-1/+1
| | | | | | Sometimes it is useful to mark to-be-closed an index that is not at the top of the stack (e.g., if the value to be closed came from a function call returning multiple values).
* New syntax for to-be-closed variablesRoberto Ierusalimschy2018-11-071-1/+1
| | | | | | | The new syntax is <local *toclose x = f()>. The mark '*' allows other attributes to be added later without the need of new keywords; it also allows better error messages. The API function was also renamed ('lua_tobeclosed' -> 'lua_toclose').
* To-be-closed variables in the C APIRoberto Ierusalimschy2018-10-251-0/+2
|
* Removed extra information from RCS keyword stringsRoberto Ierusalimschy2018-08-231-1/+1
| | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept.
* Added definition for LUA_VERSION_RELEASE_NUMRoberto Ierusalimschy2018-07-111-1/+3
| | | | | LUA_VERSION_RELEASE_NUM is set to the release number of the Lua interpreter (e.g., 5.4.0 becomes the integer 50400).
* no need to check whether libraries and host use the same kernel;Roberto Ierusalimschy2018-06-181-2/+2
| | | | Lua should work correctly with several copies of the kernel
* no more nil-in-tableRoberto Ierusalimschy2018-04-041-4/+1
|
* 'fTransfer' -> 'ftransfer' / 'nTransfer' -> 'ntransfer'Roberto Ierusalimschy2018-03-161-3/+3
| | | | (keep the standard of names in lower case)
* both 'fTransfer' and 'nTransfer' may not fit in a 'char'Roberto Ierusalimschy2018-03-051-3/+3
|