Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • style.c

    rd43edd2 r1fdab04  
    22#include "owl.h"
    33
    4 void owl_style_create_perl(owl_style *s, char *name, SV *obj)
     4void owl_style_create_perl(owl_style *s, const char *name, SV *obj)
    55{
    66  s->name=owl_strdup(name);
     
    88}
    99
    10 int owl_style_matches_name(owl_style *s, char *name)
     10int owl_style_matches_name(const owl_style *s, const char *name)
    1111{
    1212  if (!strcmp(s->name, name)) return(1);
     
    1414}
    1515
    16 char *owl_style_get_name(owl_style *s)
     16const char *owl_style_get_name(const owl_style *s)
    1717{
    1818  return(s->name);
    1919}
    2020
    21 char *owl_style_get_description(owl_style *s)
     21const char *owl_style_get_description(const owl_style *s)
    2222{
    2323  SV *sv = NULL;
     
    3939 * 'fm' should already be be initialzed
    4040 */
    41 void owl_style_get_formattext(owl_style *s, owl_fmtext *fm, owl_message *m)
     41void owl_style_get_formattext(const owl_style *s, owl_fmtext *fm, const owl_message *m)
    4242{
    43   char *body, *indent;
     43  const char *body;
     44  char *indent;
    4445  int curlen;
    4546
     
    7879}
    7980
    80 int owl_style_validate(owl_style *s) {
     81int owl_style_validate(const owl_style *s) {
    8182  if (!s || !s->perlobj || !SvOK(s->perlobj)) {
    8283    return -1;
Note: See TracChangeset for help on using the changeset viewer.