Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Details | Roberto Ierusalimschy | 2019-05-28 | 1 | -5/+9 |
| | | | | | | | - new error message for "attempt to assign to const variable" - note in the manual about compatibility options - comments - small changes in 'read_line' and 'pushstr' | ||||
* | Define LUA_MAXUNSIGNED as a preprocessor constant | Roberto Ierusalimschy | 2019-05-14 | 1 | -1/+8 |
| | | | | | The previous definition of LUA_MAXUNSIGNED used a typecast, making it unsuitable for constant expressions in the preprocessor. | ||||
* | A few changes in tests about number of bits in integers | Roberto Ierusalimschy | 2019-05-13 | 1 | -2/+1 |
| | | | | | | - The preprocessor must work with at least 'long', and therefore must do shifts of up to 31 bits correctly. - Whenever possible, use unsigned types in shifts. | ||||
* | Some improvements in 'luaconf.h' | Roberto Ierusalimschy | 2019-05-13 | 1 | -31/+57 |
| | | | | | Added '#if !defined' in some definitions to allow external definitions; more comments; other small changes. | ||||
* | A few more improvements in 'luaO_pushvfstring' | Roberto Ierusalimschy | 2019-05-03 | 1 | -3/+10 |
| | | | | | | | | - 'L' added to the 'BuffFS' structure - '%c' does not handle control characters (it is not its business. This now is done by the lexer, who is the one in charge of that kind of errors.) - avoid the direct use of 'l_sprintf' in the Lua kernel | ||||
* | Revamp of 'lua_pushfstring' / 'luaO_pushvfstring' | Roberto Ierusalimschy | 2019-04-24 | 1 | -7/+0 |
| | | | | | | | | | The function 'luaO_pushvfstring' now uses an internal buffer to concatenate small strings, instead of pushing all pieces on the stack. This avoids the creation of several small Lua strings for each piece of the result. (For instance, a format like "n: '%d'" used to create three intermediate strings: "n: '", the numeral, and "'". Now it creates none.) | ||||
* | Avoid using large buffers in 'string.format' | Roberto Ierusalimschy | 2019-04-12 | 1 | -8/+1 |
| | | | | | | | The result of "string.format("%.99f", -1e308) is 410 characters long, but all other formats have much smaller limits (at most 99 plus a fex extras). This commit avoids 'string.format' asking for a buffer ~400 chars large when ~100 will do. | ||||
* | LUAI_MAXCCALLS renamed LUAI_MAXCSTACK | Roberto Ierusalimschy | 2019-03-25 | 1 | -0/+15 |
| | | | | | | | The limit LUAI_MAXCCALLS was renamed LUAI_MAXCSTACK, which better represents its meaning. Moreover, its definition was moved to 'luaconf.h', given its importance now that Lua does not use a "stackless" implementation. | ||||
* | Changes in the control of C-stack overflow | Roberto Ierusalimschy | 2018-12-27 | 1 | -2/+2 |
| | | | | | | | | | | * unification of the 'nny' and 'nCcalls' counters; * external C functions ('lua_CFunction') count more "slots" in the C stack (to allow for their possible use of buffers) * added a new test script specific for C-stack overflows. (Most of those tests were already present, but concentrating them in a single script easies the task of checking whether 'LUAI_MAXCCALLS' is adequate in a system.) | ||||
* | Visibility of non-API functions changed to "internal" | Roberto Ierusalimschy | 2018-11-13 | 1 | -1/+1 |
| | | | | | | | The visibility for functions marked as LUAI_FUNC was changed from "hidden" to "internal". These functions cannot be called from outside the Lua kernel, and "internal" visibility offers more chances for optimizations. | ||||
* | Deprecated the emulation of '__le' using '__lt' | Roberto Ierusalimschy | 2018-08-24 | 1 | -1/+7 |
| | | | | | | | | | | | As hinted in the manual for Lua 5.3, the emulation of the metamethod for '__le' using '__le' has been deprecated. It is slow, complicates the logic, and it is easy to avoid this emulation by defining a proper '__le' function. Moreover, often this emulation was used wrongly, with a programmer assuming that an order is total when it is not (e.g., NaN in floating-point numbers). | ||||
* | Removed extra information from RCS keyword strings | Roberto Ierusalimschy | 2018-08-23 | 1 | -1/+1 |
| | | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept. | ||||
* | opening functions must be exported!v5.4-w2 | Roberto Ierusalimschy | 2018-06-19 | 1 | -5/+3 |
| | |||||
* | change in 'LUAI_DDEC' to allow variables to be static in 'onelua' | Roberto Ierusalimschy | 2018-06-18 | 1 | -6/+10 |
| | | | | + change in 'LUAMOD_API' as opening functions do not need to be global | ||||
* | detail (removed unused definition for 'LUA_QS') | Roberto Ierusalimschy | 2018-06-15 | 1 | -10/+2 |
| | |||||
* | definition for LUA_UNSIGNEDBITS (number of bits in a LUA_UNSIGNED) | Roberto Ierusalimschy | 2018-04-02 | 1 | -1/+4 |
| | |||||
* | added definition for LUA_MAXUNSIGNED | Roberto Ierusalimschy | 2018-03-09 | 1 | -1/+4 |
| | |||||
* | 'LUA_USE_READLINE' moved to the make file | Roberto Ierusalimschy | 2018-03-02 | 1 | -3/+1 |
| | |||||
* | removed compatibility code with older versions | Roberto Ierusalimschy | 2018-02-27 | 1 | -75/+5 |
| | |||||
* | detail (comment) | Roberto Ierusalimschy | 2018-02-20 | 1 | -7/+8 |
| | |||||
* | typos in comments | Roberto Ierusalimschy | 2017-12-30 | 1 | -3/+3 |
| | |||||
* | detail (comment) | Roberto Ierusalimschy | 2017-12-07 | 1 | -1/+2 |
| | |||||
* | type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also added | Roberto Ierusalimschy | 2017-04-24 | 1 | -1/+7 |
| | | | | to the auxlib buffer | ||||
* | new macro 'lua_pointer2str' to encapsulate use of 'l_sprintf' inside | Roberto Ierusalimschy | 2017-04-19 | 1 | -1/+8 |
| | | | | the kernel | ||||
* | detail (removing spaces at end of lines) | Roberto Ierusalimschy | 2016-12-22 | 1 | -2/+2 |
| | |||||
* | Using LUAI_UAC* types more consistently on vararg calls | Roberto Ierusalimschy | 2016-12-20 | 1 | -6/+10 |
| | |||||
* | wrong test in '#if' for floating-point type | Roberto Ierusalimschy | 2016-08-22 | 1 | -3/+3 |
| | |||||
* | Handling of LUA_PATH/LUA_CPATH moved from package library to stand | Roberto Ierusalimschy | 2016-07-18 | 1 | -1/+13 |
| | | | | | alone interpreter (so that 'lua.c' concentrates all handling of environment variables) | ||||
* | detail (macro should "use" all its arguments) | Roberto Ierusalimschy | 2016-05-01 | 1 | -2/+2 |
| | |||||
* | generic definitions for float types moved to before variable definitions | Roberto Ierusalimschy | 2015-10-21 | 1 | -20/+26 |
| | | | | | (so that specific cases can redefine these generic definitions if needed) | ||||
* | detail | Roberto Ierusalimschy | 2015-06-24 | 1 | -2/+2 |
| | |||||
* | using 'snprintf' in C99 (both for documentation of buffer sizes | Roberto Ierusalimschy | 2015-06-18 | 1 | -6/+17 |
| | | | | and some complains from tools) | ||||
* | new configuration macro 'l_mathlim' (simplifies some dependencies | Roberto Ierusalimschy | 2015-05-20 | 1 | -6/+10 |
| | | | | on float type) | ||||
* | more consistent use of locale radix character across Lua | Roberto Ierusalimschy | 2015-04-03 | 1 | -2/+12 |
| | |||||
* | 'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float') | Roberto Ierusalimschy | 2015-03-31 | 1 | -16/+21 |
| | |||||
* | macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter | Roberto Ierusalimschy | 2015-03-06 | 1 | -1/+11 |
| | | | | (some people use it) | ||||
* | configuration for numerical types through only one #define for | Roberto Ierusalimschy | 2015-03-02 | 1 | -20/+28 |
| | | | | each type | ||||
* | LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3 | Roberto Ierusalimschy | 2015-02-28 | 1 | -10/+14 |
| | |||||
* | macros 'luai_num*' (for float arithmetic operations) moved to | Roberto Ierusalimschy | 2015-02-05 | 1 | -41/+1 |
| | | | | llimits.h. | ||||
* | added comments documenting LUA_NOCVTN2S/LUA_NOCVTS2N | Roberto Ierusalimschy | 2015-02-05 | 1 | -1/+19 |
| | |||||
* | own implementation for 'string.format("%a")' for C89 platforms | Roberto Ierusalimschy | 2015-02-04 | 1 | -8/+8 |
| | |||||
* | LUAL_BUFFERSIZE affects the API, so it is better not to change it | Roberto Ierusalimschy | 2015-01-16 | 1 | -2/+3 |
| | | | | | | between releases of the same version. (The long double case seems to be too rare, so that should not be a problem; moreover, that case is related to a bug) | ||||
* | LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not | Roberto Ierusalimschy | 2015-01-16 | 1 | -10/+1 |
| | | | | affect the API and is seldom modified) | ||||
* | removed macro LUAI_FIRSTPSEUDOIDX (that stuff does not need | Roberto Ierusalimschy | 2015-01-13 | 1 | -4/+1 |
| | | | | to be configurable) | ||||
* | Long double needs a larger LUAL_BUFFERSIZE (because | Roberto Ierusalimschy | 2015-01-13 | 1 | -3/+10 |
| | | | | | 'string.format("%.99f", 1e4900)' can generate quite long strings), but otherwise buffer can be 1~2K | ||||
* | detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division) | Roberto Ierusalimschy | 2014-12-29 | 1 | -2/+2 |
| | |||||
* | removed macro 'luai_numinvalidop' (main motivation removed, as folding | Roberto Ierusalimschy | 2014-12-26 | 1 | -9/+1 |
| | | | | does not handle any division by zero by default) | ||||
* | comment | Roberto Ierusalimschy | 2014-12-19 | 1 | -2/+2 |
| | |||||
* | Windows uses 'long long' (instead of '__int64') when present; again, | Roberto Ierusalimschy | 2014-12-16 | 1 | -15/+15 |
| | | | | uses macro LLONG_MAX as a proxy for the support for 'long long'. | ||||
* | added macro LUA_USE_I64 for separate control of use of Windows-specific | Roberto Ierusalimschy | 2014-12-16 | 1 | -2/+3 |
| | | | | types |