Go to the source code of this file.
◆ free_scope()
Definition at line 58 of file scope.c.
58 {
61}
#define mp_free(p, name, a)
ANN void scope_release(Scope a)
◆ new_scope()
Definition at line 46 of file scope.c.
46 {
49 return a;
50}
#define mp_calloc(p, name)
ANN void scope_init(MemPool p, Scope a)
◆ scope_add()
Definition at line 28 of file scope.c.
28 {
31 else
33}
ANN void map_set(const Map map, const vtype key, const vtype ptr)
static ANN Map scope_back(const Scope s)
◆ scope_back()
◆ scope_commit()
Definition at line 35 of file scope.c.
35 {
38}
ANN void map_clear(const Map v)
ANN void map_commit(const restrict Map map, const restrict Map commit)
◆ scope_init()
Definition at line 40 of file scope.c.
40 {
44}
static ANN void scope_push(MemPool p NUSED, const Scope s)
ANN void vector_init(const Vector v)
◆ scope_iter()
ANN bool scope_iter |
( |
struct scope_iter * | iter, |
|
|
void * | ret ) |
Definition at line 63 of file scope.c.
63 {
68 if (vsize == iter->
vec) {
69 if (iter->
idx == size)
return false;
70 } else {
73 if (iter->
idx == size) {
77 }
78 }
80 return true;
81}
static ANN vtype map_size(const Map map)
static ANN vtype map_at(const Map map, const vtype index)
ANN bool scope_iter(struct scope_iter *iter, void *ret)
static ANN vtype vector_size(Vector const v)
◆ scope_lookup0()
Definition at line 7 of file scope.c.
7 {
11 return ret;
12}
ANN vtype map_get(const Map map, const vtype key)
◆ scope_lookup1()
Definition at line 14 of file scope.c.
14 {
18 if (ret) return ret;
19 }
21}
◆ scope_lookup2()
◆ scope_release()
Definition at line 52 of file scope.c.
52 {
56}
ANN void map_release(const Map map)
ANN void vector_release(const Vector v)