Roberto Ierusalimschy
|
8f961da3db
|
macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that
should be used only between lua_Integer and lua_Unsigned
|
11 years ago |
Roberto Ierusalimschy
|
5c46b7b8cf
|
instructions in 'runC' sorted alphabetically + new instructions
'tointeger'/'tounsigned'
|
11 years ago |
Roberto Ierusalimschy
|
a2c094fe2d
|
size of strings in 'string.rep' should be limited by the size of
lua_Integer, not of 'int'
|
11 years ago |
Roberto Ierusalimschy
|
f767f29d87
|
using predefined limits (instead of computing min/max values for each
type) + some comments
|
11 years ago |
Roberto Ierusalimschy
|
675530c4d8
|
maximum size of array part of a table now is restricted not only by
the size of an 'int', but also by the size of a 'lua_Integer'
|
11 years ago |
Roberto Ierusalimschy
|
ab964ad7c6
|
new macro LUA_MAXUNSIGNED + support for 'short' integers (for tests only)
|
11 years ago |
Roberto Ierusalimschy
|
ef789d4161
|
new global macro 'LUA_MAXUNSIGNED'
|
11 years ago |
Roberto Ierusalimschy
|
b390d7c168
|
detail (avoid "casting down" in case lua_Integer is smaller than int)
|
11 years ago |
Roberto Ierusalimschy
|
218f358461
|
errors like 1e100 << "2" were giving wrong messages
|
11 years ago |
Roberto Ierusalimschy
|
bf06e22b6a
|
correct definition for 'MAX_SIZE' (using singed integers as the limit,
not unsigned ones) + new type 'l_uacInt'
|
11 years ago |
Roberto Ierusalimschy
|
d99ffa920d
|
new type 'LUAI_UACINT' (result of an 'usual argument conversion' of
a lua_Integer)
|
11 years ago |
Roberto Ierusalimschy
|
2771050dfa
|
'MIN/MAX_INTEGER' replaced by 'LUA_MIN/MAXINTEGER'
|
11 years ago |
Roberto Ierusalimschy
|
e1daf10e4c
|
details in comments
|
11 years ago |
Roberto Ierusalimschy
|
115fa77009
|
maximum size for dump of integers is size of lua_Integer (which
means that there is no overflows when undumping)
|
11 years ago |
Roberto Ierusalimschy
|
561030c211
|
pack/unpack functions renamed dump/undump
|
11 years ago |
Roberto Ierusalimschy
|
5336cc9d6a
|
math.random: use 'random' when available + changes to work correctly
for any integer interval (up to [minint,maxint])
|
11 years ago |
Roberto Ierusalimschy
|
fdd137276b
|
more precision for PI + no more RADIANS_PER_DEGREE +
'min/maxint' -> 'min/maxinteger'
|
11 years ago |
Roberto Ierusalimschy
|
a8aede68c7
|
new definition for 'luai_nummod' (using 'fmod')
|
11 years ago |
Roberto Ierusalimschy
|
c7859a046d
|
using 'volatile' in 'tofloat' to ensure result has the same precision
(lua_Number) of other computations
|
11 years ago |
Roberto Ierusalimschy
|
4a24883674
|
'GCmemtrav' does not need to track the entire collection, only each
single step individually
|
11 years ago |
Roberto Ierusalimschy
|
9737832641
|
'int' -> 'lua_Integer' in several functions
|
11 years ago |
Roberto Ierusalimschy
|
8b45d9806a
|
new constants 'math.maxint'/'math.minint'
|
11 years ago |
Roberto Ierusalimschy
|
be52f784d9
|
new macros LUA_MAXINTEGER/LUA_MININTEGER
|
11 years ago |
Roberto Ierusalimschy
|
144afa4d47
|
several changes in 'utf8.offset'
|
11 years ago |
Roberto Ierusalimschy
|
007f66408d
|
bug: compiler can optimize away overflow check in 'table.concat'
|
11 years ago |
Roberto Ierusalimschy
|
48c745a611
|
avoid constant overflow when shifting left signed integers until
their last bit
|
11 years ago |
Roberto Ierusalimschy
|
3a044de5a1
|
new implementation for 'utf8.len'
|
11 years ago |
Roberto Ierusalimschy
|
7d514af0bc
|
bug (in work version): comparisons should not try to convert
strings to numbers
|
11 years ago |
Roberto Ierusalimschy
|
f61ceee708
|
LUAI_FUNC is being used only in header files
|
11 years ago |
Roberto Ierusalimschy
|
5aeb57f11f
|
detail (error message for conversion from float to integer)
|
11 years ago |
Roberto Ierusalimschy
|
493b3fdd65
|
added an 'api_check' for negative sizes in 'lua_checkstack'
|
11 years ago |
Roberto Ierusalimschy
|
315c5bf7b7
|
bug: compiler could optimize away overflow check (+ changing indices
from 'int' to 'lua_Integer')
|
11 years ago |
Roberto Ierusalimschy
|
607be77ec8
|
some details to avoid warnings
|
11 years ago |
Roberto Ierusalimschy
|
0d745ed04c
|
more precise estimation (GCestimate) for total bytes in use after
a GC cycle
|
11 years ago |
Roberto Ierusalimschy
|
3d1c6730da
|
detail ('1U' -> '1u', like other unsigned constants in the code)
|
11 years ago |
Roberto Ierusalimschy
|
66b7b9b582
|
math.abs, math.max, and math.min work for integers, too.
|
11 years ago |
Roberto Ierusalimschy
|
8ef9117924
|
fancier way to do sign extension
|
11 years ago |
Roberto Ierusalimschy
|
ea69f17d98
|
macro 'tostring' is used only by 'luaV_concat'
|
11 years ago |
Roberto Ierusalimschy
|
420cc62fac
|
missplelling in comments/function names (endianess -> endianness)
|
11 years ago |
Roberto Ierusalimschy
|
1a3ebc203a
|
definition of LUA_REAL_* and LUA_INT_* moved to the beginning of
configurations
|
11 years ago |
Roberto Ierusalimschy
|
2d5e2212d4
|
native lua_Number may be neither float nor double (in pack/unpackfloat)
|
11 years ago |
Roberto Ierusalimschy
|
da4811238a
|
details (typos in comments)
|
11 years ago |
Roberto Ierusalimschy
|
f96872a534
|
copyright year -> 2014
|
11 years ago |
Roberto Ierusalimschy
|
738b3b64af
|
detail (to avoid warnings with '-O3')
|
11 years ago |
Roberto Ierusalimschy
|
363b525c23
|
does not create library when it is deprecated
|
11 years ago |
Roberto Ierusalimschy
|
469daa16ee
|
configuration for Lua type corresponding to 'time_t'
|
11 years ago |
Roberto Ierusalimschy
|
7707f3e7c3
|
'posrelat' -> 'u_posrelat' (to avoid name conflict in 'one.c')
|
11 years ago |
Roberto Ierusalimschy
|
16f8e44924
|
with 64-bit integers, file offsets do not need to be floats
|
11 years ago |
Roberto Ierusalimschy
|
2f5f77788f
|
removed function 'luaS_eqstr' (not used anywhere)
|
11 years ago |
Roberto Ierusalimschy
|
ed795d5ff4
|
detail (removed unused prototype)
|
11 years ago |