History

map_seq: use stack instead of gc handles

Sigrid Solveig Haflínudóttir committed 3 months ago

Commit ecdfd711 parent 0d9ba221 file · +2 −2Browse files

Unified · Split

src/sl.c+2−2
@@ -1263,9 +1263,9 @@ map_seq(sl_v rt, sl_v *args, int nargs) · 1262 unmodified lines
12631263 POPN(pargs+1);
12641264 switch(rtype){
12651265 case RT_LIST:
1266− sl_gc_handle(&v);
1266+ PUSH(v);
12671267 c = alloc_cons();
1268− sl_free_gc_handles(1);
1268+ v = POP();
12691269 car_(c) = v;
12701270 cdr_(c) = sl_nil;
12711271 if(n == 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t