summaryrefslogtreecommitdiff
path: root/lauxlib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug of long strings in binary chunksv5.3.6v5.3Roberto Ierusalimschy2020-08-181-4/+4
| | | | | | | When "undumping" a long string, the function 'LoadVector' can call the reader function, which can run the garbage collector, which can collect the string being read. So, the string must be anchored during the call to 'LoadVector'. (This commit also fixes the identation in 'l_alloc'.)
* 'realloc' can fail when shrinking a blockRoberto Ierusalimschy2020-08-121-2/+7
| | | | | | According to ISO C, 'realloc' can fail when shrinking a block. If that happens, 'l_alloc' simply ignores the fail and returns the original block.
* 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.
* Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy2016-12-201-4/+4
|
* using constants for "_LOADED" and "PRELOAD"Roberto Ierusalimschy2016-12-041-12/+11
|
* 'luaL_tolstring' uses metatable's "__name" when availableRoberto Ierusalimschy2016-12-041-5/+14
|
* no more extra space in 'luaL_checkstack'. (It was already uselessRoberto Ierusalimschy2016-01-081-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 Ierusalimschy2015-12-141-5/+21
| | | | raises an error (and needs the stack to create the error message...)
* details (typos in comments)Roberto Ierusalimschy2015-11-191-3/+3
|
* allow NULL string when length is zero in 'lua_pushlstring' andRoberto Ierusalimschy2015-10-061-4/+6
| | | | 'luaL_addlstring'
* in 'luaL_traceback', print correct number of levels even whenRoberto Ierusalimschy2015-10-021-9/+11
| | | | initial level is not 1.
* better implementation for buffers (reallocated memory directlyRoberto Ierusalimschy2015-06-181-8/+52
| | | | with allocation function; generates much less garbage)
* detail ('luaL_getmetatable' does not return a boolean, but a tag)Roberto Ierusalimschy2015-02-031-2/+2
|
* traverse loaded modules (instead of globals) for a name for a function +Roberto Ierusalimschy2014-12-141-5/+13
| | | | removes prefix '_G.' from names (if present)
* in traceback names, give preference to 'name' over '_G.name'Roberto Ierusalimschy2014-12-131-3/+4
|
* give preference to global names in tracebacksRoberto Ierusalimschy2014-12-101-12/+10
|
* use 'namewhat' when building a tracebackRoberto Ierusalimschy2014-12-081-2/+2
|
* detail (buffer in 'LoadF' is related to files)Roberto Ierusalimschy2014-11-211-2/+2
|
* uses return value from luaL_getmetatableRoberto Ierusalimschy2014-11-121-3/+2
|
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
| | | | any other header file
* definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'Roberto Ierusalimschy2014-10-291-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 Ierusalimschy2014-10-251-5/+5
|
* added 'l_' prefix for names that can be redefined externallyRoberto Ierusalimschy2014-10-221-5/+5
|
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-7/+7
|
* 'luaL_getmetafield' returns type of metafield (instead of a boolean)Roberto Ierusalimschy2014-09-221-16/+17
|
* in 'luaL_checkversion_' check numeric types first. (Other testsRoberto Ierusalimschy2014-07-191-4/+3
| | | | depend on correct numeric type.)
* new conversion float->integer: conversion is valid only whenRoberto Ierusalimschy2014-07-171-3/+3
| | | | float has an exact representation as an integer
* 'requiref' checks 'package.loaded' before loading a moduleRoberto Ierusalimschy2014-07-161-11/+15
|
* unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)Roberto Ierusalimschy2014-06-261-16/+1
| | | | deprecated
* addition of '.0' to float representation done by the kernelRoberto Ierusalimschy2014-05-121-8/+3
|
* keep 'luaL_checkversion_' with its signature in version 5.2, forRoberto Ierusalimschy2014-04-151-3/+3
| | | | correct error messages in case of version mixings
* detail (error message for conversion from float to integer)Roberto Ierusalimschy2014-04-011-2/+2
|
* lua_gettable and similars return type of gotten valueRoberto Ierusalimschy2014-03-121-11/+7
|
* detail (better error messages for light userdata)Roberto Ierusalimschy2014-02-191-1/+3
|
* new field '__name' in metatables to help better error messagesRoberto Ierusalimschy2014-02-111-3/+11
|
* insertion of ".0" in floats with integer values done by "luaL_tolstring",Roberto Ierusalimschy2014-02-051-5/+11
| | | | not by the core
* 'arg' arguments (previously called 'narg', 'nArg', 'numArg', etc.)Roberto Ierusalimschy2014-01-051-46/+46
| | | | renamed all to 'arg'
* no need to check "bad conversion number->int;" in luaL_checkversion,Roberto Ierusalimschy2013-06-271-12/+6
| | | | | | as now Lua does not use tricks for the conversion, but there is a need to check the sizes of number types, as they can be different in two modules
* 'luaL_len' returns lua_Integer instead of 'int'Roberto Ierusalimschy2013-06-251-5/+5
|
* detail (removed 'assert')Roberto Ierusalimschy2013-06-141-4/+2
|
* correct error message for floating-point values out of (integer) rangeRoberto Ierusalimschy2013-06-141-4/+15
|
* avoid using a negative value to test 'lua_tounsigned'Roberto Ierusalimschy2013-06-141-4/+5
|
* string contatenation handles conversion of integers to strings +Roberto Ierusalimschy2013-06-041-10/+5
| | | | floats always format as floats (with decimal dot or exponent)
* new format "%I" in 'lua_pushfstring' for lua_IntegerRoberto Ierusalimschy2013-04-251-2/+12
|
* detail (avoid unnecessary "unconst" in cast)Roberto Ierusalimschy2013-03-211-2/+2
|
* error message for 'bad self' includes original 'extramsg'Roberto Ierusalimschy2012-10-191-2/+3
|
* typo in commentRoberto Ierusalimschy2012-09-241-2/+2
|
* details (no need to use lua_pushfstring for plain strings)Roberto Ierusalimschy2012-08-161-3/+3
|
* bug in luaL_getsubtable (calling lua_absindex not with original stack)Roberto Ierusalimschy2012-05-311-3/+3
|
* details (using lua_setglobal/lua_getglobal instead of explicitRoberto Ierusalimschy2012-04-201-5/+3
| | | | use of the global table)