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 |
Roberto Ierusalimschy
|
c75cca0559
|
detail (case '%d' of 'luaO_pushvfstring' should use integers)
|
12 years ago |
Roberto Ierusalimschy
|
36e8771076
|
'luaO_str2int' more generic: accepts white spaces around the numeral
and handles signal
|
12 years ago |
Roberto Ierusalimschy
|
67532d5a10
|
constant folding and API arithmetic with integers
|
12 years ago |
Roberto Ierusalimschy
|
00744a2729
|
'luaO_arith' -> 'luaO_numarith'
|
12 years ago |
Roberto Ierusalimschy
|
9c43d6a24e
|
new format "%I" in 'lua_pushfstring' for lua_Integer
|
12 years ago |
Roberto Ierusalimschy
|
1294b09d8e
|
first implementation of literal integers (no constant folding yet)
|
12 years ago |
Roberto Ierusalimschy
|
b559aed2d3
|
'l_tg' was renamed to 'l_mathop' and this use was not corrected at
the time
|
12 years ago |
Roberto Ierusalimschy
|
181a837cac
|
small improvement in the support of 'float' as lua_Number
|
12 years ago |
Roberto Ierusalimschy
|
a3e1c40d6d
|
remove of unecessary luaD_checkstack. (In some cases, C should
ensure stack space; in others, Lua can use the extra slots for
temporary values.)
|
12 years ago |
Roberto Ierusalimschy
|
7377fbdebc
|
function prototype did not match one in .h
|
13 years ago |
Roberto Ierusalimschy
|
0bd99b327b
|
avoid "unreachable" 'break'
|
13 years ago |
Roberto Ierusalimschy
|
03a078493e
|
refuse things like 'inf' or 'Nan' as numerals
|
13 years ago |
Roberto Ierusalimschy
|
5acc5b0c1e
|
using 'tolower' instead of 'toupper' (slightly simpler to implement)
|
14 years ago |
Roberto Ierusalimschy
|
59547c6cda
|
macro 'ltoupper' instead of 'lisupper' (more usefull for Lua)
|
14 years ago |
Roberto Ierusalimschy
|
cf0562e1e7
|
detail (missing cast to unsigned char when converting char to int)
|
14 years ago |
Roberto Ierusalimschy
|
9b7dddad7d
|
no need for two different implementations for equality (one raw and
one with metamethods)
|
14 years ago |
Roberto Ierusalimschy
|
ad2531a0ee
|
more complete (and hopefuly more correct) handling of 'sizeof(char)'
|
14 years ago |
Roberto Ierusalimschy
|
5286650894
|
new macro 'ttisequal'
|
14 years ago |
Roberto Ierusalimschy
|
e7a9c45a48
|
trying to avoid assumption that sizeof(char)==1
|
14 years ago |
Roberto Ierusalimschy
|
af119c8b55
|
official support for floating hexa numerals
|
14 years ago |
Roberto Ierusalimschy
|
ccc4fc9cf0
|
detection of erroneous numeric strings with \0 (such as "1\0")
|
14 years ago |
Roberto Ierusalimschy
|
c6ef3e2672
|
bug: by-one error when creating short source names (luaO_chunkid)
|
14 years ago |
Roberto Ierusalimschy
|
4834de8427
|
comment typo
|
14 years ago |
Roberto Ierusalimschy
|
94043a3a1a
|
more robust implementation for 'luaO_str2d'
|
14 years ago |
Roberto Ierusalimschy
|
53f9499f7f
|
"light C function" is a better name than "C-function pointer"
|
15 years ago |
Roberto Ierusalimschy
|
cf22133b69
|
no need to avoid calling ctype functions as now they are implemented
by us (no inefficiencies due to accessing locale information)
|
15 years ago |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
15 years ago |
Roberto Ierusalimschy
|
d394d5536a
|
new macro 'eqstr'
|
15 years ago |
Roberto Ierusalimschy
|
d00d2eaf51
|
small changes in 'luaO_pushvfstring'
|
15 years ago |
Roberto Ierusalimschy
|
3bae8e047c
|
typo (thanks to Gavin)
|
15 years ago |
Roberto Ierusalimschy
|
3c4d970a7b
|
comment typos
|
15 years ago |
Roberto Ierusalimschy
|
062e809e54
|
new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and
definitions of non-static variables
|
15 years ago |
Roberto Ierusalimschy
|
49a67c6d3f
|
new macro 'NILCONSTANT' to initialize nil constants
|
15 years ago |
Roberto Ierusalimschy
|
6a024df440
|
new function 'luaO_arith' to perform basic arithmetic operations
|
16 years ago |
Roberto Ierusalimschy
|
57f8414de1
|
small bug in 'luaV_concat' (L->top was left incorrect in some cases)
|
16 years ago |
Roberto Ierusalimschy
|
6905ae900b
|
Lua now uses "homemade" lctype (instead of ctype.h from ANSI C)
|
16 years ago |
Roberto Ierusalimschy
|
a76fa25199
|
'ceillog2' now is exported (other modules may need it)
|
17 years ago |
Roberto Ierusalimschy
|
fabdaa37b6
|
'lua_pushfstring' raises an error if called with invalid format
|
17 years ago |
Roberto Ierusalimschy
|
ad60b3ead7
|
avoid the use of "exotic" libc functions
|
17 years ago |