Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | 'ipairs' always stops at first nil element | Roberto Ierusalimschy | 2014-09-30 | 1 | -14/+5 |
| | |||||
* | 'luaL_getmetafield' returns type of metafield (instead of a boolean) | Roberto Ierusalimschy | 2014-09-22 | 1 | -5/+5 |
| | |||||
* | new functions 'lua_geti/lua_seti' (non raw) | Roberto Ierusalimschy | 2014-08-21 | 1 | -3/+2 |
| | |||||
* | 'lua_Ctx' -> 'lua_Kcontext' | Roberto Ierusalimschy | 2014-08-01 | 1 | -3/+3 |
| | |||||
* | added cast to avoid warning | Roberto Ierusalimschy | 2014-08-01 | 1 | -2/+2 |
| | |||||
* | 'ipairs' respects metamethods | Roberto Ierusalimschy | 2014-07-24 | 1 | -5/+41 |
| | |||||
* | new type 'lua_Ctx' for continuation-function contexts (to allow type | Roberto Ierusalimschy | 2014-07-17 | 1 | -3/+3 |
| | | | | to be configurable) | ||||
* | function 'type' keeps type names as upvalues to avoid creating strings | Roberto Ierusalimschy | 2014-07-16 | 1 | -8/+21 |
| | | | | everytime it is called | ||||
* | detail (typos in comments) | Roberto Ierusalimschy | 2014-06-30 | 1 | -2/+2 |
| | |||||
* | new type lua_KFunction + no more 'lua_getctx' | Roberto Ierusalimschy | 2014-06-10 | 1 | -25/+15 |
| | |||||
* | 'assert' does not assume that the error object is a string | Roberto Ierusalimschy | 2014-06-02 | 1 | -4/+9 |
| |