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
Roberto Ierusalimschy
2be88d5084
'lua_Ctx' -> 'lua_Kcontext'
10 years ago
Roberto Ierusalimschy
f9037ae8c1
'ipairs' respects metamethods
10 years ago
Roberto Ierusalimschy
baa0e23456
better support for extra user space associated with a Lua state
10 years ago
Roberto Ierusalimschy
1aa4f69b51
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
10 years ago
Roberto Ierusalimschy
a77d263e86
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
deprecated
11 years ago
Roberto Ierusalimschy
54ac5960a8
LUA_MAXUNSIGNED was only used to define 2.0^intnumbits (and that
definition was not strictly portable), so it was removed and
replaced by a more correct and direct definition for 2.0^intnumbits
(only where it was needed)
11 years ago
Roberto Ierusalimschy
5784331768
new items in default path for Windows
11 years ago
Roberto Ierusalimschy
11aefa4478
details (comments)
11 years ago
Roberto Ierusalimschy
84db17b6fc
more "religious" definition for 'lua_numtointeger'
11 years ago
Roberto Ierusalimschy
c98f195eb9
function 'luaV_numtointeger' changed to a global macro
'lua_numtointeger' (tricky, small, and useful in several places)
11 years ago
Roberto Ierusalimschy
e966e53791
no more use of 'scanf' for reading numbers
11 years ago
Roberto Ierusalimschy
15e8405731
'LUA_COMPAT_ALL' -> 'LUA_COMPAT_5_1'/'LUA_COMPAT_5_2' + "@*" in
comments replaced by "@@". ("@*" is too distracting)
11 years ago
Roberto Ierusalimschy
ec11d132db
comments
11 years ago
Roberto Ierusalimschy
0172c9552c
comment
11 years ago
Roberto Ierusalimschy
c27ef1b79c
correct integer limits for Windows + small adjustments for short
option
11 years ago