Changeset f1e629d for functions.c
- Timestamp:
- Jul 6, 2003, 6:42:06 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 5d9c664
- Parents:
- 675ce49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
ra352335c rf1e629d 78 78 } 79 79 80 void owl_function_show_styles() { 81 owl_list l; 82 owl_fmtext fm; 83 84 owl_fmtext_init_null(&fm); 85 owl_fmtext_append_bold(&fm, "Styles:\n"); 86 owl_global_get_style_names(&g, &l); 87 owl_fmtext_append_list(&fm, &l, "\n", owl_function_style_describe); 88 owl_fmtext_append_normal(&fm, "\n"); 89 owl_function_popless_fmtext(&fm); 90 owl_list_free_all(&l, owl_free); 91 owl_fmtext_free(&fm); 92 } 93 94 char *owl_function_style_describe(void *name) { 95 char *desc, *s; 96 owl_style *style; 97 style = owl_global_get_style_by_name(&g, name); 98 if (style) { 99 desc = owl_style_get_description(style); 100 } else { 101 desc = "???"; 102 } 103 s = owl_sprintf("%-20s - %s%s", name, 104 0==owl_style_validate(style)?"":"[INVALID] ", 105 desc); 106 return s; 107 } 80 108 81 109 char *owl_function_cmd_describe(void *name) … … 741 769 742 770 /* execute the commands in shutdown */ 743 ret = owl_ config_execute("owl::shutdown();");771 ret = owl_perlconfig_execute("owl::shutdown();"); 744 772 if (ret) owl_free(ret); 745 773 … … 2051 2079 buff = skiptokens(buff, 1); 2052 2080 2053 perlout = owl_ config_execute(buff);2081 perlout = owl_perlconfig_execute(buff); 2054 2082 if (perlout) { 2055 2083 if (type==1) {
Note: See TracChangeset
for help on using the changeset viewer.