summaryrefslogtreecommitdiff
path: root/lbaselib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added macro 'luaL_pushfail'Roberto Ierusalimschy2019-08-161-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 warningsRoberto Ierusalimschy2019-08-151-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 varargRoberto Ierusalimschy2019-06-041-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 argumentsRoberto Ierusalimschy2019-04-101-11/+5
|
* Changes in the warning systemRoberto Ierusalimschy2019-03-141-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 LuaRoberto Ierusalimschy2018-12-281-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.
* DetailsRoberto Ierusalimschy2018-12-111-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 functionsRoberto Ierusalimschy2018-12-101-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 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.
* new experimental syntax using reserved word 'undef'Roberto Ierusalimschy2018-03-071-19/+1
|
* removed compatibility code with older versionsRoberto Ierusalimschy2018-02-271-26/+12
|
* metamethods for 'removekey'/'keyin'Roberto Ierusalimschy2018-02-271-5/+3
|
* first (parcial) implementation of 'keyin'/'removekey'Roberto Ierusalimschy2018-02-251-1/+21
| | | | (still no metamethods, no raw verssions)
* 'collectgarbage' returns old mode when changing modeRoberto Ierusalimschy2018-02-051-5/+9
|
* detail ('signal' -> 'sign' in comments)Roberto Ierusalimschy2017-11-161-2/+2
|
* new constant 'LUA_GNAME' for the name of the global table "_G"Roberto Ierusalimschy2017-06-271-3/+3
|
* revamping the incremental collectorRoberto Ierusalimschy2017-05-261-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 Ierusalimschy2017-02-231-3/+3
|
* bug (with compat on): 'ipairs' can work with any type that providesRoberto Ierusalimschy2016-09-051-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 Ierusalimschy2016-04-111-6/+5
|
* with 'fast tracks', there is no need to do raw accesses in 'ipairs'Roberto Ierusalimschy2015-10-291-19/+6
|
* with string cache, it is not that important for 'type' to avoidRoberto Ierusalimschy2015-06-261-13/+5
| | | | 'lua_pushstring'
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-281-2/+2
|
* 'ipairs' needs an argumentRoberto Ierusalimschy2014-12-101-1/+2
|
* 'assert' checks that it has (at least) one parameter + 'assert' ensuresRoberto Ierusalimschy2014-12-081-4/+5
| | | | it passes only one value to 'error'
* removed unneeded test (result of b_str2int is already checkedRoberto Ierusalimschy2014-11-101-3/+1
| | | | against length)
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+5
| | | | any other header file
* definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'Roberto Ierusalimschy2014-10-291-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 Ierusalimschy2014-10-251-2/+2
|
* 'lua_stringtonum' -> 'lua_stringtonumber'Roberto Ierusalimschy2014-10-171-2/+2
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-3/+2
|
* 'lua_strtonum' -> 'lua_stringtonum'Roberto Ierusalimschy2014-10-151-2/+2
|
* 'lua_Kcontext' -> 'lua_KContext'Roberto Ierusalimschy2014-10-071-3/+3
|
* deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)Roberto Ierusalimschy2014-10-011-9/+9
|
* 'ipairs' always stops at first nil elementRoberto Ierusalimschy2014-09-301-14/+5
|
* 'luaL_getmetafield' returns type of metafield (instead of a boolean)Roberto Ierusalimschy2014-09-221-5/+5
|
* new functions 'lua_geti/lua_seti' (non raw)Roberto Ierusalimschy2014-08-211-3/+2
|
* 'lua_Ctx' -> 'lua_Kcontext'Roberto Ierusalimschy2014-08-011-3/+3
|
* added cast to avoid warningRoberto Ierusalimschy2014-08-011-2/+2
|
* 'ipairs' respects metamethodsRoberto Ierusalimschy2014-07-241-5/+41
|
* new type 'lua_Ctx' for continuation-function contexts (to allow typeRoberto Ierusalimschy2014-07-171-3/+3
| | | | to be configurable)
* function 'type' keeps type names as upvalues to avoid creating stringsRoberto Ierusalimschy2014-07-161-8/+21
| | | | everytime it is called
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-2/+2
|
* new type lua_KFunction + no more 'lua_getctx'Roberto Ierusalimschy2014-06-101-25/+15
|
* 'assert' does not assume that the error object is a stringRoberto Ierusalimschy2014-06-021-4/+9
|
* better(?) implementation for 'pcall'/'xpcall' (regarding the insertionRoberto Ierusalimschy2014-05-161-20/+35
| | | | of the boolean first result)
* 'lua_strtonum' (and 'luaO_str2num') now return string size, instead ofRoberto Ierusalimschy2014-05-011-12/+12
| | | | receiving it
* lua_gettable and similars return type of gotten valueRoberto Ierusalimschy2014-03-121-3/+2
|
* no more second result from 'collectgarbage"count"' (as Lua seldomRoberto Ierusalimschy2014-02-141-4/+3
| | | | will need lua_Number to be an integer)
* no more local collectionRoberto Ierusalimschy2014-02-131-3/+3
|