Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bug of long strings in binary chunksv5.3.6v5.3 | Roberto Ierusalimschy | 2020-08-18 | 1 | -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 block | Roberto Ierusalimschy | 2020-08-12 | 1 | -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.5 | Roberto Ierusalimschy | 2018-12-17 | 1 | -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 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 |
| | |||||
* | new field '__name' in metatables to help better error messages | Roberto Ierusalimschy | 2014-02-11 | 1 | -3/+11 |
| | |||||
* | insertion of ".0" in floats with integer values done by "luaL_tolstring", | Roberto Ierusalimschy | 2014-02-05 | 1 | -5/+11 |
| | | | | not by the core | ||||
* | 'arg' arguments (previously called 'narg', 'nArg', 'numArg', etc.) | Roberto Ierusalimschy | 2014-01-05 | 1 | -46/+46 |
| | | | | renamed all to 'arg' | ||||
* | no need to check "bad conversion number->int;" in luaL_checkversion, | Roberto Ierusalimschy | 2013-06-27 | 1 | -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 Ierusalimschy | 2013-06-25 | 1 | -5/+5 |
| | |||||
* | detail (removed 'assert') | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+2 |
| | |||||
* | correct error message for floating-point values out of (integer) range | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+15 |
| | |||||
* | avoid using a negative value to test 'lua_tounsigned' | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+5 |
| | |||||
* | string contatenation handles conversion of integers to strings + | Roberto Ierusalimschy | 2013-06-04 | 1 | -10/+5 |
| | | | | floats always format as floats (with decimal dot or exponent) | ||||
* | new format "%I" in 'lua_pushfstring' for lua_Integer | Roberto Ierusalimschy | 2013-04-25 | 1 | -2/+12 |
| | |||||
* | detail (avoid unnecessary "unconst" in cast) | Roberto Ierusalimschy | 2013-03-21 | 1 | -2/+2 |
| | |||||
* | error message for 'bad self' includes original 'extramsg' | Roberto Ierusalimschy | 2012-10-19 | 1 | -2/+3 |
| | |||||
* | typo in comment | Roberto Ierusalimschy | 2012-09-24 | 1 | -2/+2 |
| | |||||
* | details (no need to use lua_pushfstring for plain strings) | Roberto Ierusalimschy | 2012-08-16 | 1 | -3/+3 |
| | |||||
* | bug in luaL_getsubtable (calling lua_absindex not with original stack) | Roberto Ierusalimschy | 2012-05-31 | 1 | -3/+3 |
| | |||||
* | details (using lua_setglobal/lua_getglobal instead of explicit | Roberto Ierusalimschy | 2012-04-20 | 1 | -5/+3 |
| | | | | use of the global table) |