Roberto Ierusalimschy
319ccfefbc
computations in numerical for loop must avoid overflows too
9 years ago
Roberto Ierusalimschy
6a8400ba4f
using 'clang' by default + changes in warnings ('old-style-declaration'
removed because it is included in 'extra' + 'strict-aliasing' removed
because it is included in 'all' + 'aggregate-return' removed because
no one would do it by mistake)
9 years ago
Roberto Ierusalimschy
2de3361c6c
detail
9 years ago
Roberto Ierusalimschy
e89763e964
simpler code for 'luaO_fb2int'
10 years ago
Roberto Ierusalimschy
be63d995c1
tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand')
to discard first value
10 years ago
Roberto Ierusalimschy
2b1fc1b38c
with string cache, it is not that important for 'type' to avoid
'lua_pushstring'
10 years ago
Roberto Ierusalimschy
f01c12c891
detail (cast to avoid mixing types in conditional expression)
10 years ago
Roberto Ierusalimschy
5aabb7a891
buffer size changed from size_t to int (it is always small) +
comments + assert that printf result fits in given buffer
10 years ago
Roberto Ierusalimschy
cb1e451999
detail
10 years ago
Roberto Ierusalimschy
43cff79bf7
detail
10 years ago
Roberto Ierusalimschy
95c3144393
redefine 'l_sprintf' to test correctness of buffer sizes given
to 'snprintf'
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
cbe05b48bb
using 'lua_longassert' to avoid warnings
10 years ago
Roberto Ierusalimschy
e7f34ad395
better implementation for buffers (reallocated memory directly
with allocation function; generates much less garbage)
10 years ago
Roberto Ierusalimschy
a5cbb7c3a7
detail (i + 1 > exp is simply i >= exp)
10 years ago
Roberto Ierusalimschy
dcad08b76d
details (use original type when saving variable's value)
10 years ago
Roberto Ierusalimschy
afbf5c5dab
missing ']]' in long string
10 years ago
Roberto Ierusalimschy
a1415c0d72
bug in order NaN x int (tests must ensure that NaN does not get
converted to integer)
10 years ago
Roberto Ierusalimschy
2ecaf18138
using macros ('rttype' and 'settt_') to access "private" field 'tt_'
10 years ago
Roberto Ierusalimschy
cbef15f3ea
comment (FALLTHROUGH position)
10 years ago
Roberto Ierusalimschy
16e8bb360b
comment
10 years ago
Roberto Ierusalimschy
6628012e9e
new release number (5.3.1)
10 years ago
Roberto Ierusalimschy
ed1fe28bb8
When comparing integers with floats, use float as common type when
possible (i.e., when integer fits in a float without losses); seems
to be more efficient in architectures with native support for used
Lua numbers
10 years ago
Roberto Ierusalimschy
6645bb2df4
'strcache' elements as arrays of 1 element hints that cache can
be n-way (instead of direct mapped)
10 years ago
Roberto Ierusalimschy
02aed045de
bug: return hook may not see correct values for active local variables
when function returns
10 years ago
Roberto Ierusalimschy
72bd2ef6c5
dependencies updated
10 years ago
Roberto Ierusalimschy
d39bb51faa
bug: interpreter cannot pop activation frame before calling return
hook (as it may want to access local variables active by the end
of the function)
10 years ago
Roberto Ierusalimschy
6142e663e4
reuse of 'addinfo' by lexical errors
10 years ago
Roberto Ierusalimschy
6dc20ff293
'l <= r' for numbers has its own function, instead of using
'not (r < l)' (seems to be slightly more efficient)
10 years ago
Roberto Ierusalimschy
99391e24ea
new configuration macro 'l_mathlim' (simplifies some dependencies
on float type)
10 years ago
Roberto Ierusalimschy
0ec12c1bd1
new semantics for numerical order (following math regardless
representation)
10 years ago
Roberto Ierusalimschy
a71c0ab861
detail (removed useless '#include')
10 years ago
Roberto Ierusalimschy
04ba6ea83b
new semantics for equality int-float
10 years ago
Roberto Ierusalimschy
a1935b9cba
error message ("too complex" -> "too many registers") + MAXREGS
changed to 255 (no reason not to use maximum allowed)
10 years ago
Roberto Ierusalimschy
513c639bf9
patch for last bug corrected to be against last released version
(and not against last version in RCS...)
10 years ago
Roberto Ierusalimschy
69b5f7a410
some details in 'luaO_int2fb' + more consistent use of the locale
decimal point
10 years ago
Roberto Ierusalimschy
ae76c39712
Bug: suspended '__le' metamethod can give wrong result
10 years ago
Roberto Ierusalimschy
0d4a1f71db
re-organization of initial configuration options
10 years ago
Roberto Ierusalimschy
67bf789462
avoid using API functions inside the core
10 years ago
Roberto Ierusalimschy
48d0674c2e
more consistent use of locale radix character across Lua
10 years ago
Roberto Ierusalimschy
6ffe006f5c
detail (removed unused macro VARBITS)
10 years ago
Roberto Ierusalimschy
4998e852ec
new function 'log2' to test 'luaO_ceillog2' (if needed)
10 years ago
Roberto Ierusalimschy
65ac789565
detail (comment)
10 years ago
Roberto Ierusalimschy
cfc84c856d
'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float')
10 years ago
Roberto Ierusalimschy
63720a4290
janitor work (comments, variable names, some other details)
10 years ago
Roberto Ierusalimschy
484bf14a6b
calls to 'luaC_checkGC' in luaD_precall moved near to 'luaD_checkstack'
(which is what can need memory)
10 years ago
Roberto Ierusalimschy
abb2f5511d
detail ('b + base' -> 'base + b' to follow all other similar uses)
10 years ago
Roberto Ierusalimschy
fcc6e1220e
avoid expression with side effect (in debug mode) inside 'sizeof'
10 years ago
Roberto Ierusalimschy
3a91274547
details (avoid 'lint' warnings)
10 years ago
Roberto Ierusalimschy
f2a813ae10
details (avoid some 'lint' warnings)
10 years ago