Branch: Tag:

2000-04-06

2000-04-06 20:17:05 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

better list-walking code...

Rev: src/builtin_functions.c:1.249
Rev: src/mapping.c:1.71
Rev: src/multiset.c:1.17
Rev: src/object.c:1.96
Rev: src/pike_macros.h:1.13
Rev: src/program.c:1.221

16:   #include "gc.h"   #include "security.h"    - RCSID("$Id: multiset.c,v 1.16 1999/10/29 03:36:48 mast Exp $"); + RCSID("$Id: multiset.c,v 1.17 2000/04/06 20:17:05 hubbe Exp $");      struct multiset *first_multiset;   
317:    add_ref(l);    free_svalues(ITEM(l->ind), l->ind->size, l->ind->type_field);    l->ind->size=0; -  next=l->next; +     -  free_multiset(l); +  SET_NEXT_AND_FREE(l, free_multiset);    }else{    next=l->next;    }