Roberto Ierusalimschy
|
67cae2854c
|
'lua_mainthread' replaced by new preregistered value LUA_RIDX_MAINTHREAD
|
15 years ago |
Roberto Ierusalimschy
|
0e45ffb8e4
|
first implementation of 'lua_yieldk' (yield with continuation)
|
15 years ago |
Roberto Ierusalimschy
|
071e54ae0b
|
extra facilities to testC: comments + commands print, callk and yield +
Cfunc with extra upvalues
|
15 years ago |
Roberto Ierusalimschy
|
a68494fb32
|
'debug.[gs]etupvalue' should be able to access C upvalues too
|
15 years ago |
Roberto Ierusalimschy
|
4b44793dc5
|
"bug": lua_createtable with sizes changed (array <-> record)
|
15 years ago |
Roberto Ierusalimschy
|
90e2a716c8
|
details + comments
|
15 years ago |
Roberto Ierusalimschy
|
d9fbbe1f23
|
"file:write" returns "file" in case of success
|
15 years ago |
Roberto Ierusalimschy
|
4a714cebd1
|
API checks now have explanatory messages
|
15 years ago |
Roberto Ierusalimschy
|
5b6be84106
|
ensures that argument 'mode' to 'io.open' matches "[rwa]%+?b?", to
avoid passing invalid modes to 'fopen'.
|
15 years ago |
Roberto Ierusalimschy
|
b2bb2f7f59
|
better machinery to test continuations in the C API
|
15 years ago |
Roberto Ierusalimschy
|
f096ab5421
|
correct way to check arguments to 'strftime'
|
15 years ago |
Roberto Ierusalimschy
|
4e1ffc482a
|
test for 'fs' being NULL at the end of 'close_func' is useless ('fs'
cannot be NULl and the new ls->fs can only be NULL when the token
is EOS, in which case anchor_token has no effect).
|
15 years ago |
Roberto Ierusalimschy
|
bc439e21cd
|
avoid an unprotected call to 'lua_tostring' which theoretically may
cause a panicked exit
|
15 years ago |
Roberto Ierusalimschy
|
1b4480003b
|
"stange numbers" (-0 and NaN) also go to the constant table (as
strings with their binary representation). Therefore, constant
folding may produce these results.
|
15 years ago |
Roberto Ierusalimschy
|
42167804b8
|
luaH_[gs]etnum renamed to luaH_[gs]etint (as they only accept integers,
not generic numbers).
|
15 years ago |
Roberto Ierusalimschy
|
3135a6bbab
|
luaH_[gs]etnum renamed to luaH_[gs]etint (as they only accept integers,
not generic numbers)
|
15 years ago |
Roberto Ierusalimschy
|
95cbc402dc
|
"But" -> "Bug" (misspelling)
|
15 years ago |
Roberto Ierusalimschy
|
decada8dc2
|
'debug.getfenv' does not check whether it has an argument
|
15 years ago |
Roberto Ierusalimschy
|
ee5d03b42a
|
small bug: debug.getfenv should check whether it has an argument
|
15 years ago |
Roberto Ierusalimschy
|
323f33d014
|
'collectgarbage"count"' returns a second argument with the count%1024.
|
15 years ago |
Roberto Ierusalimschy
|
55dc7fb240
|
bug: stack must be cleared until its end (including extra size) +
control of stack size moved to 'ldo.c'
|
16 years ago |
Roberto Ierusalimschy
|
11d7ba79f2
|
tail calls do not need to move whole new frame down, only its slice
up to last parameter (the rest has not been used yet)
|
16 years ago |
Roberto Ierusalimschy
|
bd5fa9cc8f
|
new macro 'getproto'
|
16 years ago |
Roberto Ierusalimschy
|
2658c94925
|
detail (comment: 'correspoding' -> 'corresponding')
|
16 years ago |
Roberto Ierusalimschy
|
215885768c
|
'index2adr' -> 'index2addr' (correct spelling)
|
16 years ago |
Roberto Ierusalimschy
|
a5f68589c0
|
avoid using 'UNUSED' (not defined outside the kernel)
|
16 years ago |
Roberto Ierusalimschy
|
28419c4383
|
'luaL_tolstring' uses 'lua_tolstring' instead of 'lua_tostring' and
'lua_objlen'
|
16 years ago |
Roberto Ierusalimschy
|
5bff2aaf47
|
calls with LUA_MULTRET may leave no free slots in the stack
|
16 years ago |
Roberto Ierusalimschy
|
f76f4cb79d
|
new way to control stack overflow, controling only total size of the stack
|
16 years ago |
Roberto Ierusalimschy
|
abb85fc059
|
new definition for 'luaD_checkstack' to avoid possible overflows
|
16 years ago |
Roberto Ierusalimschy
|
aabe3ddbf4
|
errors in 'resume' should be all protected
|
16 years ago |
Roberto Ierusalimschy
|
0c258c8492
|
smart use of varargs may create functions that return too
many arguments and overflow the stack of C functions.
|
16 years ago |
Roberto Ierusalimschy
|
d57c9cdefc
|
BUG: 'luaV_settable' may invalidate a reference to a table and try
to reuse it.
|
16 years ago |
Roberto Ierusalimschy
|
afb3f7e754
|
bug: 'luaV_settable' may invalidate a reference to a table and try
to reuse it.
|
16 years ago |
Roberto Ierusalimschy
|
88564c3aec
|
Standard library for bitwise operations
|
16 years ago |
Roberto Ierusalimschy
|
3abe3da9fb
|
new module 'lbitlib.c' for bitwise operations
|
16 years ago |
Roberto Ierusalimschy
|
eb8499c8e0
|
use of LUAI_UINT32 replaced by 'unsigned LUA_INT32' (one less
definition needed)
|
16 years ago |
Roberto Ierusalimschy
|
47c562435b
|
better error messages for luaL_checkversion
|
16 years ago |
Roberto Ierusalimschy
|
02504d86d3
|
l_version may be local to 'lua_version'
|
16 years ago |
Roberto Ierusalimschy
|
4a818f068a
|
'checkversion' implemented in the auxiliary library
|
16 years ago |
Roberto Ierusalimschy
|
1d6ebce296
|
new function 'lua_version' (so that 'checkversion' can be implemented
in the auxiliary library)
|
16 years ago |
Roberto Ierusalimschy
|
bc3e02a1b7
|
default paths have dot option as the last one (to improve security)
|
16 years ago |
Roberto Ierusalimschy
|
f4eed60ca9
|
better treatment of integer formats in string.format
|
16 years ago |
Roberto Ierusalimschy
|
c1de1fdac6
|
small optimization in 'lua_arith' (avoids overhead in the common case
of both arguments being numbers)
|
16 years ago |
Roberto Ierusalimschy
|
a36c8e1718
|
new macro 'changenvalue'
|
16 years ago |
Roberto Ierusalimschy
|
d7872dcf91
|
small optimization (reorder of BinOpr enum to unify some cases
in switches)
|
16 years ago |
Roberto Ierusalimschy
|
14115170bc
|
lua_objlen should not work for numbers (according to the manual)
|
16 years ago |
Roberto Ierusalimschy
|
ec52149485
|
'lua_lessthan' replaced by more generic 'lua_compare'
|
16 years ago |
Roberto Ierusalimschy
|
6980cb1aa7
|
new functions 'lua_arith' and 'lua_compare'
|
16 years ago |
Roberto Ierusalimschy
|
59a59fafc6
|
exports luaV_arith to be used by lua_arith
|
16 years ago |