Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | avoid undefined shift of LUA_NBITS in rotate operation | Roberto Ierusalimschy | 2013-07-09 | 1 | -2/+3 | |
| | ||||||
* | no need for type 'b_uint' (lua_Unsigned must have at least 32 bits) | Roberto Ierusalimschy | 2013-07-09 | 1 | -20/+17 | |
| | ||||||
* | When loading a file, Lua may call the reader function again after | Roberto Ierusalimschy | 2013-07-05 | 1 | -2/+78 | |
| | | | | it returned end of input + luac listings choke on long strings | |||||
* | 'tonumber': base must be a number | Roberto Ierusalimschy | 2013-07-05 | 1 | -2/+2 | |
| | ||||||
* | 'tonumber': does not accept numbers when given a base + convertion from | Roberto Ierusalimschy | 2013-07-05 | 1 | -26/+43 | |
| | | | | | strings to numbers with a base moved to a separated function (more modular) | |||||
* | 'lua_cvtonum' -> 'lua_strtonum'; converts only strings to numbers | Roberto Ierusalimschy | 2013-07-05 | 2 | -21/+14 | |
| | ||||||
* | new function 'ifloor' | Roberto Ierusalimschy | 2013-07-03 | 1 | -1/+14 | |
| | ||||||
* | no need to check "bad conversion number->int;" in luaL_checkversion, | Roberto Ierusalimschy | 2013-06-27 | 2 | -16/+14 | |
| | | | | | | as now Lua does not use tricks for the conversion, but there is a need to check the sizes of number types, as they can be different in two modules | |||||
* | 'numbits' moved from 'math' to 'debug' library | Roberto Ierusalimschy | 2013-06-25 | 2 | -15/+15 | |
| | ||||||
* | LUA_SMALL_* changed to LUA_*SIZE + added support for long double + better | Roberto Ierusalimschy | 2013-06-25 | 1 | -24/+40 | |
| | | | | support for ANSI systems | |||||
* | macro 'lua_strx2number' does not need to be global | Roberto Ierusalimschy | 2013-06-25 | 1 | -1/+13 | |
| | ||||||
* | avoid using raw representation of numbers for hashing, as number may | Roberto Ierusalimschy | 2013-06-25 | 1 | -15/+25 | |
| | | | | | not use all its space (e.g., long double can have sizeof=12 but use only 10 bytes) | |||||
* | 'luaL_len' returns lua_Integer instead of 'int' | Roberto Ierusalimschy | 2013-06-25 | 2 | -7/+7 | |
| | ||||||
* | avoid using 'modf' in the implementation of 'math.modf', to avoid | Roberto Ierusalimschy | 2013-06-25 | 1 | -10/+12 | |
| | | | | | problems with 'double*'. (When using 'float' as lua_Number, 'float*' is not compatible with 'double*'...) | |||||
* | 'long' may have more than 32 bits in some machines; use 'int' for | Roberto Ierusalimschy | 2013-06-21 | 1 | -5/+12 | |
| | | | | small lua_Integer unless necessary to use 'long' | |||||
* | small bugs uncovered in a 64-bit machine (where 'long' has 64 bits) | Roberto Ierusalimschy | 2013-06-21 | 1 | -3/+3 | |
| | ||||||
* | try to avoid warnings when converting int to pointer | Roberto Ierusalimschy | 2013-06-20 | 1 | -2/+3 | |
| | ||||||
* | reorganization of warnings + update of explicit dependencies (gcc -MM) | Roberto Ierusalimschy | 2013-06-20 | 1 | -7/+10 | |
| | ||||||
* | In the table that hashes constants, use a light userdata as keys | Roberto Ierusalimschy | 2013-06-20 | 1 | -9/+9 | |
| | | | | | to integer values to avoid collisions with floats with the same numerical value | |||||
* | avoid warning for unary minus over an unsigned value | Roberto Ierusalimschy | 2013-06-20 | 1 | -2/+2 | |
| | ||||||
* | added "reasonable" limit for 'string.rep' (otherwise it is too easy | Roberto Ierusalimschy | 2013-06-20 | 1 | -3/+8 | |
| | | | | to crash the machine) | |||||
* | new macro 'l_floor' (allows 'floorf' even when other math operations | Roberto Ierusalimschy | 2013-06-20 | 4 | -9/+10 | |
| | | | | do not have an 'f' variant) | |||||
* | use lua_Integer for integer parameters to avoid truncation | Roberto Ierusalimschy | 2013-06-19 | 1 | -15/+15 | |
| | ||||||
* | new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visible | Roberto Ierusalimschy | 2013-06-19 | 4 | -8/+14 | |
| | | | | from Lua; these must fit in a lua_Integer | |||||
* | detail (removed 'assert') | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+2 | |
| | ||||||
* | correct error message for floating-point values out of (integer) range | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+15 | |
| | ||||||
* | correct way (I hope) to convert floats to unsigned int | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+8 | |
| | ||||||
* | avoid using a negative value to test 'lua_tounsigned' | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+5 | |
| | ||||||
* | configuration of number sizes goes "mainstream" | Roberto Ierusalimschy | 2013-06-13 | 1 | -69/+71 | |
| | ||||||
* | 'math.random' operates with integers when used for integer results | Roberto Ierusalimschy | 2013-06-13 | 1 | -9/+11 | |
| | | | | (1 or 2 parameters) | |||||
* | avoid adding '.0' to "numbers" like "nan" and "inf" | Roberto Ierusalimschy | 2013-06-07 | 1 | -3/+3 | |
| | ||||||
* | new version (5.3) | Roberto Ierusalimschy | 2013-06-07 | 1 | -4/+4 | |
| | ||||||
* | 'io.write' writes integers directly (and correctly) | Roberto Ierusalimschy | 2013-06-07 | 1 | -3/+5 | |
| | ||||||
* | details ('Type* id' -> 'Type *id') | Roberto Ierusalimschy | 2013-06-07 | 3 | -8/+8 | |
| | ||||||
* | string contatenation handles conversion of integers to strings + | Roberto Ierusalimschy | 2013-06-04 | 3 | -22/+25 | |
| | | | | floats always format as floats (with decimal dot or exponent) | |||||
* | 'lua_tounsigned' takes number modulo 2^numbits as a result when | Roberto Ierusalimschy | 2013-06-04 | 1 | -2/+28 | |
| | | | | | number is a float (That may change...) | |||||
* | 'luai_hashnum' "inlined" into 'hashfloat' | Roberto Ierusalimschy | 2013-05-29 | 1 | -5/+8 | |
| | ||||||
* | removed all tricks for conversions + 'luai_hashnum' moved to ltable.c | Roberto Ierusalimschy | 2013-05-29 | 1 | -43/+1 | |
| | ||||||
* | new implementation for 'lua_strx2number' to correct small | Roberto Ierusalimschy | 2013-05-27 | 1 | -24/+36 | |
| | | | | problems with numbers like 0x10000...000p-100 | |||||
* | "legal" way to convert a float to an integer in C | Roberto Ierusalimschy | 2013-05-27 | 3 | -10/+30 | |
| | ||||||
* | 'objlen' can return integers | Roberto Ierusalimschy | 2013-05-26 | 1 | -3/+3 | |
| | ||||||
* | detail (case '%d' of 'luaO_pushvfstring' should use integers) | Roberto Ierusalimschy | 2013-05-26 | 1 | -2/+2 | |
| | ||||||
* | support for the case when 'l_mathop' does not conform to lua_Number | Roberto Ierusalimschy | 2013-05-26 | 1 | -2/+7 | |
| | | | | | (problem with pointers to lua_Number solved by a typedef selected automatically by 'l_mathop') | |||||
* | first version of control for number sizes (still in 'local' section) | Roberto Ierusalimschy | 2013-05-26 | 1 | -4/+36 | |
| | ||||||
* | no more IEEE tricks | Roberto Ierusalimschy | 2013-05-26 | 1 | -69/+1 | |
| | ||||||
* | removed 'IEEE tricks' (should not be needed in Lua with integers) | Roberto Ierusalimschy | 2013-05-23 | 1 | -56/+1 | |
| | ||||||
* | 'tonumber' now works with integers too | Roberto Ierusalimschy | 2013-05-16 | 1 | -10/+8 | |
| | ||||||
* | added patch to last bug | Roberto Ierusalimschy | 2013-05-16 | 1 | -2/+71 | |
| | ||||||
* | new API function 'lua_cvtonum' to convert a value (number or string) | Roberto Ierusalimschy | 2013-05-14 | 2 | -2/+26 | |
| | | | | | to a number, following the rules of the language to create integers or floats | |||||
* | 'luaO_str2int' more generic: accepts white spaces around the numeral | Roberto Ierusalimschy | 2013-05-14 | 3 | -15/+27 | |
| | | | | and handles signal |