aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using large buffers in 'string.format'Roberto Ierusalimschy2019-04-121-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_MAXCSTACKRoberto Ierusalimschy2019-03-251-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 overflowRoberto Ierusalimschy2018-12-271-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 Ierusalimschy2018-11-131-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 Ierusalimschy2018-08-241-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 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.
* opening functions must be exported!v5.4-w2Roberto Ierusalimschy2018-06-191-5/+3
|
* change in 'LUAI_DDEC' to allow variables to be static in 'onelua'Roberto Ierusalimschy2018-06-181-6/+10
| | | | + change in 'LUAMOD_API' as opening functions do not need to be global
* detail (removed unused definition for 'LUA_QS')Roberto Ierusalimschy2018-06-151-10/+2
|
* definition for LUA_UNSIGNEDBITS (number of bits in a LUA_UNSIGNED)Roberto Ierusalimschy2018-04-021-1/+4
|
* added definition for LUA_MAXUNSIGNEDRoberto Ierusalimschy2018-03-091-1/+4
|
* 'LUA_USE_READLINE' moved to the make fileRoberto Ierusalimschy2018-03-021-3/+1
|
* removed compatibility code with older versionsRoberto Ierusalimschy2018-02-271-75/+5
|
* detail (comment)Roberto Ierusalimschy2018-02-201-7/+8
|
* typos in commentsRoberto Ierusalimschy2017-12-301-3/+3
|
* detail (comment)Roberto Ierusalimschy2017-12-071-1/+2
|
* type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also addedRoberto Ierusalimschy2017-04-241-1/+7
| | | | to the auxlib buffer
* new macro 'lua_pointer2str' to encapsulate use of 'l_sprintf' insideRoberto Ierusalimschy2017-04-191-1/+8
| | | | the kernel
* detail (removing spaces at end of lines)Roberto Ierusalimschy2016-12-221-2/+2
|
* Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy2016-12-201-6/+10
|
* wrong test in '#if' for floating-point typeRoberto Ierusalimschy2016-08-221-3/+3
|
* Handling of LUA_PATH/LUA_CPATH moved from package library to standRoberto Ierusalimschy2016-07-181-1/+13
| | | | | alone interpreter (so that 'lua.c' concentrates all handling of environment variables)
* detail (macro should "use" all its arguments)Roberto Ierusalimschy2016-05-011-2/+2
|
* generic definitions for float types moved to before variable definitionsRoberto Ierusalimschy2015-10-211-20/+26
| | | | | (so that specific cases can redefine these generic definitions if needed)
* detailRoberto Ierusalimschy2015-06-241-2/+2
|
* using 'snprintf' in C99 (both for documentation of buffer sizesRoberto Ierusalimschy2015-06-181-6/+17
| | | | and some complains from tools)
* new configuration macro 'l_mathlim' (simplifies some dependenciesRoberto Ierusalimschy2015-05-201-6/+10
| | | | on float type)
* more consistent use of locale radix character across LuaRoberto Ierusalimschy2015-04-031-2/+12
|
* 'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float')Roberto Ierusalimschy2015-03-311-16/+21
|
* macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameterRoberto Ierusalimschy2015-03-061-1/+11
| | | | (some people use it)
* configuration for numerical types through only one #define forRoberto Ierusalimschy2015-03-021-20/+28
| | | | each type
* LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3Roberto Ierusalimschy2015-02-281-10/+14
|
* macros 'luai_num*' (for float arithmetic operations) moved toRoberto Ierusalimschy2015-02-051-41/+1
| | | | llimits.h.
* added comments documenting LUA_NOCVTN2S/LUA_NOCVTS2NRoberto Ierusalimschy2015-02-051-1/+19
|
* own implementation for 'string.format("%a")' for C89 platformsRoberto Ierusalimschy2015-02-041-8/+8
|
* LUAL_BUFFERSIZE affects the API, so it is better not to change itRoberto Ierusalimschy2015-01-161-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 notRoberto Ierusalimschy2015-01-161-10/+1
| | | | affect the API and is seldom modified)
* removed macro LUAI_FIRSTPSEUDOIDX (that stuff does not needRoberto Ierusalimschy2015-01-131-4/+1
| | | | to be configurable)
* Long double needs a larger LUAL_BUFFERSIZE (becauseRoberto Ierusalimschy2015-01-131-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 Ierusalimschy2014-12-291-2/+2
|
* removed macro 'luai_numinvalidop' (main motivation removed, as foldingRoberto Ierusalimschy2014-12-261-9/+1
| | | | does not handle any division by zero by default)
* commentRoberto Ierusalimschy2014-12-191-2/+2
|
* Windows uses 'long long' (instead of '__int64') when present; again,Roberto Ierusalimschy2014-12-161-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-specificRoberto Ierusalimschy2014-12-161-2/+3
| | | | types
* commentsRoberto Ierusalimschy2014-12-131-11/+11
|
* reinsertion-control macro renamed: lconfig_h -> luaconf_hRoberto Ierusalimschy2014-12-121-3/+3
|
* macro 'LUA_C89_NUMBERS' makes a little easier to use C89 numerical typesRoberto Ierusalimschy2014-12-101-37/+25
|
* details (comments)Roberto Ierusalimschy2014-11-251-6/+5
|
* 'x//y' extended to floats + more comments about module and floorRoberto Ierusalimschy2014-11-211-2/+16
| | | | division operations
* detail (LUAL_BUFFERSIZE has a larger variation among differentRoberto Ierusalimschy2014-11-191-2/+2
| | | | platforms)