Permalink
Browse files

Rename owl_variable_dict_namelist_free to owl_variable_dict_namelist_…

…cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
  • Loading branch information...
1 parent 5e5f08f commit 0e573358250a27efbfb4417dd465d3a065b455ec @andersk andersk committed Feb 28, 2010
Showing with 6 additions and 5 deletions.
  1. +2 −2 functions.c
  2. +1 −1 help.c
  3. +3 −2 variable.c
View
4 functions.c
@@ -1629,7 +1629,7 @@ void owl_function_printallvars(void)
}
}
g_string_append(str, "\n");
- owl_variable_dict_namelist_free(&varnames);
+ owl_variable_dict_namelist_cleanup(&varnames);
owl_function_popless_text(str->str);
g_string_free(str, TRUE);
@@ -1653,7 +1653,7 @@ void owl_function_show_variables(void)
owl_variable_describe(owl_global_get_vardict(&g), varname, &fm);
}
}
- owl_variable_dict_namelist_free(&varnames);
+ owl_variable_dict_namelist_cleanup(&varnames);
owl_function_popless_fmtext(&fm);
owl_fmtext_cleanup(&fm);
}
View
2 help.c
@@ -134,7 +134,7 @@ void owl_help(void)
owl_variable_describe(owl_global_get_vardict(&g), varname, &fm);
}
}
- owl_variable_dict_namelist_free(&varnames);
+ owl_variable_dict_namelist_cleanup(&varnames);
owl_fmtext_append_normal(&fm, "\n");
View
5 variable.c
@@ -614,12 +614,13 @@ void owl_variable_dict_cleanup(owl_vardict *d)
owl_dict_free_all(d, (void (*)(void *))owl_variable_delete);
}
-/* free the list with owl_variable_dict_namelist_free */
+/* free the list with owl_variable_dict_namelist_cleanup */
void owl_variable_dict_get_names(const owl_vardict *d, owl_list *l) {
owl_dict_get_keys(d, l);
}
-void owl_variable_dict_namelist_free(owl_list *l) {
+void owl_variable_dict_namelist_cleanup(owl_list *l)
+{
owl_list_cleanup(l, owl_free);
}

0 comments on commit 0e57335

Please sign in to comment.