Branch: Tag:

2000-07-06

2000-07-06 23:25:26 by Martin Stjernholm <mast@lysator.liu.se>

Added some do_free_* functions and made them accept a zero argument.

Rev: src/array.c:1.75
Rev: src/mapping.c:1.91
Rev: src/mapping.h:1.26
Rev: src/multiset.c:1.23
Rev: src/multiset.h:1.12
Rev: src/object.c:1.132
Rev: src/stralloc.c:1.84

5:   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.90 2000/07/04 00:43:57 mast Exp $"); + RCSID("$Id: mapping.c,v 1.91 2000/07/06 23:25:26 mast Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"
210:    free((char *) md);   }    + void do_free_mapping(struct mapping *m) + { +  if (m) +  free_mapping(m); + } +    /* This function is used to rehash a mapping without loosing the internal    * order in each hash chain. This is to prevent mappings from becoming    * inefficient just after being rehashed.