Changeset bf7aa1d


Ignore:
Timestamp:
Mar 7, 2010, 10:26:12 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d537350
Parents:
a1074de
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 22:24:07)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:26:12)
Message:
Rename owl_dict_free_all to owl_dict_cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dict.c

    ra1074de rbf7aa1d  
    131131
    132132/* elefree should free the value as well */
    133 void owl_dict_free_all(owl_dict *d, void (*elefree)(void *)) {
     133void owl_dict_cleanup(owl_dict *d, void (*elefree)(void *))
     134{
    134135  int i;
    135136
     
    142143
    143144void owl_dict_free_simple(owl_dict *d) {
    144   owl_dict_free_all(d, NULL);
     145  owl_dict_cleanup(d, NULL);
    145146}
    146147
  • tester.c

    ra1074de rbf7aa1d  
    136136
    137137  owl_list_cleanup(&l, owl_free);
    138   owl_dict_free_all(&d, NULL);
     138  owl_dict_cleanup(&d, NULL);
    139139
    140140  /*  if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n"); */
  • variable.c

    r0e57335 rbf7aa1d  
    612612void owl_variable_dict_cleanup(owl_vardict *d)
    613613{
    614   owl_dict_free_all(d, (void (*)(void *))owl_variable_delete);
     614  owl_dict_cleanup(d, (void (*)(void *))owl_variable_delete);
    615615}
    616616
Note: See TracChangeset for help on using the changeset viewer.