summaryrefslogtreecommitdiff
path: root/lbaselib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-1/+1
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
* 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
|
* GC local pause configurableRoberto Ierusalimschy2013-09-131-3/+5
|
* no more generational collection !!!Roberto Ierusalimschy2013-08-051-5/+3
|
* use unsigneds for unary minus, tooRoberto Ierusalimschy2013-07-101-2/+2
|
* 'tonumber': base must be a numberRoberto Ierusalimschy2013-07-051-2/+2
|
* 'tonumber': does not accept numbers when given a base + convertion fromRoberto Ierusalimschy2013-07-051-26/+43
| | | | | strings to numbers with a base moved to a separated function (more modular)
* 'tonumber' now works with integers tooRoberto Ierusalimschy2013-05-161-10/+8
|
* added 'return' (when possible) to calls to error functionsRoberto Ierusalimschy2013-02-211-2/+3
|
* Bug: load/loadfile returns wrong result when given an environmentRoberto Ierusalimschy2012-12-031-16/+14
| | | | for a binary chunk with no upvalues
* small bug: a reader function should not modify the Lua stackRoberto Ierusalimschy2012-04-271-1/+2
|
* unused variable removedRoberto Ierusalimschy2011-11-301-3/+2
|
* avoid 'return' "to avoid warnings"Roberto Ierusalimschy2011-11-301-8/+4
|
* 'lua_load' has an extra argument 'mode'Roberto Ierusalimschy2011-11-291-31/+4
|
* options for 'collectgarbage' renamed: "inc" -> "incremental";Roberto Ierusalimschy2011-11-231-2/+2
| | | | "gen" -> "generational"
* new function 'luaL_loadfilex'Roberto Ierusalimschy2011-11-141-7/+14
|
* make treatment of 'pcall' and 'xpcall' more similarRoberto Ierusalimschy2011-11-091-14/+11
|
* refactoring of common parts of 'pcall' and 'xpcall' + avoidsRoberto Ierusalimschy2011-11-091-16/+21
| | | | stack errors on these functions (return error code instead)
* lint (unused struct field)Roberto Ierusalimschy2011-09-301-2/+1
|