Skip to content
This repository
Browse code

Rename owl_regex_free to owl_regex_cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
  • Loading branch information...
commit 5cbc929b5aa24a433137592ff0444bb810ac0afc 1 parent 963b471
Anders Kaseorg authored February 28, 2010
2  filterelement.c
@@ -334,7 +334,7 @@ void owl_filterelement_free(owl_filterelement *fe)
334 334
     owl_filterelement_free(fe->right);
335 335
     owl_free(fe->right);
336 336
   }
337  
-  owl_regex_free(&(fe->re));
  337
+  owl_regex_cleanup(&(fe->re));
338 338
 }
339 339
 
340 340
 void owl_filterelement_print(const owl_filterelement *fe, GString *buf)
2  functions.c
@@ -2884,7 +2884,7 @@ void owl_function_search_start(const char *string, int direction)
2884 2884
 
2885 2885
   if (string && owl_regex_create_quoted(&re, string) == 0) {
2886 2886
     owl_global_set_search_re(&g, &re);
2887  
-    owl_regex_free(&re);
  2887
+    owl_regex_cleanup(&re);
2888 2888
   } else {
2889 2889
     owl_global_set_search_re(&g, NULL);
2890 2890
   }
2  global.c
@@ -743,7 +743,7 @@ int owl_global_is_search_active(const owl_global *g) {
743 743
 
744 744
 void owl_global_set_search_re(owl_global *g, const owl_regex *re) {
745 745
   if (owl_regex_is_set(&g->search_re)) {
746  
-    owl_regex_free(&g->search_re);
  746
+    owl_regex_cleanup(&g->search_re);
747 747
     owl_regex_init(&g->search_re);
748 748
   }
749 749
   if (re != NULL)
2  regex.c
@@ -83,7 +83,7 @@ void owl_regex_copy(const owl_regex *a, owl_regex *b)
83 83
   owl_regex_create(b, a->string);
84 84
 }
85 85
 
86  
-void owl_regex_free(owl_regex *re)
  86
+void owl_regex_cleanup(owl_regex *re)
87 87
 {
88 88
     if (re->string) {
89 89
         owl_free(re->string);

0 notes on commit 5cbc929

Please sign in to comment.
Something went wrong with that request. Please try again.