Changeset 1fdab04 for style.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:19 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:
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)
Message:
Add const qualifiers for owl_style *.

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

Legend:

Unmodified
Added
Removed
  • style.c

    rc08c70a r1fdab04  
    88}
    99
    10 int owl_style_matches_name(owl_style *s, const 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 const 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 const 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, const owl_message *m)
     41void owl_style_get_formattext(const owl_style *s, owl_fmtext *fm, const owl_message *m)
    4242{
    4343  const char *body;
     
    7979}
    8080
    81 int owl_style_validate(owl_style *s) {
     81int owl_style_validate(const owl_style *s) {
    8282  if (!s || !s->perlobj || !SvOK(s->perlobj)) {
    8383    return -1;
Note: See TracChangeset for help on using the changeset viewer.