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
|
09c9fa36ea
|
small corrections for C++ compliance
|
8 years ago |
Roberto Ierusalimschy
|
10b0b09555
|
do not convert decimal constants with overflow to integers.
(Therefore, they will be converted as floats)
|
9 years ago |
Roberto Ierusalimschy
|
ed110f66c5
|
'luaO_str2num' (and, therefore, 'lua_stringtonumber', 'number',
and coercions) accepts both the locale point and a dot as its
radix character
|
9 years ago |
Roberto Ierusalimschy
|
2d1d57bc18
|
comments
|
9 years ago |
Roberto Ierusalimschy
|
8c1fb91802
|
macro 'incr_top' replaced by function 'luaD_inctop'. (It is not used
in critical time pathes, can save a few bytes without the macro)
|
9 years ago |
Roberto Ierusalimschy
|
332a06bbd1
|
'luaO_pushvfstring' now uses 'incr_top' to increment top.
|
9 years ago |
Roberto Ierusalimschy
|
e89763e964
|
simpler code for 'luaO_fb2int'
|
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
|
69b5f7a410
|
some details in 'luaO_int2fb' + more consistent use of the locale
decimal point
|
10 years ago |
Roberto Ierusalimschy
|
e723c75c02
|
details (avoid 'lint' warnings)
|
10 years ago |
Roberto Ierusalimschy
|
c8d6cb0136
|
macros 'luai_num*' (for float arithmetic operations) moved to
llimits.h.
|
10 years ago |
Roberto Ierusalimschy
|
fb6796ba06
|
removed useless initializations
|
10 years ago |
Roberto Ierusalimschy
|
5fbd40dbe5
|
'x//y' extended to floats
|
10 years ago |
Roberto Ierusalimschy
|
81c39a5244
|
no need to cast '*s' to unsigned char when we know it is a digit +
no need to call 'luaO_hexavalue' for decimal digits
|
10 years ago |
Roberto Ierusalimschy
|
28fdbcf393
|
added include for 'lprefix.h', for stuff that must be added before
any other header file
|
10 years ago |
Roberto Ierusalimschy
|
59fbbf0a65
|
small simplifications in code for 'lua_strx2number'
|
10 years ago |
Roberto Ierusalimschy
|
4870194380
|
small reorganization of tests around LUA_USE_C99
|
10 years ago |
Roberto Ierusalimschy
|
bdf566a8a3
|
`name' in comments changed to 'name'
|
10 years ago |
Roberto Ierusalimschy
|
ff9ca88aa6
|
added some casts to avoid warnings in some compilers
|
10 years ago |
Roberto Ierusalimschy
|
f97c64d7bf
|
macros 'LUA_QL'/'LUA_QL' deprecated
|
10 years ago |
Roberto Ierusalimschy
|
56d4537879
|
'$c' in 'lua_pushfstring' prints non-printable characters with
their codes
|
10 years ago |
Roberto Ierusalimschy
|
c5cae9362c
|
added two casts to avoid warnings in VS
|
10 years ago |
Roberto Ierusalimschy
|
34b6664dcb
|
better to use 'long' to represent UTF-8 code points
|
10 years ago |
Roberto Ierusalimschy
|
f5c690b684
|
details in comments
|
10 years ago |
Roberto Ierusalimschy
|
34ac039fb8
|
new macro 'cvt2str' to better control whether numbers are convertible
to strings
|
10 years ago |
Roberto Ierusalimschy
|
b9dcf9974d
|
detail (typos in comments)
|
11 years ago |
Roberto Ierusalimschy
|
45c430eac0
|
addition of '.0' to float representation done by the kernel
|
11 years ago |
Roberto Ierusalimschy
|
27d9219cf3
|
no more integer exponentiation
|
11 years ago |
Roberto Ierusalimschy
|
c549d4fe64
|
'lua_strtonum' (and 'luaO_str2num') now return string size, instead of
receiving it
|
11 years ago |
Roberto Ierusalimschy
|
5388aa9fc0
|
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which converts
to float or integer according to the string syntax)
|
11 years ago |
Roberto Ierusalimschy
|
ffa43df3cd
|
'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')
|
11 years ago |
Roberto Ierusalimschy
|
e98ba351ce
|
n^-m gives float result (instead of error)
|
11 years ago |
Roberto Ierusalimschy
|
037a70dfea
|
cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from
outside (mostly for testing)
|
11 years ago |
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
|
d99ffa920d
|
new type 'LUAI_UACINT' (result of an 'usual argument conversion' of
a lua_Integer)
|
11 years ago |
Roberto Ierusalimschy
|
a8aede68c7
|
new definition for 'luai_nummod' (using 'fmod')
|
11 years ago |
Roberto Ierusalimschy
|
da4811238a
|
details (typos in comments)
|
11 years ago |
Roberto Ierusalimschy
|
5ff1c18a71
|
back with 'L' for macros 'luai_num*', but now with a new macro
'luai_numinvalidop' to protect constant folding
|
11 years ago |
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
11 years ago |
Roberto Ierusalimschy
|
4ea60463f5
|
UTF-8 encoding exported as format '%U' in 'lua_pushfstring'
|
11 years ago |
Roberto Ierusalimschy
|
86dd8bf3f5
|
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
|
11 years ago |
Roberto Ierusalimschy
|
1ea2d20f74
|
first implementation of '<<', '>>', and '~' (bitwise not)
|
11 years ago |
Roberto Ierusalimschy
|
c0edab0f6d
|
first implementation of bitwise operators '&' (band), '|' (bor),
and '~' (bxor)
|
11 years ago |
Roberto Ierusalimschy
|
a8f8c7fd80
|
integer exponentiation with negative exponent is invalid
|
11 years ago |
Roberto Ierusalimschy
|
2f8c51a552
|
use unsigneds for unary minus, too
|
11 years ago |
Roberto Ierusalimschy
|
e39da66c8c
|
macro 'lua_strx2number' does not need to be global
|
12 years ago |
Roberto Ierusalimschy
|
6fb0b11350
|
string contatenation handles conversion of integers to strings +
floats always format as floats (with decimal dot or exponent)
|
12 years ago |
Roberto Ierusalimschy
|
ee865b9fe7
|
new implementation for 'lua_strx2number' to correct small
problems with numbers like 0x10000...000p-100
|
12 years ago |