Roberto Ierusalimschy
|
e2b15aa21d
|
janitor work on casts
|
2018-01-28 13:13:26 -02:00 |
|
Roberto Ierusalimschy
|
a9295a2b8e
|
typos in comments
|
2017-12-30 18:46:18 -02:00 |
|
Roberto Ierusalimschy
|
599f1742c6
|
detail (typo in comments)
|
2017-11-23 17:29:04 -02:00 |
|
Roberto Ierusalimschy
|
e4e5aa85a2
|
detail ('signal' -> 'sign' in comments)
|
2017-11-16 11:19:06 -02:00 |
|
Roberto Ierusalimschy
|
26679ea35b
|
new function 'luaV_flttointeger' to convert floats to integers (without
string coercions) + string operands to bitwise operations handled
by string metamethods
|
2017-11-08 12:50:23 -02:00 |
|
Roberto Ierusalimschy
|
911f1e3e7f
|
raw operation should not convert strings to numbers
|
2017-10-10 17:05:40 -03:00 |
|
Roberto Ierusalimschy
|
4dff277255
|
coercion string->number in arithmetic operations moved to string
library
|
2017-07-07 13:34:32 -03:00 |
|
Roberto Ierusalimschy
|
f96497397a
|
new type 'StackValue' for stack elements
(we may want to put extra info there in the future)
|
2017-06-29 12:06:44 -03:00 |
|
Roberto Ierusalimschy
|
a9dbc2d641
|
assert removed in 'luaO_arith'
(nobody calls it with L==NULL)
|
2017-05-24 10:47:11 -03:00 |
|
Roberto Ierusalimschy
|
a45945b6d5
|
new macro 'lua_pointer2str' to encapsulate use of 'l_sprintf' inside
the kernel
|
2017-04-19 13:34:35 -03:00 |
|
Roberto Ierusalimschy
|
2a235312f0
|
detail (removing spaces at end of lines)
|
2016-12-22 11:08:50 -02:00 |
|
Roberto Ierusalimschy
|
09c9fa36ea
|
small corrections for C++ compliance
|
2016-06-27 10:15:08 -03:00 |
|
Roberto Ierusalimschy
|
10b0b09555
|
do not convert decimal constants with overflow to integers.
(Therefore, they will be converted as floats)
|
2016-05-20 11:07:48 -03:00 |
|
Roberto Ierusalimschy
|
ed110f66c5
|
'luaO_str2num' (and, therefore, 'lua_stringtonumber', 'number',
and coercions) accepts both the locale point and a dot as its
radix character
|
2016-05-02 11:00:32 -03:00 |
|
Roberto Ierusalimschy
|
2d1d57bc18
|
comments
|
2015-12-14 09:53:27 -02:00 |
|
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)
|
2015-11-02 14:09:30 -02:00 |
|
Roberto Ierusalimschy
|
332a06bbd1
|
'luaO_pushvfstring' now uses 'incr_top' to increment top.
|
2015-11-02 12:02:35 -02:00 |
|
Roberto Ierusalimschy
|
e89763e964
|
simpler code for 'luaO_fb2int'
|
2015-06-26 16:32:07 -03:00 |
|
Roberto Ierusalimschy
|
19eb6ae580
|
using 'snprintf' in C99 (both for documentation of buffer sizes
and some complains from tools)
|
2015-06-18 11:26:05 -03:00 |
|
Roberto Ierusalimschy
|
69b5f7a410
|
some details in 'luaO_int2fb' + more consistent use of the locale
decimal point
|
2015-04-11 15:30:08 -03:00 |
|
Roberto Ierusalimschy
|
e723c75c02
|
details (avoid 'lint' warnings)
|
2015-03-28 16:14:47 -03:00 |
|
Roberto Ierusalimschy
|
c8d6cb0136
|
macros 'luai_num*' (for float arithmetic operations) moved to
llimits.h.
|
2015-02-05 15:15:33 -02:00 |
|
Roberto Ierusalimschy
|
fb6796ba06
|
removed useless initializations
|
2014-12-26 12:43:45 -02:00 |
|
Roberto Ierusalimschy
|
5fbd40dbe5
|
'x//y' extended to floats
|
2014-11-21 10:15:57 -02:00 |
|
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
|
2014-11-04 17:16:25 -02:00 |
|
Roberto Ierusalimschy
|
28fdbcf393
|
added include for 'lprefix.h', for stuff that must be added before
any other header file
|
2014-11-02 17:19:04 -02:00 |
|
Roberto Ierusalimschy
|
59fbbf0a65
|
small simplifications in code for 'lua_strx2number'
|
2014-10-28 16:41:38 -02:00 |
|
Roberto Ierusalimschy
|
4870194380
|
small reorganization of tests around LUA_USE_C99
|
2014-10-27 17:21:56 -02:00 |
|
Roberto Ierusalimschy
|
bdf566a8a3
|
`name' in comments changed to 'name'
|
2014-10-25 09:50:46 -02:00 |
|
Roberto Ierusalimschy
|
ff9ca88aa6
|
added some casts to avoid warnings in some compilers
|
2014-10-24 09:42:29 -02:00 |
|
Roberto Ierusalimschy
|
f97c64d7bf
|
macros 'LUA_QL'/'LUA_QL' deprecated
|
2014-10-17 13:28:21 -03:00 |
|
Roberto Ierusalimschy
|
56d4537879
|
'$c' in 'lua_pushfstring' prints non-printable characters with
their codes
|
2014-10-10 19:23:04 -03:00 |
|
Roberto Ierusalimschy
|
c5cae9362c
|
added two casts to avoid warnings in VS
|
2014-10-04 19:57:10 -03:00 |
|
Roberto Ierusalimschy
|
34b6664dcb
|
better to use 'long' to represent UTF-8 code points
|
2014-10-01 08:52:33 -03:00 |
|
Roberto Ierusalimschy
|
f5c690b684
|
details in comments
|
2014-08-01 14:24:02 -03:00 |
|
Roberto Ierusalimschy
|
34ac039fb8
|
new macro 'cvt2str' to better control whether numbers are convertible
to strings
|
2014-07-30 11:00:14 -03:00 |
|
Roberto Ierusalimschy
|
b9dcf9974d
|
detail (typos in comments)
|
2014-06-30 16:48:08 -03:00 |
|
Roberto Ierusalimschy
|
45c430eac0
|
addition of '.0' to float representation done by the kernel
|
2014-05-12 18:44:17 -03:00 |
|
Roberto Ierusalimschy
|
27d9219cf3
|
no more integer exponentiation
|
2014-05-12 18:22:05 -03:00 |
|
Roberto Ierusalimschy
|
c549d4fe64
|
'lua_strtonum' (and 'luaO_str2num') now return string size, instead of
receiving it
|
2014-05-01 15:18:06 -03:00 |
|
Roberto Ierusalimschy
|
5388aa9fc0
|
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which converts
to float or integer according to the string syntax)
|
2014-04-30 13:48:44 -03:00 |
|
Roberto Ierusalimschy
|
ffa43df3cd
|
'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')
|
2014-04-29 15:14:16 -03:00 |
|
Roberto Ierusalimschy
|
e98ba351ce
|
n^-m gives float result (instead of error)
|
2014-04-27 11:41:11 -03:00 |
|
Roberto Ierusalimschy
|
037a70dfea
|
cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from
outside (mostly for testing)
|
2014-04-15 13:32:49 -03:00 |
|
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
|
2014-04-15 11:29:30 -03:00 |
|
Roberto Ierusalimschy
|
d99ffa920d
|
new type 'LUAI_UACINT' (result of an 'usual argument conversion' of
a lua_Integer)
|
2014-04-11 16:53:45 -03:00 |
|
Roberto Ierusalimschy
|
a8aede68c7
|
new definition for 'luai_nummod' (using 'fmod')
|
2014-04-09 14:05:11 -03:00 |
|
Roberto Ierusalimschy
|
da4811238a
|
details (typos in comments)
|
2014-03-21 10:52:33 -03:00 |
|
Roberto Ierusalimschy
|
5ff1c18a71
|
back with 'L' for macros 'luai_num*', but now with a new macro
'luai_numinvalidop' to protect constant folding
|
2014-03-06 13:15:18 -03:00 |
|
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
2014-02-26 12:27:56 -03:00 |
|