Changes in style.c [d43edd2:1fdab04]
Legend:
- Unmodified
- Added
- Removed
-
style.c
rd43edd2 r1fdab04 2 2 #include "owl.h" 3 3 4 void owl_style_create_perl(owl_style *s, c har *name, SV *obj)4 void owl_style_create_perl(owl_style *s, const char *name, SV *obj) 5 5 { 6 6 s->name=owl_strdup(name); … … 8 8 } 9 9 10 int owl_style_matches_name( owl_style *s,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 c har *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 c har *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,owl_message *m)41 void owl_style_get_formattext(const owl_style *s, owl_fmtext *fm, const owl_message *m) 42 42 { 43 char *body, *indent; 43 const char *body; 44 char *indent; 44 45 int curlen; 45 46 … … 78 79 } 79 80 80 int owl_style_validate( owl_style *s) {81 int owl_style_validate(const owl_style *s) { 81 82 if (!s || !s->perlobj || !SvOK(s->perlobj)) { 82 83 return -1;
Note: See TracChangeset
for help on using the changeset viewer.