Changeset 1fdab04
- Timestamp:
- Aug 15, 2009, 7:08:19 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- eaa9053
- Parents:
- c08c70a
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:02)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rc08c70a r1fdab04 95 95 const char *desc; 96 96 char *s; 97 owl_style *style;97 const owl_style *style; 98 98 style = owl_global_get_style_by_name(&g, name); 99 99 if (style) { … … 1548 1548 owl_view *v; 1549 1549 const owl_message *m; 1550 owl_style *s;1550 const owl_style *s; 1551 1551 owl_fmtext fm; 1552 1552 … … 3362 3362 void owl_function_change_style(owl_view *v, const char *stylename) 3363 3363 { 3364 owl_style *s;3364 const owl_style *s; 3365 3365 3366 3366 s=owl_global_get_style_by_name(&g, stylename); … … 3378 3378 { 3379 3379 owl_view *v; 3380 owl_style *s;3380 const owl_style *s; 3381 3381 3382 3382 v=owl_global_get_current_view(&g); -
global.c
rc08c70a r1fdab04 843 843 /* Return the style with name 'name'. If it does not exist return 844 844 * NULL */ 845 owl_style *owl_global_get_style_by_name(owl_global *g, const char *name)845 const owl_style *owl_global_get_style_by_name(owl_global *g, const char *name) 846 846 { 847 847 return owl_dict_find_element(&(g->styledict), name); -
message.c
rc08c70a r1fdab04 145 145 void owl_message_format(owl_message *m) 146 146 { 147 owl_style *s;147 const owl_style *s; 148 148 owl_view *v; 149 149 -
owl.c
re19eb97 r1fdab04 48 48 const char *confdir; 49 49 owl_filter *f; 50 owl_style *s;50 const owl_style *s; 51 51 time_t nexttime, now; 52 52 struct tm *today; -
owl.h
rc08c70a r1fdab04 421 421 owl_filter *filter; 422 422 owl_messagelist ml; 423 owl_style *style;423 const owl_style *style; 424 424 } owl_view; 425 425 -
style.c
rc08c70a r1fdab04 8 8 } 9 9 10 int owl_style_matches_name( owl_style *s, const char *name)10 int owl_style_matches_name(const owl_style *s, const char *name) 11 11 { 12 12 if (!strcmp(s->name, name)) return(1); … … 14 14 } 15 15 16 const char *owl_style_get_name( owl_style *s)16 const char *owl_style_get_name(const owl_style *s) 17 17 { 18 18 return(s->name); 19 19 } 20 20 21 const char *owl_style_get_description( owl_style *s)21 const char *owl_style_get_description(const owl_style *s) 22 22 { 23 23 SV *sv = NULL; … … 39 39 * 'fm' should already be be initialzed 40 40 */ 41 void owl_style_get_formattext( owl_style *s, owl_fmtext *fm, const owl_message *m)41 void owl_style_get_formattext(const owl_style *s, owl_fmtext *fm, const owl_message *m) 42 42 { 43 43 const char *body; … … 79 79 } 80 80 81 int owl_style_validate( owl_style *s) {81 int owl_style_validate(const owl_style *s) { 82 82 if (!s || !s->perlobj || !SvOK(s->perlobj)) { 83 83 return -1; -
view.c
re19eb97 r1fdab04 2 2 #include "owl.h" 3 3 4 void owl_view_create(owl_view *v, const char *name, owl_filter *f, owl_style *s)4 void owl_view_create(owl_view *v, const char *name, owl_filter *f, const owl_style *s) 5 5 { 6 6 v->name=owl_strdup(name); … … 57 57 } 58 58 59 void owl_view_set_style(owl_view *v, owl_style *s)59 void owl_view_set_style(owl_view *v, const owl_style *s) 60 60 { 61 61 v->style=s; 62 62 } 63 63 64 owl_style *owl_view_get_style(owl_view *v)64 const owl_style *owl_view_get_style(owl_view *v) 65 65 { 66 66 return(v->style);
Note: See TracChangeset
for help on using the changeset viewer.