Changeset 8c59178


Ignore:
Timestamp:
Mar 7, 2010, 10:26:02 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:
5e5f08f
Parents:
7ab0020
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 20:34:32)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:26:02)
Message:
Rename owl_list_free_all to owl_list_cleanup.

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

Legend:

Unmodified
Added
Removed
  • buddylist.c

    r80b5c42 r8c59178  
    131131void owl_buddylist_clear(owl_buddylist *bl)
    132132{
    133   owl_list_free_all(&(bl->buddies), (void (*)(void *))owl_buddy_delete);
     133  owl_list_cleanup(&(bl->buddies), (void (*)(void *))owl_buddy_delete);
    134134  owl_list_create(&(bl->buddies));
    135135}
     
    137137void owl_buddylist_free(owl_buddylist *bl)
    138138{
    139   owl_list_free_all(&(bl->buddies), (void (*)(void *))owl_buddy_delete);
     139  owl_list_cleanup(&(bl->buddies), (void (*)(void *))owl_buddy_delete);
    140140}
  • cmd.c

    r40d22cf r8c59178  
    4343
    4444void owl_cmddict_namelist_free(owl_list *l) {
    45   owl_list_free_all(l, owl_free);
     45  owl_list_cleanup(l, owl_free);
    4646}
    4747
  • functions.c

    r7ab0020 r8c59178  
    8888  owl_fmtext_append_normal(&fm, "\n");
    8989  owl_function_popless_fmtext(&fm);
    90   owl_list_free_all(&l, owl_free);
     90  owl_list_cleanup(&l, owl_free);
    9191  owl_fmtext_cleanup(&fm);
    9292}
     
    30823082        }
    30833083      }
    3084       owl_list_free_all(&anyone, owl_free);
     3084      owl_list_cleanup(&anyone, owl_free);
    30853085    }
    30863086  }
     
    34593459  }
    34603460
    3461   owl_list_free_all(&anyone, owl_free);
     3461  owl_list_cleanup(&anyone, owl_free);
    34623462#endif
    34633463}
  • keymap.c

    r36486be r8c59178  
    2121  owl_free(km->name);
    2222  owl_free(km->desc);
    23   owl_list_free_all(&km->bindings, (void(*)(void*))owl_keybinding_free_all);
     23  owl_list_cleanup(&km->bindings, (void (*)(void *))owl_keybinding_free_all);
    2424}
    2525
     
    175175void owl_keyhandler_keymap_namelist_free(owl_list *l)
    176176{
    177   owl_list_free_all(l, owl_free);
     177  owl_list_cleanup(l, owl_free);
    178178}
    179179
  • list.c

    re9c6fc8 r8c59178  
    7777}
    7878
    79 void owl_list_free_all(owl_list *l, void (*elefree)(void *))
     79void owl_list_cleanup(owl_list *l, void (*elefree)(void *))
    8080{
    8181  int i;
  • perlconfig.c

    r901b931 r8c59178  
    6969    (void)hv_store(ret, key, strlen(key), to_sv(element), 0);
    7070  }
    71   owl_list_free_all(&l, owl_free);
     71  owl_list_cleanup(&l, owl_free);
    7272
    7373  return ret;
  • perlglue.xs

    r7ab0020 r8c59178  
    333333                RETVAL = owl_new_av(&fl, (SV*(*)(const void*))owl_new_sv);
    334334                sv_2mortal((SV*)RETVAL);
    335                 owl_list_free_all(&fl, owl_free);
     335                owl_list_cleanup(&fl, owl_free);
    336336        }
    337337        OUTPUT:
     
    352352                RETVAL
    353353        CLEANUP:
    354                 owl_list_free_all(&l, owl_free);
     354                owl_list_cleanup(&l, owl_free);
    355355
    356356
     
    369369                RETVAL
    370370        CLEANUP:
    371                 owl_list_free_all(&l, owl_free);
     371                owl_list_cleanup(&l, owl_free);
    372372
    373373
     
    388388                RETVAL
    389389        CLEANUP:
    390                 owl_list_free_all(&l, owl_free);
     390                owl_list_cleanup(&l, owl_free);
    391391
    392392void
  • tester.c

    r0fef6eb r8c59178  
    135135  FAIL_UNLESS("get_keys result val",0==strcmp("c",owl_list_get_element(&l,2)));
    136136
    137   owl_list_free_all(&l, owl_free);
     137  owl_list_cleanup(&l, owl_free);
    138138  owl_dict_free_all(&d, NULL);
    139139
  • variable.c

    r0fef6eb r8c59178  
    621621
    622622void owl_variable_dict_namelist_free(owl_list *l) {
    623   owl_list_free_all(l, owl_free);
     623  owl_list_cleanup(l, owl_free);
    624624}
    625625
  • zwrite.c

    r40d22cf r8c59178  
    352352void owl_zwrite_free(owl_zwrite *z)
    353353{
    354   owl_list_free_all(&(z->recips), &owl_free);
     354  owl_list_cleanup(&(z->recips), &owl_free);
    355355  if (z->zwriteline) owl_free(z->zwriteline);
    356356  if (z->class) owl_free(z->class);
Note: See TracChangeset for help on using the changeset viewer.