move mut_pfree out of .c
This commit is contained in:
parent
0c04b7e03b
commit
d8cfac38a2
@ -8,3 +8,7 @@ NOINLINE B vec_addR(B w, B x) {
|
|||||||
dec(w);
|
dec(w);
|
||||||
return mut_fv(r);
|
return mut_fv(r);
|
||||||
}
|
}
|
||||||
|
NOINLINE void mut_pfree(Mut* m, usz n) { // free the first n elements
|
||||||
|
if (m->type==el_B) harr_pfree(taga(m->val), n);
|
||||||
|
else mm_free((Value*) m->val);
|
||||||
|
}
|
||||||
|
|||||||
@ -79,10 +79,7 @@ static u8 el_or(u8 a, u8 b) {
|
|||||||
#undef M
|
#undef M
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mut_pfree(Mut* m, usz n) { // free the first n elements
|
void mut_pfree(Mut* m, usz n);
|
||||||
if (m->type==el_B) harr_pfree(taga(m->val), n);
|
|
||||||
else mm_free((Value*) m->val);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void mut_set(Mut* m, usz ms, B x) { // consumes x; sets m[ms] to x
|
static void mut_set(Mut* m, usz ms, B x) { // consumes x; sets m[ms] to x
|
||||||
again:
|
again:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user