/[pcre]/code/trunk/internal.h
ViewVC logotype

Diff of /code/trunk/internal.h

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

revision 35 by nigel, Sat Feb 24 21:39:05 2007 UTC revision 39 by nigel, Sat Feb 24 21:39:13 2007 UTC
# Line 3  Line 3 
3  *************************************************/  *************************************************/
4    
5    
 #define PCRE_VERSION       "2.06 21-Jun-1999"  
   
   
6  /* This is a library of functions to support regular expressions whose syntax  /* This is a library of functions to support regular expressions whose syntax
7  and semantics are as close as possible to those of the Perl 5 language. See  and semantics are as close as possible to those of the Perl 5 language. See
8  the file Tech.Notes for some information on the internals.  the file Tech.Notes for some information on the internals.
# Line 67  Standard C system should have one. */ Line 64  Standard C system should have one. */
64    
65  #define PCRE_IMS (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)  #define PCRE_IMS (PCRE_CASELESS|PCRE_MULTILINE|PCRE_DOTALL)
66    
67  /* Private options flags start at the most significant end of the two bytes.  /* Private options flags start at the most significant end of the four bytes,
68  The public options defined in pcre.h start at the least significant end. Make  but skip the top bit so we can use ints for convenience without getting tangled
69  sure they don't overlap! */  with negative values. The public options defined in pcre.h start at the least
70    significant end. Make sure they don't overlap, though now that we have expanded
71  #define PCRE_FIRSTSET           0x8000  /* first_char is set */  to four bytes there is plenty of space. */
72  #define PCRE_STARTLINE          0x4000  /* start after \n for multiline */  
73  #define PCRE_INGROUP            0x2000  /* compiling inside a group */  #define PCRE_FIRSTSET      0x40000000  /* first_char is set */
74    #define PCRE_REQCHSET      0x20000000  /* req_char is set */
75    #define PCRE_STARTLINE     0x10000000  /* start after \n for multiline */
76    #define PCRE_INGROUP       0x08000000  /* compiling inside a group */
77    #define PCRE_ICHANGED      0x04000000  /* i option changes within regex */
78    
79  /* Options for the "extra" block produced by pcre_study(). */  /* Options for the "extra" block produced by pcre_study(). */
80    
# Line 86  time, run time or study time, respective Line 87  time, run time or study time, respective
87    (PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \    (PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \
88     PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY)     PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY)
89    
90  #define PUBLIC_EXEC_OPTIONS (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL)  #define PUBLIC_EXEC_OPTIONS \
91      (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY)
92    
93  #define PUBLIC_STUDY_OPTIONS 0   /* None defined */  #define PUBLIC_STUDY_OPTIONS 0   /* None defined */
94    
# Line 264  runs on as long as necessary after the e Line 266  runs on as long as necessary after the e
266  typedef struct real_pcre {  typedef struct real_pcre {
267    unsigned long int magic_number;    unsigned long int magic_number;
268    const unsigned char *tables;    const unsigned char *tables;
269    unsigned short int options;    unsigned long int options;
270    unsigned char top_bracket;    uschar top_bracket;
271    unsigned char top_backref;    uschar top_backref;
272    unsigned char first_char;    uschar first_char;
273    unsigned char code[1];    uschar req_char;
274      uschar code[1];
275  } real_pcre;  } real_pcre;
276    
277  /* The real format of the extra block returned by pcre_study(). */  /* The real format of the extra block returned by pcre_study(). */
278    
279  typedef struct real_pcre_extra {  typedef struct real_pcre_extra {
280    unsigned char options;    uschar options;
281    unsigned char start_bits[32];    uschar start_bits[32];
282  } real_pcre_extra;  } real_pcre_extra;
283    
284    
# Line 284  doing the compiling, so that they are th Line 287  doing the compiling, so that they are th
287    
288  typedef struct compile_data {  typedef struct compile_data {
289    const uschar *lcc;            /* Points to lower casing table */    const uschar *lcc;            /* Points to lower casing table */
290    const uschar *fcc;            /* Points to case-flippint table */    const uschar *fcc;            /* Points to case-flipping table */
291    const uschar *cbits;          /* Points to character type table */    const uschar *cbits;          /* Points to character type table */
292    const uschar *ctypes;         /* Points to table of type maps */    const uschar *ctypes;         /* Points to table of type maps */
293  } compile_data;  } compile_data;
# Line 303  typedef struct match_data { Line 306  typedef struct match_data {
306    BOOL   notbol;                /* NOTBOL flag */    BOOL   notbol;                /* NOTBOL flag */
307    BOOL   noteol;                /* NOTEOL flag */    BOOL   noteol;                /* NOTEOL flag */
308    BOOL   endonly;               /* Dollar not before final \n */    BOOL   endonly;               /* Dollar not before final \n */
309      BOOL   notempty;              /* Empty string match not wanted */
310    const uschar *start_subject;  /* Start of the subject string */    const uschar *start_subject;  /* Start of the subject string */
311    const uschar *end_subject;    /* End of the subject string */    const uschar *end_subject;    /* End of the subject string */
312      const uschar *start_match;    /* Start of this match attempt */
313    const uschar *end_match_ptr;  /* Subject position at end match */    const uschar *end_match_ptr;  /* Subject position at end match */
314    int     end_offset_top;       /* Highwater mark at end of match */    int     end_offset_top;       /* Highwater mark at end of match */
315  } match_data;  } match_data;

Legend:
Removed from v.35  
changed lines
  Added in v.39

  ViewVC Help
Powered by ViewVC 1.1.5