Changes in regex.c [41c9a96:89b2daf]
Legend:
- Unmodified
- Added
- Removed
-
regex.c
r41c9a96 r89b2daf 8 8 } 9 9 10 int owl_regex_create(owl_regex *re, c har *string)10 int owl_regex_create(owl_regex *re, const char *string) 11 11 { 12 12 int ret; 13 13 char buff1[LINE]; 14 c har *ptr;14 const char *ptr; 15 15 16 16 re->string=owl_strdup(string); … … 36 36 } 37 37 38 int owl_regex_create_quoted(owl_regex *re, c har *string)38 int owl_regex_create_quoted(owl_regex *re, const char *string) 39 39 { 40 40 char *quoted; … … 46 46 } 47 47 48 int owl_regex_compare( owl_regex *re,char *string, int *start, int *end)48 int owl_regex_compare(const owl_regex *re, const char *string, int *start, int *end) 49 49 { 50 50 int out, ret; … … 68 68 } 69 69 70 int owl_regex_is_set( owl_regex *re)70 int owl_regex_is_set(const owl_regex *re) 71 71 { 72 72 if (re->string) return(1); … … 74 74 } 75 75 76 c har *owl_regex_get_string(owl_regex *re)76 const char *owl_regex_get_string(const owl_regex *re) 77 77 { 78 78 return(re->string); 79 79 } 80 80 81 void owl_regex_copy( owl_regex *a, owl_regex *b)81 void owl_regex_copy(const owl_regex *a, owl_regex *b) 82 82 { 83 83 owl_regex_create(b, a->string);
Note: See TracChangeset
for help on using the changeset viewer.