Changeset 89b2daf for regex.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:20 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
bd65108
Parents:
3eb599d
git-author:
Anders Kaseorg <andersk@mit.edu> (07/22/09 02:19:16)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
Message:
Add const qualifiers for owl_regex *.

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

Legend:

Unmodified
Added
Removed
  • regex.c

    re19eb97 r89b2daf  
    4646}
    4747
    48 int owl_regex_compare(owl_regex *re, const char *string, int *start, int *end)
     48int owl_regex_compare(const owl_regex *re, const char *string, int *start, int *end)
    4949{
    5050  int out, ret;
     
    6868}
    6969
    70 int owl_regex_is_set(owl_regex *re)
     70int owl_regex_is_set(const owl_regex *re)
    7171{
    7272  if (re->string) return(1);
     
    7474}
    7575
    76 const char *owl_regex_get_string(owl_regex *re)
     76const char *owl_regex_get_string(const owl_regex *re)
    7777{
    7878  return(re->string);
    7979}
    8080
    81 void owl_regex_copy(owl_regex *a, owl_regex *b)
     81void owl_regex_copy(const owl_regex *a, owl_regex *b)
    8282{
    8383  owl_regex_create(b, a->string);
Note: See TracChangeset for help on using the changeset viewer.