/[anubis]/anubis/src/rcfile.h
ViewVC logotype

Diff of /anubis/src/rcfile.h

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

revision 1.1 by gray, Wed Feb 5 21:44:09 2003 UTC revision 1.2 by gray, Thu Feb 6 15:51:50 2003 UTC
# Line 28  typedef struct rc_cond RC_COND; Line 28  typedef struct rc_cond RC_COND;
28  typedef struct rc_asgn RC_ASGN;  typedef struct rc_asgn RC_ASGN;
29  typedef struct rc_node RC_NODE;  typedef struct rc_node RC_NODE;
30  typedef struct rc_bool RC_BOOL;  typedef struct rc_bool RC_BOOL;
 typedef struct rc_regex RC_REGEX;  
31    
32  struct rc_section {          /* RC Section */  struct rc_section {          /* RC Section */
33          RC_SECTION *next;    /* Link to the next section */          RC_SECTION *next;    /* Link to the next section */
# Line 64  enum rc_node_type {          /* Executab Line 63  enum rc_node_type {          /* Executab
63          rc_node_re           /* Regular expression */          rc_node_re           /* Regular expression */
64  };  };
65    
 struct rc_regex {            /* Regular expression */  
         char *src;           /* Raw-text representation */    
         int perlre;          /* Is it Perl style? */  
         union {  
                 regex_t re;  /* POSIX regex */  
 #ifdef HAVE_PCRE  
                 pcre pre;    /* Perl */  
 #endif  
         } v;  
 };  
   
66  struct rc_node {             /* Executable node */  struct rc_node {             /* Executable node */
67          enum rc_node_type type;  /* Node type */          enum rc_node_type type;  /* Node type */
68          union {          union {
69                  RC_REGEX re;                        RC_REGEX *re;      
70                  RC_BOOL bool;                  RC_BOOL bool;
71          } v;          } v;
72  };  };
# Line 157  void rc_set_debug_level(char *); Line 145  void rc_set_debug_level(char *);
145  int rc_open(char *name);  int rc_open(char *name);
146    
147  struct rc_secdef *anubis_add_section(char *name);  struct rc_secdef *anubis_add_section(char *name);
148  int anubis_regexp_match(RC_REGEX *re, char *line, int *refc, char ***refv);  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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