Roberto Ierusalimschy
|
4ba0cb4580
|
always use macros to operate on lua_Numbers
|
2015-03-07 16:30:16 -03:00 |
|
Roberto Ierusalimschy
|
6408bc0b7f
|
new macros 'chgfltvalue'/'chgivalue' (numerical for loop does
not need to set the type of its internal variable at each iteration)
|
2015-03-02 13:04:52 -03:00 |
|
Roberto Ierusalimschy
|
81245b1ad5
|
'numisinteger' (for table keys) replaced by 'luaV_tointeger' (old
'tointeger_aux'), which can do the same job.
|
2015-02-20 12:27:53 -02: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
|
7e2015a46d
|
size of short strings stored in a single byte, to reduce the size
of struct 'TString'
|
2015-01-16 14:54:37 -02:00 |
|
Roberto Ierusalimschy
|
50e2eb8954
|
change in macro 'vmcase', avoding code inside it. (Code inside the
macro harms tools such as debuggers.)
|
2014-12-27 18:30:38 -02:00 |
|
Roberto Ierusalimschy
|
2b83711fba
|
new macro 'nvalue' (to convert an object to a float when we know
object is a number)
|
2014-12-19 11:36:32 -02:00 |
|
Roberto Ierusalimschy
|
049cf14cf9
|
'x//y' extended to floats + more comments about module and floor
division operations
|
2014-11-21 10:15:00 -02:00 |
|
Roberto Ierusalimschy
|
5d628519d3
|
simpler definition for 'luaV_tonumber_'
|
2014-11-19 13:05:15 -02:00 |
|
Roberto Ierusalimschy
|
bde14c3adc
|
macro to change method of conversion from float to integer (make it
use floor intead of requiring an exact integral value)
|
2014-11-03 18:07:47 -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
|
bdf566a8a3
|
`name' in comments changed to 'name'
|
2014-10-25 09:50:46 -02:00 |
|
Roberto Ierusalimschy
|
463edee2fd
|
'lua_numtointeger' -> 'lua_numbertointeger'
|
2014-10-24 09:42:06 -02:00 |
|
Roberto Ierusalimschy
|
f97c64d7bf
|
macros 'LUA_QL'/'LUA_QL' deprecated
|
2014-10-17 13:28:21 -03:00 |
|
Roberto Ierusalimschy
|
3a15c7ce43
|
size for array part of a table ('sizearray') changed from 'int' to
'unsigned int', which allows twice as many elements in the array part
|
2014-09-04 15:15:29 -03:00 |
|
Roberto Ierusalimschy
|
d861706620
|
new macro 'cvt2num' to better control whether strings are convertible
to numbers
|
2014-07-30 11:42:44 -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
|
17ee57f8e0
|
'iswhite' and related macros now can work directly on any object
(no need to convert to 'GCObject')
|
2014-07-21 13:02:10 -03:00 |
|
Roberto Ierusalimschy
|
ca41b43f53
|
type 'TString' refers directly to the structure inside the union
(union used only for size purposes)
|
2014-07-18 10:36:14 -03:00 |
|
Roberto Ierusalimschy
|
8bb272a3e3
|
new conversion float->integer: conversion is valid only when
float has an exact representation as an integer
|
2014-07-17 09:30:53 -03:00 |
|
Roberto Ierusalimschy
|
b9dcf9974d
|
detail (typos in comments)
|
2014-06-30 16:48:08 -03:00 |
|
Roberto Ierusalimschy
|
89b56e7d84
|
more precision between closure types ('LClosure' x 'CClosure')
|
2014-06-19 15:27:20 -03:00 |
|
Roberto Ierusalimschy
|
1a3656e56e
|
more relaxed rules for __eq metamethod (more similar to other
operators)
|
2014-06-10 15:53:18 -03:00 |
|
Roberto Ierusalimschy
|
c98f195eb9
|
function 'luaV_numtointeger' changed to a global macro
'lua_numtointeger' (tricky, small, and useful in several places)
|
2014-05-26 14:10:22 -03:00 |
|
Roberto Ierusalimschy
|
36715ab7c1
|
detail (comment)
|
2014-05-23 15:32:21 -03:00 |
|
Roberto Ierusalimschy
|
8a0acf0898
|
comments
|
2014-05-20 11:12:59 -03:00 |
|
Roberto Ierusalimschy
|
3e977f02ac
|
added a few comments
|
2014-05-15 17:08:32 -03:00 |
|
Roberto Ierusalimschy
|
f8daddba50
|
added a compat option (although it will be off by default) to
the addition of '.0' to float->string conversions
|
2014-05-14 16:47:11 -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
|
12bd01c567
|
added comments to several functions
|
2014-05-12 16:13:32 -03:00 |
|
Roberto Ierusalimschy
|
06dc893f88
|
in 'for' loops, make the limit an integer whenever initial value and
step are integers
|
2014-05-09 11:20:52 -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
|
ddff6ecf30
|
function 'limittointeger' no needed (now that 'tointeger_aux' handles
integers too)
|
2014-04-30 16:29:51 -03:00 |
|
Roberto Ierusalimschy
|
1a6ef098b0
|
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' plus proper
conversion from strings to integers
|
2014-04-30 13:50:16 -03:00 |
|
Roberto Ierusalimschy
|
b123a88673
|
merge of common parts from 'limittointeger' and 'luaV_tointeger_'
|
2014-04-29 17:06:05 -03:00 |
|
Roberto Ierusalimschy
|
ffa43df3cd
|
'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')
|
2014-04-29 15:14:16 -03:00 |
|
Roberto Ierusalimschy
|
9c4398de8f
|
'for' loop tries to convert limit to integer when initial value and
step are integers
|
2014-04-29 15:11:57 -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
|
2771050dfa
|
'MIN/MAX_INTEGER' replaced by 'LUA_MIN/MAXINTEGER'
|
2014-04-11 16:02:16 -03:00 |
|
Roberto Ierusalimschy
|
a8aede68c7
|
new definition for 'luai_nummod' (using 'fmod')
|
2014-04-09 14:05:11 -03:00 |
|
Roberto Ierusalimschy
|
c7859a046d
|
using 'volatile' in 'tofloat' to ensure result has the same precision
(lua_Number) of other computations
|
2014-04-08 11:28:04 -03:00 |
|
Roberto Ierusalimschy
|
7d514af0bc
|
bug (in work version): comparisons should not try to convert
strings to numbers
|
2014-04-02 13:54:20 -03:00 |
|
Roberto Ierusalimschy
|
3d1c6730da
|
detail ('1U' -> '1u', like other unsigned constants in the code)
|
2014-03-31 16:18:24 -03:00 |
|
Roberto Ierusalimschy
|
ea69f17d98
|
macro 'tostring' is used only by 'luaV_concat'
|
2014-03-31 15:37:52 -03:00 |
|
Roberto Ierusalimschy
|
114d10cbc5
|
detail (comment)
|
2014-03-15 09:29:48 -03:00 |
|
Roberto Ierusalimschy
|
9f3f5b6f41
|
details
|
2014-03-14 13:54:08 -03:00 |
|
Roberto Ierusalimschy
|
cd12410195
|
new macro 'cast_void'
|
2014-03-07 13:19:00 -03:00 |
|