Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | -7/+8 |
| | | | | | 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. | ||||
* | 'getmode' renamed to 'getMode' | Roberto Ierusalimschy | 2024-04-08 | 1 | -3/+3 |
| | | | | | | The name 'getmode' conficts with a function from BSD, defined in <unistd.h>. Although 'lbaselib.c' cannot include that header, 'onelua.c' can. | ||||
* | New mechanism to query GC parameters | Roberto Ierusalimschy | 2024-01-16 | 1 | -4/+4 |
| | |||||
* | Several tweaks in the garbage collector | Roberto Ierusalimschy | 2023-12-27 | 1 | -6/+4 |
| | | | | | | - back with step size in collectgarbage("step") - adjustments in defaults for some GC parameters - adjustments in 'luaO_codeparam' | ||||
* | Removed compatibility option LUA_COMPAT_GCPARAMS | Roberto Ierusalimschy | 2023-12-22 | 1 | -20/+3 |
| | | | | | | The meaning of different GC parameters changed, so there is point in supporting old values for them. The new code simply ignores the parameters when changing the GC mode, so the incompatibility is small. | ||||
* | New option "setparms" for 'collectgarbage' | Roberto Ierusalimschy | 2023-12-22 | 1 | -5/+29 |
| | | | | | | 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. | ||||
* | First criteria for shifts minor<->major | Roberto Ierusalimschy | 2023-12-07 | 1 | -6/+7 |
| | |||||
* | Removed deprecated options in 'lua_gc' | Roberto Ierusalimschy | 2023-11-30 | 1 | -12/+2 |
| | | | | Options 'setpause' and 'setstepmul' were deprecated in Lua 5.4. | ||||
* | Added suport for Fixed Buffers | Roberto Ierusalimschy | 2023-09-05 | 1 | -2/+13 |
| | | | | | A fixed buffer keeps a binary chunk "forever", so that the program does not need to copy some of its parts when loading it. | ||||
* | Bug: GC is not reentrant | Roberto Ierusalimschy | 2021-12-13 | 1 | -2/+17 |
| | | | | As the GC is not reentrant, finalizers should not be able to invoke it. | ||||
* | 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). | ||||
* | Allow yields inside '__pairs' | Roberto Ierusalimschy | 2021-03-29 | 1 | -1/+6 |
| | |||||
* | Broadening the use of branch hints | Roberto Ierusalimschy | 2021-02-24 | 1 | -6/+6 |
| | | | | | | 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). | ||||
* | Janitorial work | Roberto Ierusalimschy | 2021-01-25 | 1 | -1/+2 |
| | | | | Comments, code details, identation. | ||||
* | Added macro 'luaL_pushfail' | Roberto Ierusalimschy | 2019-08-16 | 1 | -3/+3 |
| | | | | | | | | The macro 'luaL_pushfail' documents all places in the standard libraries that return nil to signal some kind of failure. It is defined as 'lua_pushnil'. The manual also got a notation (@fail) to document those returns. The tests were changed to be agnostic regarding whether 'fail' is 'nil' or 'false'. | ||||
* | Added control messages to warnings | Roberto Ierusalimschy | 2019-08-15 | 1 | -2/+2 |
| | | | | | | | Added the concept of control messages to the warning system, plus the implementation of the controls "@on"/"@off" to turn warnings on/off. Moreover, the warning system in the test library adds some other controls to ease the test of warnings. | ||||
* | Function 'warn' is vararg | Roberto Ierusalimschy | 2019-06-04 | 1 | -2/+13 |
| | | | | | | | Instead of a 'tocont' flag, the function 'warn' in Lua now receives all message pieces as multiple arguments in a single call. Besides being simpler to use, this implementation ensures that Lua code cannot create unfinished warnings. | ||||
* | 'print' does not call 'tostring' to format its arguments | Roberto Ierusalimschy | 2019-04-10 | 1 | -11/+5 |
| | |||||
* | Changes in the warning system | Roberto Ierusalimschy | 2019-03-14 | 1 | -1/+1 |
| | | | | | | | | - 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. | ||||
* | Added a warning system to Lua | Roberto Ierusalimschy | 2018-12-28 | 1 | -0/+8 |
| | | | | | The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program. | ||||
* | Details | Roberto Ierusalimschy | 2018-12-11 | 1 | -1/+1 |
| | | | | | | | | - in 'luaB_tonumber', do not need to "checkany" when argument is a number. - in 'lua_resume', the call to 'luaD_rawrunprotected' cannot return a status equal to -1. | ||||
* | Better error messages for some polymorphic functions | Roberto Ierusalimschy | 2018-12-10 | 1 | -4/+3 |
| | | | | | | | | | New auxiliary functions/macros 'luaL_argexpected'/'luaL_typeerror' ease the creation of error messages such as bad argument #2 to 'setmetatable' (nil or table expected, got boolean) (The novelty being the "got boolean" part...) | ||||
* | 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. | ||||
* | new experimental syntax using reserved word 'undef' | Roberto Ierusalimschy | 2018-03-07 | 1 | -19/+1 |
| | |||||
* | removed compatibility code with older versions | Roberto Ierusalimschy | 2018-02-27 | 1 | -26/+12 |
| | |||||
* | metamethods for 'removekey'/'keyin' | Roberto Ierusalimschy | 2018-02-27 | 1 | -5/+3 |
| | |||||
* | first (parcial) implementation of 'keyin'/'removekey' | Roberto Ierusalimschy | 2018-02-25 | 1 | -1/+21 |
| | | | | (still no metamethods, no raw verssions) | ||||
* | 'collectgarbage' returns old mode when changing mode | Roberto Ierusalimschy | 2018-02-05 | 1 | -5/+9 |
| | |||||
* | detail ('signal' -> 'sign' in comments) | Roberto Ierusalimschy | 2017-11-16 | 1 | -2/+2 |
| | |||||
* | new constant 'LUA_GNAME' for the name of the global table "_G" | Roberto Ierusalimschy | 2017-06-27 | 1 | -3/+3 |
| | |||||
* | revamping the incremental collector | Roberto Ierusalimschy | 2017-05-26 | 1 | -6/+33 |
| | | | | | | Some simplifications (not counting bytes, couting only slots visited; no more 'gcfinnum'); more GC parameters; using vararg in 'lua_gc' to set parameters in different GC modes | ||||
* | generational collection: new attempt (still incomplete) | Roberto Ierusalimschy | 2017-02-23 | 1 | -3/+3 |
| | |||||
* | bug (with compat on): 'ipairs' can work with any type that provides | Roberto Ierusalimschy | 2016-09-05 | 1 | -2/+2 |
| | | | | | an __index; so, 'pairsmeta' should not check for tables. ('pairs' already checks for tables through 'next'.) | ||||
* | details ('error' does not coerce numbers to strings + comments) | Roberto Ierusalimschy | 2016-04-11 | 1 | -6/+5 |
| | |||||
* | with 'fast tracks', there is no need to do raw accesses in 'ipairs' | Roberto Ierusalimschy | 2015-10-29 | 1 | -19/+6 |
| | |||||
* | with string cache, it is not that important for 'type' to avoid | Roberto Ierusalimschy | 2015-06-26 | 1 | -13/+5 |
| | | | | 'lua_pushstring' | ||||
* | details (avoid 'lint' warnings) | Roberto Ierusalimschy | 2015-03-28 | 1 | -2/+2 |
| | |||||
* | 'ipairs' needs an argument | Roberto Ierusalimschy | 2014-12-10 | 1 | -1/+2 |
| | |||||
* | 'assert' checks that it has (at least) one parameter + 'assert' ensures | Roberto Ierusalimschy | 2014-12-08 | 1 | -4/+5 |
| | | | | it passes only one value to 'error' | ||||
* | removed unneeded test (result of b_str2int is already checked | Roberto Ierusalimschy | 2014-11-10 | 1 | -3/+1 |
| | | | | against length) | ||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+5 |
| | | | | any other header file | ||||
* | definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror' | Roberto Ierusalimschy | 2014-10-29 | 1 | -4/+4 |
| | | | | | moved to 'lauxlib.h' (they do not need to be stable or configurable) + prefixes changed from 'luai_' to 'lua_' (they are not part of the core) | ||||
* | `name' in comments changed to 'name' | Roberto Ierusalimschy | 2014-10-25 | 1 | -2/+2 |
| | |||||
* | 'lua_stringtonum' -> 'lua_stringtonumber' | Roberto Ierusalimschy | 2014-10-17 | 1 | -2/+2 |
| | |||||
* | macros 'LUA_QL'/'LUA_QL' deprecated | Roberto Ierusalimschy | 2014-10-17 | 1 | -3/+2 |
| | |||||
* | 'lua_strtonum' -> 'lua_stringtonum' | Roberto Ierusalimschy | 2014-10-15 | 1 | -2/+2 |
| | |||||
* | 'lua_Kcontext' -> 'lua_KContext' | Roberto Ierusalimschy | 2014-10-07 | 1 | -3/+3 |
| | |||||
* | deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) | Roberto Ierusalimschy | 2014-10-01 | 1 | -9/+9 |
| |