Roberto Ierusalimschy
55ac40f859
Cleaning of llimits.h
Several definitions that don't need to be "global" (that is, that
concerns only specific parts of the code) moved out of llimits.h,
to more appropriate places.
5 months ago
Roberto Ierusalimschy
65b07dd53d
API asserts for illegal pops of to-be-closed variables
8 months ago
Roberto Ierusalimschy
c31d6774ac
Details
9 months ago
Roberto Ierusalimschy
413a393e62
Stack indices changed to union's
That will allow to change pointers to offsets while reallocating
the stack.
2 years ago
Roberto Ierusalimschy
bc970005ce
'__close' methods can yield in the return of a C function
When, inside a coroutine, a C function with to-be-closed slots return,
the corresponding metamethods can yield. ('__close' metamethods called
through 'lua_closeslot' still cannot yield, as there is no continuation
to go when resuming.)
4 years ago
Roberto Ierusalimschy
bd1b87c579
Comments (mosty typos)
5 years ago
Roberto Ierusalimschy
9a37dc0ce6
Small corrections when setting 'L->top'
- OP_NEWTABLE can use 'ra + 1' to set top (instead of ci->top);
- OP_CLOSE doesn't need to set top ('Protect' already does that);
- OP_TFORCALL must use 'ProtectNT', to preserve the top already set.
(That was a small bug, because iterators could be called with
extra parameters besides the state and the control variable.)
- Comments and an extra test for the bug in previous item.
5 years ago
Roberto Ierusalimschy
34840301b5
To-be-closed variables in the C API
6 years ago
Roberto Ierusalimschy
f99509581e
Removed extra information from RCS keyword strings
Version numbers and dates (mostly wrong) from RCS keyword strings
removed from all source files; only the file name are kept.
6 years ago
Roberto Ierusalimschy
ad0704e40c
back to 'CallInfo' (no gains with its removal)
7 years ago
Roberto Ierusalimschy
54eb35a8aa
more fields moved out of 'CallInfo'
7 years ago
Roberto Ierusalimschy
b9e76be8a6
using 'L->func' when possible
7 years ago
Roberto Ierusalimschy
a30c66f0fc
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
10 years ago
Roberto Ierusalimschy
5bbb4a06a6
removed unused parameter Ä'L' in macro 'api_check' and company
10 years ago
Roberto Ierusalimschy
3e41afcec5
extra api checks for number of returns of C functions and for lua_yield
15 years ago
Roberto Ierusalimschy
4a714cebd1
API checks now have explanatory messages
15 years ago
Roberto Ierusalimschy
fffbaede75
detail
16 years ago
Roberto Ierusalimschy
ba484b9eb1
yielding across lua_call (first version)
16 years ago
Roberto Ierusalimschy
3ca9af51a4
emergency garbage collector (core forces a GC when allocation fails)
19 years ago
Roberto Ierusalimschy
8718fda9b2
added LUAI_FUNC to functions not in the API
20 years ago
Roberto Ierusalimschy
47fc57a252
`TObject' renamed to `TValue' + other name changes and better assertions
for incremental garbage collection
21 years ago
Roberto Ierusalimschy
88c7b574cb
`luaA_index' is a local macro now
23 years ago
Roberto Ierusalimschy
100bfec39a
new implementation for `next'
25 years ago
Roberto Ierusalimschy
9fdf73bc9a
first version for new API
25 years ago
Roberto Ierusalimschy
bad6365540
details
25 years ago
Roberto Ierusalimschy
11a7022067
global variables are stored in a Lua table
25 years ago
Roberto Ierusalimschy
a69356e9e0
no more special cases for closures with 0 upvalues (performance is the same,
memory use a little higher, code much simpler).
25 years ago
Roberto Ierusalimschy
73aa465a8e
some name changes
25 years ago
Roberto Ierusalimschy
3c9d999424
many details (most by lhf).
25 years ago
Roberto Ierusalimschy
2877bad4c2
new debug API (first version)
25 years ago
Roberto Ierusalimschy
b1b0c219f5
new ttypes to distinguish between C closures and Lua closures.
25 years ago
Roberto Ierusalimschy
1b15206cf9
many details + code redistribution
25 years ago
Roberto Ierusalimschy
8223ff473f
lua_Object is a pointer to the stack (because now the stack doen't move)
25 years ago
Roberto Ierusalimschy
29ede6aa13
first implementation of multiple states (reentrant code).
25 years ago
Roberto Ierusalimschy
cde179b369
new implementation for global variable values (separated from strings)
25 years ago
Roberto Ierusalimschy
17374d2daa
`put_luaObjectonTop' must be public (to be used by lfback.c), and so
it must have a "public" name: `luaA_putObjectOnTop'
25 years ago
Roberto Ierusalimschy
04265655a8
compatibility with old fallback system now provided by external module
25 years ago
Roberto Ierusalimschy
c787dccd9b
"const" !!!
26 years ago
Roberto Ierusalimschy
f04c83e075
new function "lua_next" (+ new implementation for "next")
26 years ago
Roberto Ierusalimschy
d5feffdb60
new function lua_nextvar
26 years ago
Roberto Ierusalimschy
9618aaf07d
small corrections in comments
27 years ago
Roberto Ierusalimschy
ea169d2083
auxiliar functions from Lua API
28 years ago