summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* avoid undefined shift of LUA_NBITS in rotate operationRoberto Ierusalimschy2013-07-091-2/+3
|
* no need for type 'b_uint' (lua_Unsigned must have at least 32 bits)Roberto Ierusalimschy2013-07-091-20/+17
|
* When loading a file, Lua may call the reader function again afterRoberto Ierusalimschy2013-07-051-2/+78
| | | | it returned end of input + luac listings choke on long strings
* 'tonumber': base must be a numberRoberto Ierusalimschy2013-07-051-2/+2
|
* 'tonumber': does not accept numbers when given a base + convertion fromRoberto Ierusalimschy2013-07-051-26/+43
| | | | | strings to numbers with a base moved to a separated function (more modular)
* 'lua_cvtonum' -> 'lua_strtonum'; converts only strings to numbersRoberto Ierusalimschy2013-07-052-21/+14
|
* new function 'ifloor'Roberto Ierusalimschy2013-07-031-1/+14
|
* no need to check "bad conversion number->int;" in luaL_checkversion,Roberto Ierusalimschy2013-06-272-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' libraryRoberto Ierusalimschy2013-06-252-15/+15
|
* LUA_SMALL_* changed to LUA_*SIZE + added support for long double + betterRoberto Ierusalimschy2013-06-251-24/+40
| | | | support for ANSI systems
* macro 'lua_strx2number' does not need to be globalRoberto Ierusalimschy2013-06-251-1/+13
|
* avoid using raw representation of numbers for hashing, as number mayRoberto Ierusalimschy2013-06-251-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 Ierusalimschy2013-06-252-7/+7
|
* avoid using 'modf' in the implementation of 'math.modf', to avoidRoberto Ierusalimschy2013-06-251-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' forRoberto Ierusalimschy2013-06-211-5/+12
| | | | small lua_Integer unless necessary to use 'long'
* small bugs uncovered in a 64-bit machine (where 'long' has 64 bits)Roberto Ierusalimschy2013-06-211-3/+3
|
* try to avoid warnings when converting int to pointerRoberto Ierusalimschy2013-06-201-2/+3
|
* reorganization of warnings + update of explicit dependencies (gcc -MM)Roberto Ierusalimschy2013-06-201-7/+10
|
* In the table that hashes constants, use a light userdata as keysRoberto Ierusalimschy2013-06-201-9/+9
| | | | | to integer values to avoid collisions with floats with the same numerical value
* avoid warning for unary minus over an unsigned valueRoberto Ierusalimschy2013-06-201-2/+2
|
* added "reasonable" limit for 'string.rep' (otherwise it is too easyRoberto Ierusalimschy2013-06-201-3/+8
| | | | to crash the machine)
* new macro 'l_floor' (allows 'floorf' even when other math operationsRoberto Ierusalimschy2013-06-204-9/+10
| | | | do not have an 'f' variant)
* use lua_Integer for integer parameters to avoid truncationRoberto Ierusalimschy2013-06-191-15/+15
|
* new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visibleRoberto Ierusalimschy2013-06-194-8/+14
| | | | from Lua; these must fit in a lua_Integer
* detail (removed 'assert')Roberto Ierusalimschy2013-06-141-4/+2
|
* correct error message for floating-point values out of (integer) rangeRoberto Ierusalimschy2013-06-141-4/+15
|
* correct way (I hope) to convert floats to unsigned intRoberto Ierusalimschy2013-06-141-4/+8
|
* avoid using a negative value to test 'lua_tounsigned'Roberto Ierusalimschy2013-06-141-4/+5
|
* configuration of number sizes goes "mainstream"Roberto Ierusalimschy2013-06-131-69/+71
|
* 'math.random' operates with integers when used for integer resultsRoberto Ierusalimschy2013-06-131-9/+11
| | | | (1 or 2 parameters)
* avoid adding '.0' to "numbers" like "nan" and "inf"Roberto Ierusalimschy2013-06-071-3/+3
|
* new version (5.3)Roberto Ierusalimschy2013-06-071-4/+4
|
* 'io.write' writes integers directly (and correctly)Roberto Ierusalimschy2013-06-071-3/+5
|
* details ('Type* id' -> 'Type *id')Roberto Ierusalimschy2013-06-073-8/+8
|
* string contatenation handles conversion of integers to strings +Roberto Ierusalimschy2013-06-043-22/+25
| | | | floats always format as floats (with decimal dot or exponent)
* 'lua_tounsigned' takes number modulo 2^numbits as a result whenRoberto Ierusalimschy2013-06-041-2/+28
| | | | | number is a float (That may change...)
* 'luai_hashnum' "inlined" into 'hashfloat'Roberto Ierusalimschy2013-05-291-5/+8
|
* removed all tricks for conversions + 'luai_hashnum' moved to ltable.cRoberto Ierusalimschy2013-05-291-43/+1
|
* new implementation for 'lua_strx2number' to correct smallRoberto Ierusalimschy2013-05-271-24/+36
| | | | problems with numbers like 0x10000...000p-100
* "legal" way to convert a float to an integer in CRoberto Ierusalimschy2013-05-273-10/+30
|
* 'objlen' can return integersRoberto Ierusalimschy2013-05-261-3/+3
|
* detail (case '%d' of 'luaO_pushvfstring' should use integers)Roberto Ierusalimschy2013-05-261-2/+2
|
* support for the case when 'l_mathop' does not conform to lua_NumberRoberto Ierusalimschy2013-05-261-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 Ierusalimschy2013-05-261-4/+36
|
* no more IEEE tricksRoberto Ierusalimschy2013-05-261-69/+1
|
* removed 'IEEE tricks' (should not be needed in Lua with integers)Roberto Ierusalimschy2013-05-231-56/+1
|
* 'tonumber' now works with integers tooRoberto Ierusalimschy2013-05-161-10/+8
|
* added patch to last bugRoberto Ierusalimschy2013-05-161-2/+71
|
* new API function 'lua_cvtonum' to convert a value (number or string)Roberto Ierusalimschy2013-05-142-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 numeralRoberto Ierusalimschy2013-05-143-15/+27
| | | | and handles signal