Permalink
Browse files

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...
1 parent 963b471 commit 5cbc929b5aa24a433137592ff0444bb810ac0afc @andersk andersk committed Feb 28, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 filterelement.c
  2. +1 −1 functions.c
  3. +1 −1 global.c
  4. +1 −1 regex.c
View
@@ -334,7 +334,7 @@ void owl_filterelement_free(owl_filterelement *fe)
owl_filterelement_free(fe->right);
owl_free(fe->right);
}
- owl_regex_free(&(fe->re));
+ owl_regex_cleanup(&(fe->re));
}
void owl_filterelement_print(const owl_filterelement *fe, GString *buf)
View
@@ -2884,7 +2884,7 @@ void owl_function_search_start(const char *string, int direction)
if (string && owl_regex_create_quoted(&re, string) == 0) {
owl_global_set_search_re(&g, &re);
- owl_regex_free(&re);
+ owl_regex_cleanup(&re);
} else {
owl_global_set_search_re(&g, NULL);
}
View
@@ -743,7 +743,7 @@ int owl_global_is_search_active(const owl_global *g) {
void owl_global_set_search_re(owl_global *g, const owl_regex *re) {
if (owl_regex_is_set(&g->search_re)) {
- owl_regex_free(&g->search_re);
+ owl_regex_cleanup(&g->search_re);
owl_regex_init(&g->search_re);
}
if (re != NULL)
View
@@ -83,7 +83,7 @@ void owl_regex_copy(const owl_regex *a, owl_regex *b)
owl_regex_create(b, a->string);
}
-void owl_regex_free(owl_regex *re)
+void owl_regex_cleanup(owl_regex *re)
{
if (re->string) {
owl_free(re->string);

0 comments on commit 5cbc929

Please sign in to comment.