Roberto Ierusalimschy
|
136f8e148d
|
added cast to void to calls to 'setlocale' (to easy redefining it as
a constant)
|
14 years ago |
Roberto Ierusalimschy
|
f90a130b07
|
typo in message
|
14 years ago |
Roberto Ierusalimschy
|
cb4950a6d8
|
parser must work with C locale, but external locale must be preserved
|
14 years ago |
Roberto Ierusalimschy
|
fdede85419
|
label names must be unique inside a function
|
14 years ago |
Roberto Ierusalimschy
|
beab626061
|
correct length for LUA_COPYRIGHT (without trailing '\0')
|
14 years ago |
Roberto Ierusalimschy
|
817f8674af
|
avoid warning about -unsigned value
|
14 years ago |
Roberto Ierusalimschy
|
cf0562e1e7
|
detail (missing cast to unsigned char when converting char to int)
|
14 years ago |
Roberto Ierusalimschy
|
22e1c5ebad
|
avoid conversion from 'const char*' to 'void *' (warning about 'const')
|
14 years ago |
Roberto Ierusalimschy
|
470dd56a89
|
'os.execute' (and similars) should return 'exit' and code in case
of success, too.
|
14 years ago |
Roberto Ierusalimschy
|
20d30bcd33
|
declarations should be present only when implementations are
|
14 years ago |
Roberto Ierusalimschy
|
44b6f496b5
|
just in case, avoid side effects in 'ctype' macros
|
14 years ago |
Roberto Ierusalimschy
|
fd80e63468
|
configuration for NaN trick big-endian + macro 'luai_checknum' to
ensure numbers comming from C are not "improper" (some kinds of
signaling NaNs)
|
14 years ago |
Roberto Ierusalimschy
|
f62565abea
|
avoid warnings with -Wstrict-overflow
|
14 years ago |
Roberto Ierusalimschy
|
c9d1d9f9c6
|
better way to test overflows with string indices
|
14 years ago |
Roberto Ierusalimschy
|
35391d9b1a
|
macro 'NNMARK' (mark for non-number values using the NaN trick)
|
14 years ago |
Roberto Ierusalimschy
|
99b1b8e918
|
first version with 'NANTRICK' (packing all Lua values inside a 'double')
|
14 years ago |
Roberto Ierusalimschy
|
3b44821334
|
stricter control (using tag variants) over closure kinds (Lua x C)
|
14 years ago |
Roberto Ierusalimschy
|
0214dab989
|
yet another macro ('num_')
|
14 years ago |
Roberto Ierusalimschy
|
821bd7025e
|
more uniform names for 'equalobj'-related functions
|
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
|
3f04a9f2c0
|
code is simpler without 'goto' here
|
14 years ago |
Roberto Ierusalimschy
|
2a59a999d4
|
yet another macro abstracting TValue representation
|
14 years ago |
Roberto Ierusalimschy
|
ee7d0c2649
|
new macro 'luai_writeline' to print newlines (and flush 'stdout')
|
14 years ago |
Roberto Ierusalimschy
|
aa13c591f5
|
avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and
more powerful)
|
14 years ago |
Roberto Ierusalimschy
|
6c8a32217a
|
changes by lhf (better control of chars x bytes)
|
14 years ago |
Roberto Ierusalimschy
|
cb09f4fef4
|
details
|
14 years ago |
Roberto Ierusalimschy
|
3cf1729a02
|
new macro 'lua_longassert' that is equivalent to an assertion without
a stringfication of the condition, to avoid too long string literals
(limited by C90 to ~510 characters)
|
14 years ago |
Roberto Ierusalimschy
|
74b0bb3a45
|
macro 'checkconsistency' moved to this file, as it is used only
here
|
14 years ago |
Roberto Ierusalimschy
|
e4076fe6d9
|
break long assertion in two shorter ones
|
14 years ago |
Roberto Ierusalimschy
|
81952e6884
|
avoid using expression as argument to unsafe macro 'l_isfalse'
|
14 years ago |
Roberto Ierusalimschy
|
25b4e35ee8
|
new macros abstracting TValue representation (to easy change to
other representations)
|
14 years ago |
Roberto Ierusalimschy
|
7e1facaa4e
|
detail in assertion
|
14 years ago |
Roberto Ierusalimschy
|
ad2531a0ee
|
more complete (and hopefuly more correct) handling of 'sizeof(char)'
|
14 years ago |
Roberto Ierusalimschy
|
bc1c718cc0
|
removed TOKEN_LEN (useless)
|
14 years ago |
Roberto Ierusalimschy
|
c9ce754e38
|
comment
|
14 years ago |
Roberto Ierusalimschy
|
d34271fe42
|
MacOS 'strtod' handles hexa formats too
|
14 years ago |
Roberto Ierusalimschy
|
d120ec29ca
|
bug in OP_SELF when method name goes to a register
|
14 years ago |
Roberto Ierusalimschy
|
2aff901c93
|
Mac OS defines LUA_USE_AFORMAT and LUA_USE_LONGLONG by default
|
14 years ago |
Roberto Ierusalimschy
|
bad231c481
|
'LUA_USELONGLONG' -> 'LUA_USE_LONGLONG'
|
14 years ago |
Roberto Ierusalimschy
|
a2b1c279f1
|
'LUA_USELONGLONG' on by default on Linux + LUA_USE_HEXAFLOAT renamed
to LUA_USE_STRTODHEX (as Lua 5.2 always *uses* hexa floats)
|
14 years ago |
Roberto Ierusalimschy
|
2f128c5130
|
'luaL_setfuncs' does not need to accept a NULL list. (If there is
no list, there is no reason to call this function.)
|
14 years ago |
Roberto Ierusalimschy
|
4758113043
|
change in opcode OP_LOADNIL: B is used as a counter instead of a
register. (Avoids an assignment to R(B), not present in any other
instruction.)
|
14 years ago |
Roberto Ierusalimschy
|
a4e644add2
|
small bug (masked by wrong entry for OP_TEST in opcodes.c)
|
14 years ago |
Roberto Ierusalimschy
|
05ca63642b
|
added macro for code checking
|
14 years ago |
Roberto Ierusalimschy
|
f17e3624ef
|
local function name only visible to debug info after being initialized
|
14 years ago |
Roberto Ierusalimschy
|
2e9b8476ca
|
detail ('luai_apicheck' should be used always through macro 'api_check')
|
14 years ago |
Roberto Ierusalimschy
|
c31f4946e9
|
copyright updated to 2011
|
14 years ago |
Roberto Ierusalimschy
|
c86586e866
|
small corrections in description of OP_TEST and OP_LOADKX
|
14 years ago |
Roberto Ierusalimschy
|
19fbdf6cae
|
'luaL_findtable' -> 'luaL_getsubtable'
|
14 years ago |
Roberto Ierusalimschy
|
427ee519db
|
new instruction OP_LOADKX (to replace OP_LOADK with extra argument)
|
14 years ago |