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 |
Roberto Ierusalimschy
|
a958b711f5
|
cleaner scheme of bits for variant types (light C functions) and
collectable types
|
14 years ago |
Roberto Ierusalimschy
|
1ffdd0bc7a
|
detail (should use macro 'ttisdeadkey')
|
14 years ago |
Roberto Ierusalimschy
|
5286650894
|
new macro 'ttisequal'
|
14 years ago |
Roberto Ierusalimschy
|
0fb1644c60
|
2nd operand for unary tag methods does not need to be 'nil'
|
14 years ago |
Roberto Ierusalimschy
|
119d5e46d5
|
lua_arith gets no fake operand for unary minus
|
14 years ago |
Roberto Ierusalimschy
|
83abbac946
|
all names used internally by macros end with '_'
|
14 years ago |
Roberto Ierusalimschy
|
a25416a8d5
|
use of 'luaL_tolstring' for option '%s' in 'string.format'
|
14 years ago |
Roberto Ierusalimschy
|
682cce3813
|
macro 'mark' renamed 'EOFMARK' ('mark' is too easy to confict, e.g.
in alllua.c)
|
14 years ago |
Roberto Ierusalimschy
|
d806710ab5
|
returns for file-related functions and process-related functions
unified in 'auxlib'
|
14 years ago |
Roberto Ierusalimschy
|
e049abb69a
|
loaders receive an extra argument returned by the searcher
(typically the file name)
|
14 years ago |
Roberto Ierusalimschy
|
98816d0ce5
|
small problems with 'luaone.c'
|
14 years ago |
Roberto Ierusalimschy
|
7482e8f914
|
no need of lookahead in Zio
|
14 years ago |
Roberto Ierusalimschy
|
03b769053a
|
correct interpretation of return value from pclose
|
14 years ago |
Roberto Ierusalimschy
|
3c710f056b
|
small bug: may call reader function again after it returned end
of input
|
14 years ago |
Roberto Ierusalimschy
|
c0a865fa54
|
error for repeated label + jumps allowed to labels followed by
'no-op' statements
|
14 years ago |
Roberto Ierusalimschy
|
0009ac1f3a
|
'break' does not need to be last statement in a block +
'explist1' -> 'explist' + moving a few functions around
|
14 years ago |
Roberto Ierusalimschy
|
7b968bb514
|
p-close returns "correct" status plus type of termination
|
14 years ago |
Roberto Ierusalimschy
|
bf8b08295a
|
'break' coded as 'goto' + small bug when closing multiple gotos
to the same label
|
14 years ago |
Roberto Ierusalimschy
|
3f5b56c48b
|
simpler code for repeat-until
|
14 years ago |
Roberto Ierusalimschy
|
e7192dfdbb
|
corrected 'follow' for checking whether label is last statement
in a block
|
14 years ago |
Roberto Ierusalimschy
|
0539f48661
|
small changes in goto-related error messages
|
14 years ago |
Roberto Ierusalimschy
|
e7a9c45a48
|
trying to avoid assumption that sizeof(char)==1
|
14 years ago |
Roberto Ierusalimschy
|
fd6c1f4898
|
ensures that all local variables are declared inside some block,
opening a new block at 'open_func'
|
14 years ago |
Roberto Ierusalimschy
|
f079749287
|
some reorganization of dynamic data structures used by the parser
|
14 years ago |
Roberto Ierusalimschy
|
f8d677f94c
|
no more 'OP_CLOSE' instructions (use jumps to close upvalues)
|
14 years ago |