Roberto Ierusalimschy
a9295a2b8e
typos in comments
7 years ago
Roberto Ierusalimschy
46bc7f2bf7
detail (comment)
7 years ago
Roberto Ierusalimschy
2caecf1b3e
type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also added
to the auxlib buffer
8 years ago
Roberto Ierusalimschy
a45945b6d5
new macro 'lua_pointer2str' to encapsulate use of 'l_sprintf' inside
the kernel
8 years ago
Roberto Ierusalimschy
2a235312f0
detail (removing spaces at end of lines)
8 years ago
Roberto Ierusalimschy
9903dd52a3
Using LUAI_UAC* types more consistently on vararg calls
8 years ago
Roberto Ierusalimschy
349badabc1
wrong test in '#if' for floating-point type
8 years ago
Roberto Ierusalimschy
de3fd8ab83
Handling of LUA_PATH/LUA_CPATH moved from package library to stand
alone interpreter (so that 'lua.c' concentrates all handling of
environment variables)
8 years ago
Roberto Ierusalimschy
792ffaccf2
detail (macro should "use" all its arguments)
9 years ago
Roberto Ierusalimschy
48098c42ff
generic definitions for float types moved to before variable definitions
(so that specific cases can redefine these generic definitions if
needed)
9 years ago
Roberto Ierusalimschy
cb1e451999
detail
10 years ago
Roberto Ierusalimschy
19eb6ae580
using 'snprintf' in C99 (both for documentation of buffer sizes
and some complains from tools)
10 years ago
Roberto Ierusalimschy
99391e24ea
new configuration macro 'l_mathlim' (simplifies some dependencies
on float type)
10 years ago
Roberto Ierusalimschy
48d0674c2e
more consistent use of locale radix character across Lua
10 years ago
Roberto Ierusalimschy
cfc84c856d
'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float')
10 years ago
Roberto Ierusalimschy
a30c66f0fc
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
10 years ago
Roberto Ierusalimschy
951b562cf8
configuration for numerical types through only one #define for
each type
10 years ago
Roberto Ierusalimschy
91efb4b895
LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3
10 years ago
Roberto Ierusalimschy
c8d6cb0136
macros 'luai_num*' (for float arithmetic operations) moved to
llimits.h.
10 years ago
Roberto Ierusalimschy
0edcdf49c0
added comments documenting LUA_NOCVTN2S/LUA_NOCVTS2N
10 years ago
Roberto Ierusalimschy
8efcd411fe
own implementation for 'string.format("%a")' for C89 platforms
10 years ago
Roberto Ierusalimschy
b3996c55f6
LUAL_BUFFERSIZE affects the API, so it is better not to change it
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)
10 years ago
Roberto Ierusalimschy
438a9fcc78
LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not
affect the API and is seldom modified)
10 years ago
Roberto Ierusalimschy
965f74525b
removed macro LUAI_FIRSTPSEUDOIDX (that stuff does not need
to be configurable)
10 years ago
Roberto Ierusalimschy
3f2e21f0ea
Long double needs a larger LUAL_BUFFERSIZE (because
'string.format("%.99f", 1e4900)' can generate quite long strings),
but otherwise buffer can be 1~2K
10 years ago
Roberto Ierusalimschy
a1c37f834a
detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division)
10 years ago
Roberto Ierusalimschy
a51069202a
removed macro 'luai_numinvalidop' (main motivation removed, as folding
does not handle any division by zero by default)
10 years ago
Roberto Ierusalimschy
570143bf88
comment
10 years ago
Roberto Ierusalimschy
6d79752e65
Windows uses 'long long' (instead of '__int64') when present; again,
uses macro LLONG_MAX as a proxy for the support for 'long long'.
10 years ago
Roberto Ierusalimschy
75812a517b
added macro LUA_USE_I64 for separate control of use of Windows-specific
types
10 years ago
Roberto Ierusalimschy
0b6cfea005
comments
10 years ago
Roberto Ierusalimschy
c96cd1c647
reinsertion-control macro renamed: lconfig_h -> luaconf_h
10 years ago
Roberto Ierusalimschy
bd8ce7e331
macro 'LUA_C89_NUMBERS' makes a little easier to use C89 numerical types
10 years ago
Roberto Ierusalimschy
ad79eafe86
details (comments)
10 years ago
Roberto Ierusalimschy
049cf14cf9
'x//y' extended to floats + more comments about module and floor
division operations
10 years ago
Roberto Ierusalimschy
244646bdf7
detail (LUAL_BUFFERSIZE has a larger variation among different
platforms)
10 years ago
Roberto Ierusalimschy
c5d52a5468
Windows uses "LONGLONG" option, even not having long long (it has __int64)
10 years ago
Roberto Ierusalimschy
80e817719d
default changed from C89 to C99 + extra tests before using C99
features (when possible) + LUA_32BITS use 'int' when possible
('long' can be 64 bits)
10 years ago
Roberto Ierusalimschy
96f3a31b24
Better organization of definitions in categories + removed
'_CRT_SECURE_NO_WARNINGS' (useless there) + LUA_ENV/luai_writestring/
luai_writeline/luai_writestringerror/LUA_INT32/LUAI_UMEM/LUAI_MEM
moved to other places (no need to be in luaconf.h) + changed definition
for LUAL_BUFFERSIZE
10 years ago
Roberto Ierusalimschy
4870194380
small reorganization of tests around LUA_USE_C99
10 years ago
Roberto Ierusalimschy
41d0e66184
comments + Windows numeric types not used if LUA_ANSI is defined
10 years ago
Roberto Ierusalimschy
4b2521cd9e
better (and safer?) way to test native size of type 'int'
10 years ago
Roberto Ierusalimschy
c3c78030f7
avoid redeclaration of _CRT_SECURE_NO_WARNINGS + 'lua_numtointeger' ->
'lua_numbertointeger'
10 years ago
Roberto Ierusalimschy
d7a0179cd6
use 'opf' (float) variants only when explicitly allowed (LUA_USE_C99)
10 years ago
Roberto Ierusalimschy
cfa84e1232
does not use 'long long' when LUA_ANSI is set
10 years ago
Roberto Ierusalimschy
f97c64d7bf
macros 'LUA_QL'/'LUA_QL' deprecated
10 years ago
Roberto Ierusalimschy
f8e0d33b25
added "_CRT_SECURE_NO_WARNINGS" for Windows (to avoid warnings about
several standard C functions) + small changes in '#include's
10 years ago
Roberto Ierusalimschy
18014ef2fd
better handling of systems that do not support 'long long'
10 years ago
Roberto Ierusalimschy
4f4e0e49bb
easier way to compile Lua 32
10 years ago
Roberto Ierusalimschy
798660c9cd
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
10 years ago