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

Diff of /code/trunk/pcre_internal.h

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

revision 412 by ph10, Sat Apr 11 10:34:37 2009 UTC revision 446 by ph10, Tue Sep 15 10:49:50 2009 UTC
# Line 535  Standard C system should have one. */ Line 535  Standard C system should have one. */
535    
536  /* Private flags containing information about the compiled regex. They used to  /* Private flags containing information about the compiled regex. They used to
537  live at the top end of the options word, but that got almost full, so now they  live at the top end of the options word, but that got almost full, so now they
538  are in a 16-bit flags word. */  are in a 16-bit flags word. From release 8.00, PCRE_NOPARTIAL is unused, as
539    the restrictions on partial matching have been lifted. It remains for backwards
540    compatibility. */
541    
542  #define PCRE_NOPARTIAL     0x0001  /* can't use partial with this regex */  #define PCRE_NOPARTIAL     0x0001  /* can't use partial with this regex */
543  #define PCRE_FIRSTSET      0x0002  /* first_byte is set */  #define PCRE_FIRSTSET      0x0002  /* first_byte is set */
# Line 562  time, run time, or study time, respectiv Line 564  time, run time, or study time, respectiv
564     PCRE_JAVASCRIPT_COMPAT)     PCRE_JAVASCRIPT_COMPAT)
565    
566  #define PUBLIC_EXEC_OPTIONS \  #define PUBLIC_EXEC_OPTIONS \
567    (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \    (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NOTEMPTY_ATSTART| \
568     PCRE_PARTIAL|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE| \     PCRE_NO_UTF8_CHECK|PCRE_PARTIAL_HARD|PCRE_PARTIAL_SOFT|PCRE_NEWLINE_BITS| \
569     PCRE_NO_START_OPTIMIZE)     PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE|PCRE_NO_START_OPTIMIZE)
570    
571  #define PUBLIC_DFA_EXEC_OPTIONS \  #define PUBLIC_DFA_EXEC_OPTIONS \
572    (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NO_UTF8_CHECK| \    (PCRE_ANCHORED|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|PCRE_NOTEMPTY_ATSTART| \
573     PCRE_PARTIAL|PCRE_DFA_SHORTEST|PCRE_DFA_RESTART|PCRE_NEWLINE_BITS| \     PCRE_NO_UTF8_CHECK|PCRE_PARTIAL_HARD|PCRE_PARTIAL_SOFT|PCRE_DFA_SHORTEST| \
574     PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE|PCRE_NO_START_OPTIMIZE)     PCRE_DFA_RESTART|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE| \
575       PCRE_NO_START_OPTIMIZE)
576    
577  #define PUBLIC_STUDY_OPTIONS 0   /* None defined */  #define PUBLIC_STUDY_OPTIONS 0   /* None defined */
578    
# Line 1565  typedef struct recursion_info { Line 1568  typedef struct recursion_info {
1568    USPTR save_start;             /* Old value of mstart */    USPTR save_start;             /* Old value of mstart */
1569    int *offset_save;             /* Pointer to start of saved offsets */    int *offset_save;             /* Pointer to start of saved offsets */
1570    int saved_max;                /* Number of saved offsets */    int saved_max;                /* Number of saved offsets */
1571      int offset_top;               /* Current value of offset_top */
1572  } recursion_info;  } recursion_info;
1573    
1574  /* Structure for building a chain of data for holding the values of the subject  /* Structure for building a chain of data for holding the values of the subject
# Line 1599  typedef struct match_data { Line 1603  typedef struct match_data {
1603    BOOL   jscript_compat;        /* JAVASCRIPT_COMPAT flag */    BOOL   jscript_compat;        /* JAVASCRIPT_COMPAT flag */
1604    BOOL   endonly;               /* Dollar not before final \n */    BOOL   endonly;               /* Dollar not before final \n */
1605    BOOL   notempty;              /* Empty string match not wanted */    BOOL   notempty;              /* Empty string match not wanted */
1606    BOOL   partial;               /* PARTIAL flag */    BOOL   notempty_atstart;      /* Empty string match at start not wanted */
1607    BOOL   hitend;                /* Hit the end of the subject at some point */    BOOL   hitend;                /* Hit the end of the subject at some point */
1608    BOOL   bsr_anycrlf;           /* \R is just any CRLF, not full Unicode */    BOOL   bsr_anycrlf;           /* \R is just any CRLF, not full Unicode */
1609    const uschar *start_code;     /* For use when recursing */    const uschar *start_code;     /* For use when recursing */
# Line 1607  typedef struct match_data { Line 1611  typedef struct match_data {
1611    USPTR  end_subject;           /* End of the subject string */    USPTR  end_subject;           /* End of the subject string */
1612    USPTR  start_match_ptr;       /* Start of matched string */    USPTR  start_match_ptr;       /* Start of matched string */
1613    USPTR  end_match_ptr;         /* Subject position at end match */    USPTR  end_match_ptr;         /* Subject position at end match */
1614      USPTR  start_used_ptr;        /* Earliest consulted character */
1615      int    partial;               /* PARTIAL options */
1616    int    end_offset_top;        /* Highwater mark at end of match */    int    end_offset_top;        /* Highwater mark at end of match */
1617    int    capture_last;          /* Most recent capture number */    int    capture_last;          /* Most recent capture number */
1618    int    start_offset;          /* The start offset value */    int    start_offset;          /* The start offset value */
# Line 1623  typedef struct dfa_match_data { Line 1629  typedef struct dfa_match_data {
1629    const uschar *start_code;     /* Start of the compiled pattern */    const uschar *start_code;     /* Start of the compiled pattern */
1630    const uschar *start_subject;  /* Start of the subject string */    const uschar *start_subject;  /* Start of the subject string */
1631    const uschar *end_subject;    /* End of subject string */    const uschar *end_subject;    /* End of subject string */
1632      const uschar *start_used_ptr; /* Earliest consulted character */
1633    const uschar *tables;         /* Character tables */    const uschar *tables;         /* Character tables */
1634      int   start_offset;           /* The start offset value */
1635    int   moptions;               /* Match options */    int   moptions;               /* Match options */
1636    int   poptions;               /* Pattern options */    int   poptions;               /* Pattern options */
1637    int    nltype;                /* Newline type */    int    nltype;                /* Newline type */

Legend:
Removed from v.412  
changed lines
  Added in v.446

  ViewVC Help
Powered by ViewVC 1.1.5