/[anubis]/anubis/src/regex.c
ViewVC logotype

Diff of /anubis/src/regex.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by gray, Sun Jun 29 09:44:57 2003 UTC revision 1.13 by gray, Sun Jun 29 15:02:34 2003 UTC
# Line 103  regex_vtab_lookup(int flags) Line 103  regex_vtab_lookup(int flags)
103    
104    
105  /* ************************** Interface Functions ************************** */  /* ************************** Interface Functions ************************** */
106    void
107    regex_print_flags(int flags)
108    {
109            printf(":");
110            if (flags & R_EXACT)
111                    printf("exact");
112            else if (flags & R_POSIX)
113                    printf("posix");
114            else if (flags & R_PERLRE)
115                    printf("perl");
116    
117            if (flags & R_SCASE)
118                    printf(" :scase");
119            if (flags & R_BASIC)
120                    printf(" :basic");
121    }
122    
123    void
124    anubis_regex_print(RC_REGEX *re)
125    {
126            regex_print_flags(re->flags);
127            printf(" [%s]", anubis_regex_source(re));
128    }
129    
130  int  int
131  anubis_regex_match(RC_REGEX *re, char *line, int *refc, char ***refv)  anubis_regex_match(RC_REGEX *re, char *line, int *refc, char ***refv)
132  {  {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26