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

Showing the changes to src (1 of 1 file). Show all

Unified · Split

src/sl.c+2−2
@@ -1263,9 +1263,9 @@ map_seq(sl_v rt, sl_v *args, int nargs) · 1262 unmodified lines
1263 POPN(pargs+1);1263 POPN(pargs+1);
1264 switch(rtype){1264 switch(rtype){
1265 case RT_LIST:1265 case RT_LIST:
1266 sl_gc_handle(&v);1266 PUSH(v);
1267 c = alloc_cons();1267 c = alloc_cons();
1268 sl_free_gc_handles(1);1268 v = POP();
1269 car_(c) = v;1269 car_(c) = v;
1270 cdr_(c) = sl_nil;1270 cdr_(c) = sl_nil;
1271 if(n == 0)1271 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