Changeset f25df21 for functions.c
- Timestamp:
- Mar 24, 2011, 4:05:29 PM (12 years ago)
- Branches:
- master, release-1.8, release-1.9
- Children:
- c809f5e
- Parents:
- e56303f
- git-author:
- David Benjamin <davidben@mit.edu> (03/08/11 15:04:52)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/24/11 16:05:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r4479497 rf25df21 53 53 owl_fmtext_append_bold(&fm, "Commands: "); 54 54 owl_fmtext_append_normal(&fm, "(use 'show command <name>' for details)\n"); 55 owl_list_create(&l); 55 56 owl_cmddict_get_names(owl_global_get_cmddict(&g), &l); 56 57 owl_fmtext_append_list(&fm, &l, "\n", owl_function_cmd_describe); 57 58 owl_fmtext_append_normal(&fm, "\n"); 58 59 owl_function_popless_fmtext(&fm); 59 owl_ cmddict_namelist_cleanup(&l);60 owl_list_cleanup(&l, g_free); 60 61 owl_fmtext_cleanup(&fm); 61 62 } … … 85 86 owl_fmtext_init_null(&fm); 86 87 owl_fmtext_append_bold(&fm, "Styles:\n"); 88 owl_list_create(&l); 87 89 owl_global_get_style_names(&g, &l); 88 90 owl_fmtext_append_list(&fm, &l, "\n", owl_function_style_describe); … … 1623 1625 g_string_append_printf(str, "%-20s = %s\n", "VARIABLE", "VALUE"); 1624 1626 g_string_append_printf(str, "%-20s %s\n", "--------", "-----"); 1627 owl_list_create(&varnames); 1625 1628 owl_variable_dict_get_names(owl_global_get_vardict(&g), &varnames); 1626 1629 numvarnames = owl_list_get_size(&varnames); … … 1637 1640 } 1638 1641 g_string_append(str, "\n"); 1639 owl_ variable_dict_namelist_cleanup(&varnames);1642 owl_list_cleanup(&varnames, g_free); 1640 1643 1641 1644 owl_function_popless_text(str->str); … … 1653 1656 owl_fmtext_append_bold(&fm, 1654 1657 "Variables: (use 'show variable <name>' for details)\n"); 1658 owl_list_create(&varnames); 1655 1659 owl_variable_dict_get_names(owl_global_get_vardict(&g), &varnames); 1656 1660 numvarnames = owl_list_get_size(&varnames); … … 1661 1665 } 1662 1666 } 1663 owl_ variable_dict_namelist_cleanup(&varnames);1667 owl_list_cleanup(&varnames, g_free); 1664 1668 owl_function_popless_fmtext(&fm); 1665 1669 owl_fmtext_cleanup(&fm); … … 2874 2878 owl_fmtext_append_bold(&fm, "Keymaps: "); 2875 2879 owl_fmtext_append_normal(&fm, "(use 'show keymap <name>' for details)\n"); 2880 owl_list_create(&l); 2876 2881 owl_keyhandler_get_keymap_names(kh, &l); 2877 2882 owl_fmtext_append_list(&fm, &l, "\n", owl_function_keymap_summary); … … 2888 2893 2889 2894 owl_function_popless_fmtext(&fm); 2890 owl_ keyhandler_keymap_namelist_cleanup(&l);2895 owl_list_cleanup(&l, g_free); 2891 2896 owl_fmtext_cleanup(&fm); 2892 2897 }
Note: See TracChangeset
for help on using the changeset viewer.