Changeset e19eb97 for style.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1077891a
Parents:
fa4562c
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for char * and void *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • style.c

    r65b2173 re19eb97  
    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(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(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(owl_style *s)
    2222{
    2323  SV *sv = NULL;
     
    4141void owl_style_get_formattext(owl_style *s, owl_fmtext *fm, owl_message *m)
    4242{
    43   char *body;
     43  const char *body;
    4444  char *indent;
    4545  int curlen;
Note: See TracChangeset for help on using the changeset viewer.