Roberto Ierusalimschy
|
5d79c6684b
|
removed commented-out debugging code
|
15 years ago |
Roberto Ierusalimschy
|
ee7478e884
|
improved 'lua_checkmemory', with better control over gray objects
|
15 years ago |
Roberto Ierusalimschy
|
973d81efb3
|
complete control over number of each kind of object allocated
|
15 years ago |
Roberto Ierusalimschy
|
1e6940f291
|
'gcstate' now also runs collector until given state + small changes
in 'testC' to test 'lua_topointer' and 'lua_tocfunction'
|
15 years ago |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
15 years ago |
Roberto Ierusalimschy
|
b2dd246b7a
|
better control in 'totalmem' over choosing counters
|
15 years ago |
Roberto Ierusalimschy
|
d41b467320
|
check memory allows strings to live in the main GC list (it should
work ok).
|
15 years ago |
Roberto Ierusalimschy
|
a8d3aa14fd
|
global table now is only kept in the registry
|
15 years ago |
Roberto Ierusalimschy
|
064e406f67
|
no more fenvs!
|
15 years ago |
Roberto Ierusalimschy
|
3aa9598177
|
'mainthread' is not inserted in the 'allgc' list anymore, but swept
separately.
|
15 years ago |
Roberto Ierusalimschy
|
4433dbb5f5
|
userdata with finalizers are kept in a separated list ('udgc'), instead
of at the end of 'rootgc' (which was renamed to 'allgc', as it is not
"root" in the usual meaning for collectors)
|
15 years ago |
Roberto Ierusalimschy
|
070d3743a7
|
"no value" added to array luaT_typenames + occurrences of "userdata"
in that array unified in a single address
|
15 years ago |
Roberto Ierusalimschy
|
f84b575cfa
|
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
|
15 years ago |
Roberto Ierusalimschy
|
c3a6f3fa1c
|
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
|
15 years ago |
Roberto Ierusalimschy
|
0bbdddc86b
|
allocator function receives the tag of object being allocated in 'osize'
when 'ptr' is NULL.
|
15 years ago |
Roberto Ierusalimschy
|
a2a2abcba4
|
new function 'luaC_runtilstate' to advance GC until a "valid" state
|
15 years ago |
Roberto Ierusalimschy
|
1375435e4a
|
several new features in testC to allow better testing of lua_resume
at the C API level
|
15 years ago |
Roberto Ierusalimschy
|
df1dc3f1f5
|
strings in C scripts may be delimited by quotes + new functionality to
set C scripts as C hooks
|
15 years ago |
Roberto Ierusalimschy
|
cfa8bc3ca4
|
continuations may be upvalues too
|
15 years ago |
Roberto Ierusalimschy
|
63a3b1a1eb
|
macro 'checkvalref' redefined as function (to avoid too long macros)
|
15 years ago |
Roberto Ierusalimschy
|
9756f56354
|
better control over accesses to TValue fields
|
15 years ago |
Roberto Ierusalimschy
|
5bc91c6405
|
no more one environment per thread: all threads share a single global
environment
|
15 years ago |
Roberto Ierusalimschy
|
916587508c
|
parser keeps list of active local variables in a single dynamic array,
therefore saving C stack space
|
15 years ago |
Roberto Ierusalimschy
|
a5382b763c
|
new function lua_copy
|
15 years ago |
Roberto Ierusalimschy
|
d119cf3035
|
a few more instructions to testC (func2udata and getfield)
|
15 years ago |
Roberto Ierusalimschy
|
5938212748
|
information about upvalues (where they come from) kept in Proto structure,
instead of sequence of pseudo-opcodes after OP_CLOSURE
|
15 years ago |
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
|
b2bb2f7f59
|
better machinery to test continuations in the C API
|
15 years ago |
Roberto Ierusalimschy
|
bd5fa9cc8f
|
new macro 'getproto'
|
16 years ago |
Roberto Ierusalimschy
|
f76f4cb79d
|
new way to control stack overflow, controling only total size of the stack
|
16 years ago |
Roberto Ierusalimschy
|
6980cb1aa7
|
new functions 'lua_arith' and 'lua_compare'
|
16 years ago |
Roberto Ierusalimschy
|
a21c89ddc8
|
new API function 'lua_mainthread'
|
16 years ago |
Roberto Ierusalimschy
|
2258ec6bc9
|
'getline' renamed to 'getfuncline' (to avoid problems with POSIX)
|
16 years ago |
Roberto Ierusalimschy
|
9423e22aa3
|
no more L->base + ci->base only for Lua functions (C functions may use
'func')
|
16 years ago |
Roberto Ierusalimschy
|
d3037d97ec
|
several small improvements based on 'ci' being fixed now (including
erasing savedpc from lua_State)
|
16 years ago |
Roberto Ierusalimschy
|
4f88418170
|
'CallInfo' stack implemented as double-linked list instead of an array
|
16 years ago |
Roberto Ierusalimschy
|
8775f25830
|
new function 'T.makeCfunc' (for later use)
|
16 years ago |
Roberto Ierusalimschy
|
7837e34e56
|
new states have a reasonable panic function +
testC may run code on different threads +
rename of some testC operations ('rawcall'->'call', 'call'->'pcall')
|
16 years ago |
Roberto Ierusalimschy
|
6905ae900b
|
Lua now uses "homemade" lctype (instead of ctype.h from ANSI C)
|
16 years ago |
Roberto Ierusalimschy
|
81ede6bfce
|
using light userdata to represent "remote" states
|
16 years ago |
Roberto Ierusalimschy
|
690efef3de
|
detail (added 'UNUSED' to unused argument)
|
16 years ago |
Roberto Ierusalimschy
|
f94cd2201c
|
better control of call status through CallInfo
|
16 years ago |
Roberto Ierusalimschy
|
c1565c16ed
|
small bug: lua_resume returning LUA_YIELD is not an error
|
16 years ago |
Roberto Ierusalimschy
|
0c8f5fc2fd
|
simplification in the handling of finalizers: no more 'tmudata' list +
no more GCSsweeptmu collector's state
|
17 years ago |
Roberto Ierusalimschy
|
93869acb2c
|
"test trick" seems more useful with pointers instead of integers
|
17 years ago |
Roberto Ierusalimschy
|
59e2973335
|
removed static variable lua_state (not used)
|
17 years ago |
Roberto Ierusalimschy
|
860e285f31
|
'luaL_gsub' moved into 'testC' (all auxlib should be tested through 'testC')
|
17 years ago |
Roberto Ierusalimschy
|
92a0d4c67f
|
extra options in 'testC' for newmetatable and testudata
|
17 years ago |