Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added control messages to warnings | Roberto Ierusalimschy | 2019-08-15 | 1 | -10/+24 |
| | | | | | | | 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. | ||||
* | Details (typos in comments) | Roberto Ierusalimschy | 2019-07-05 | 1 | -1/+1 |
| | |||||
* | Improvements in 'luaL_traceback' | Roberto Ierusalimschy | 2019-05-28 | 1 | -24/+29 |
| | | | | | | | | 'luaL_traceback' changed to use an aux buffer instead of concats. This should reduce the quantity of garbage it generates (in the form of intermediate strings) while producing a trackback. It also added information about the number of levels skipped when skipping levels in a trace. | ||||
* | Details | Roberto Ierusalimschy | 2019-05-13 | 1 | -3/+7 |
| | | | | | | - 'luaL_setfuncs' avoids creating closures for placeholders. - Fixed some warnings about unused values in comma expressions. - Comments. | ||||
* | New function 'luaL_addgsub' | Roberto Ierusalimschy | 2019-04-24 | 1 | -7/+13 |
| | | | | | | | | Added a new function 'luaL_addgsub', similar to 'luaL_gsub' but that adds its result directly to a preexisting buffer, avoiding the creation of one extra intermediate string. Also added two simple macros, 'luaL_bufflen' and 'luaL_buffaddr', to query the current length and the contents address of a buffer. | ||||
* | Changes in the warning system | Roberto Ierusalimschy | 2019-03-14 | 1 | -19/+15 |
| | | | | | | | | - 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 | -1/+27 |
| | | | | | The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program. | ||||
* | Better error messages for some polymorphic functions | Roberto Ierusalimschy | 2018-12-10 | 1 | -3/+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...) | ||||
* | Auxiliary buffer cannot close box with 'lua_remove' | Roberto Ierusalimschy | 2018-11-26 | 1 | -5/+7 |
| | | | | | | | To remove a to-be-closed variable from the stack in the C API a function must use 'lua_settop' or 'lua_pop'. Previous implementation of 'luaL_pushresult' was not closing the box. (This commit also added tests to check that box is being closed "as soon as possible".) | ||||
* | String buffer using to-be-closed variable | Roberto Ierusalimschy | 2018-11-13 | 1 | -11/+15 |
| | | | | | The string buffers in the C API now mark their boxes as to-be-closed variables, to release their buffers in case of errors. | ||||
* | New implementation for 'luaL_addvalue' | Roberto Ierusalimschy | 2018-11-09 | 1 | -22/+59 |
| | | | | | | The function 'luaL_addvalue' (from the buffer system) was rewritten so that it does not change the position of the box (if present) in the stack. | ||||
* | Removed resource-related "emergency collections" | Roberto Ierusalimschy | 2018-10-31 | 1 | -43/+0 |
| | | | | | New to-be-closed variables is a better way to ensure the proper release of resources. | ||||
* | Added "emergency collection" to 'io.tmpfile' and 'os.tmpname' | Roberto Ierusalimschy | 2018-07-27 | 1 | -1/+45 |
| | | | | | | | | These operations also can give errors for lack of resources, so they also will try "emergency collections" in case of resource errors. Because there are now two libraries with that kind of handling, 'resourcetryagain' was moved to the auxiliary library to be shared by the libraries. | ||||
* | no need to check whether libraries and host use the same kernel; | Roberto Ierusalimschy | 2018-06-18 | 1 | -6/+4 |
| | | | | Lua should work correctly with several copies of the kernel | ||||
* | removed compatibility code with older versions | Roberto Ierusalimschy | 2018-02-27 | 1 | -82/+1 |
| | |||||
* | using new 'lua_newuserdatauv' instead of 'lua_newuserdata' | Roberto Ierusalimschy | 2018-02-21 | 1 | -2/+2 |
| | |||||
* | detail | Roberto Ierusalimschy | 2018-01-29 | 1 | -2/+2 |
| | | | | (uses a reserved-format name for an internal type in the registry) | ||||
* | new constant 'LUA_GNAME' for the name of the global table "_G" | Roberto Ierusalimschy | 2017-06-27 | 1 | -2/+2 |
| | |||||
* | type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also added | Roberto Ierusalimschy | 2017-04-24 | 1 | -3/+3 |
| | | | | to the auxlib buffer | ||||
* | Using LUAI_UAC* types more consistently on vararg calls | Roberto Ierusalimschy | 2016-12-20 | 1 | -4/+4 |
| | |||||
* | using constants for "_LOADED" and "PRELOAD" | Roberto Ierusalimschy | 2016-12-04 | 1 | -12/+11 |
| | |||||
* | 'luaL_tolstring' uses metatable's "__name" when available | Roberto Ierusalimschy | 2016-12-04 | 1 | -5/+14 |
| | |||||
* | no more extra space in 'luaL_checkstack'. (It was already useless | Roberto Ierusalimschy | 2016-01-08 | 1 | -11/+10 |
| | | | | | for the first call, and function works ok without that space anyway (just error message misses the 'msg' component) | ||||
* | comments + small code changes around stack usage when 'luaL_checkstack' | Roberto Ierusalimschy | 2015-12-14 | 1 | -5/+21 |
| | | | | raises an error (and needs the stack to create the error message...) | ||||
* | details (typos in comments) | Roberto Ierusalimschy | 2015-11-19 | 1 | -3/+3 |
| | |||||
* | allow NULL string when length is zero in 'lua_pushlstring' and | Roberto Ierusalimschy | 2015-10-06 | 1 | -4/+6 |
| | | | | 'luaL_addlstring' | ||||
* | in 'luaL_traceback', print correct number of levels even when | Roberto Ierusalimschy | 2015-10-02 | 1 | -9/+11 |
| | | | | initial level is not 1. | ||||
* | better implementation for buffers (reallocated memory directly | Roberto Ierusalimschy | 2015-06-18 | 1 | -8/+52 |
| | | | | with allocation function; generates much less garbage) | ||||
* | detail ('luaL_getmetatable' does not return a boolean, but a tag) | Roberto Ierusalimschy | 2015-02-03 | 1 | -2/+2 |
| | |||||
* | traverse loaded modules (instead of globals) for a name for a function + | Roberto Ierusalimschy | 2014-12-14 | 1 | -5/+13 |
| | | | | removes prefix '_G.' from names (if present) | ||||
* | in traceback names, give preference to 'name' over '_G.name' | Roberto Ierusalimschy | 2014-12-13 | 1 | -3/+4 |
| | |||||
* | give preference to global names in tracebacks | Roberto Ierusalimschy | 2014-12-10 | 1 | -12/+10 |
| | |||||
* | use 'namewhat' when building a traceback | Roberto Ierusalimschy | 2014-12-08 | 1 | -2/+2 |
| | |||||
* | detail (buffer in 'LoadF' is related to files) | Roberto Ierusalimschy | 2014-11-21 | 1 | -2/+2 |
| | |||||
* | uses return value from luaL_getmetatable | Roberto Ierusalimschy | 2014-11-12 | 1 | -3/+2 |
| | |||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+6 |
| | | | | any other header file | ||||
* | definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror' | Roberto Ierusalimschy | 2014-10-29 | 1 | -3/+3 |
| | | | | | 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 | -5/+5 |
| | |||||
* | added 'l_' prefix for names that can be redefined externally | Roberto Ierusalimschy | 2014-10-22 | 1 | -5/+5 |
| | |||||
* | macros 'LUA_QL'/'LUA_QL' deprecated | Roberto Ierusalimschy | 2014-10-17 | 1 | -7/+7 |
| | |||||
* | 'luaL_getmetafield' returns type of metafield (instead of a boolean) | Roberto Ierusalimschy | 2014-09-22 | 1 | -16/+17 |
| | |||||
* | in 'luaL_checkversion_' check numeric types first. (Other tests | Roberto Ierusalimschy | 2014-07-19 | 1 | -4/+3 |
| | | | | depend on correct numeric type.) | ||||
* | new conversion float->integer: conversion is valid only when | Roberto Ierusalimschy | 2014-07-17 | 1 | -3/+3 |
| | | | | float has an exact representation as an integer | ||||
* | 'requiref' checks 'package.loaded' before loading a module | Roberto Ierusalimschy | 2014-07-16 | 1 | -11/+15 |
| | |||||
* | unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.) | Roberto Ierusalimschy | 2014-06-26 | 1 | -16/+1 |
| | | | | deprecated | ||||
* | addition of '.0' to float representation done by the kernel | Roberto Ierusalimschy | 2014-05-12 | 1 | -8/+3 |
| | |||||
* | keep 'luaL_checkversion_' with its signature in version 5.2, for | Roberto Ierusalimschy | 2014-04-15 | 1 | -3/+3 |
| | | | | correct error messages in case of version mixings | ||||
* | detail (error message for conversion from float to integer) | Roberto Ierusalimschy | 2014-04-01 | 1 | -2/+2 |
| | |||||
* | lua_gettable and similars return type of gotten value | Roberto Ierusalimschy | 2014-03-12 | 1 | -11/+7 |
| | |||||
* | detail (better error messages for light userdata) | Roberto Ierusalimschy | 2014-02-19 | 1 | -1/+3 |
| |