Roberto Ierusalimschy
c077d47465
does not define _XOPEN_SOURCE when LUA_USE_C89 is defined + defining
_XOPEN_SOURCE==0 undefines that macro
10 years ago
Roberto Ierusalimschy
8e5290d81e
all "divisions" (div,idiv,mod) by zero are not folded, to avoid
problems during compilation + does not fold zero results, as they
can collapse with -0.0 and the ANSI test to distinguish both needs
a division by zero (which we are trying to avoid) + removed macro
'luai_numinvalidop' (as its main use case were divisions by zero)
10 years ago
Roberto Ierusalimschy
a1c37f834a
detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division)
10 years ago
Roberto Ierusalimschy
1a7868c1d5
bug: 'random' limit is 2^31-1, not RAND_MAX
10 years ago
Roberto Ierusalimschy
de3933480e
details
10 years ago
Roberto Ierusalimschy
50e2eb8954
change in macro 'vmcase', avoding code inside it. (Code inside the
macro harms tools such as debuggers.)
10 years ago
Roberto Ierusalimschy
94eb37dc73
new year (2015)
10 years ago
Roberto Ierusalimschy
900bdd5761
detail (to avoid warnings)
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
fb6796ba06
removed useless initializations
10 years ago
Roberto Ierusalimschy
88ef06f4f3
comments were wrong (not updated about several changes)
10 years ago
Roberto Ierusalimschy
eb45f3a9b6
details in 'luaM_reallocvchar'
10 years ago
Roberto Ierusalimschy
6321041058
new macro 'luaM_reallocvchar' to allocate arrays of chars (avoids
uneeded tests and respective warnings)
10 years ago
Roberto Ierusalimschy
2b83711fba
new macro 'nvalue' (to convert an object to a float when we know
object is a number)
10 years ago
Roberto Ierusalimschy
3ae21a352c
detail (in test for 'luai_numinvalidop', use a round float)
10 years ago
Roberto Ierusalimschy
570143bf88
comment
10 years ago
Roberto Ierusalimschy
1465edf341
old Visual Studio versions did not support 'noreturn' attribute
10 years ago
Roberto Ierusalimschy
77e786d436
stupid bug in T.stacklevel (not in use by the tests)
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
151dc5cc5f
traverse loaded modules (instead of globals) for a name for a function +
removes prefix '_G.' from names (if present)
10 years ago
Roberto Ierusalimschy
0b6cfea005
comments
10 years ago
Roberto Ierusalimschy
c8da3fbc35
in traceback names, give preference to 'name' over '_G.name'
10 years ago
Roberto Ierusalimschy
c96cd1c647
reinsertion-control macro renamed: lconfig_h -> luaconf_h
10 years ago
Roberto Ierusalimschy
57e91b4159
correct computation for limit in 'getnum'
10 years ago
Roberto Ierusalimschy
ef7d29c666
better limits for 'sting.rep' and 'string.packsize'
10 years ago
Roberto Ierusalimschy
81ecaf6178
new specifiers in 'strftime' are defined in C99 (not Posix)
10 years ago
Roberto Ierusalimschy
27ab59bc16
'ipairs' needs an argument
10 years ago
Roberto Ierusalimschy
bd8ce7e331
macro 'LUA_C89_NUMBERS' makes a little easier to use C89 numerical types
10 years ago
Roberto Ierusalimschy
5c519a69d3
new function 'string.packsize'
10 years ago
Roberto Ierusalimschy
6f54b07663
give preference to global names in tracebacks
10 years ago
Roberto Ierusalimschy
741ad97e92
new parameter for testC instruction 'pcall' (error handler)
10 years ago
Roberto Ierusalimschy
b4633c586b
error handler does not need to be a function (can be a callable
object)
10 years ago
Roberto Ierusalimschy
5fae2a5b05
redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster
10 years ago
Roberto Ierusalimschy
36efa6a6b9
no more 'preloadedlibs' when opening libraries (as it is dead code now)
10 years ago
Roberto Ierusalimschy
c6e74e41c9
handle case where function was called as a hook
10 years ago
Roberto Ierusalimschy
6909b5a2b4
In 'debug.gethook', does not query hook table (which may not exist) if
there is no hook set
10 years ago
Roberto Ierusalimschy
594d7266af
'assert' checks that it has (at least) one parameter + 'assert' ensures
it passes only one value to 'error'
10 years ago
Roberto Ierusalimschy
ab4a890d04
use 'namewhat' when building a traceback
10 years ago
Roberto Ierusalimschy
64e25a6186
avoid octal numerals
10 years ago
Roberto Ierusalimschy
460968353f
in test mode, debug library is not predefined (to allow testing
'preloadedlibs')
10 years ago
Roberto Ierusalimschy
32a1f54b9a
no more default size for option 'c' in pack/unpack
10 years ago
Roberto Ierusalimschy
6df197ec15
some functions from test module must be exported
10 years ago
Roberto Ierusalimschy
177807f21e
casts ('(int)' -> 'cast_int')
10 years ago
Roberto Ierusalimschy
92f02fff11
bug: lua_tounsignedx must cast to lua_Unsigned (of course...)
10 years ago
Roberto Ierusalimschy
125296c83d
next release won't be beta
10 years ago
Roberto Ierusalimschy
9c41d9d1df
removed unneeded barrier ('from' must be white)
10 years ago
Roberto Ierusalimschy
ad79eafe86
details (comments)
10 years ago
Roberto Ierusalimschy
fd179ab4b8
clearer notation for "compare" instruction
10 years ago
Roberto Ierusalimschy
bf163ea7f0
bug ('#3' causes seg. fault in 5.3-beta) + comments + 'codearith' ->
'codeexpval' (confusion about what operations function accept was
one of the reasons for the bug)
10 years ago