/[pcre]/code/branches/pcre16/pcre_internal.h
ViewVC logotype

Diff of /code/branches/pcre16/pcre_internal.h

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

revision 769 by zherczeg, Sun Nov 27 17:40:33 2011 UTC revision 770 by zherczeg, Mon Nov 28 20:39:30 2011 UTC
# Line 71  script prevents both being selected, but Line 71  script prevents both being selected, but
71  #define SUPPORT_UTF8 1  #define SUPPORT_UTF8 1
72  #endif  #endif
73    
74    /* If SUPPORT_UCP is defined, SUPPORT_UTF16 must also be defined. The
75    "configure" script ensures this, but not everybody uses "configure". */
76    
77    #if defined SUPPORT_UCP && defined COMPILE_PCRE16 && !defined SUPPORT_UTF16
78    #define SUPPORT_UTF16 1
79    #endif
80    
81    /* This macro is defined if either UTF-8 or UTF-16 support or both are
82    enabled. */
83    
84    #if defined SUPPORT_UTF8 || defined SUPPORT_UTF16
85    /* Unicode Transformation Format is enabled. */
86    #define SUPPORT_UTF 1
87    #endif
88    
89  /* Use a macro for debugging printing, 'cause that eliminates the use of #ifdef  /* Use a macro for debugging printing, 'cause that eliminates the use of #ifdef
90  inline, and there are *still* stupid compilers about that don't like indented  inline, and there are *still* stupid compilers about that don't like indented
91  pre-processor statements, or at least there were when I first wrote this. After  pre-processor statements, or at least there were when I first wrote this. After
# Line 1325  only. */ Line 1340  only. */
1340  #define PT_WORD       8    /* Word - L plus N plus underscore */  #define PT_WORD       8    /* Word - L plus N plus underscore */
1341    
1342  /* Flag bits and data types for the extended class (OP_XCLASS) for classes that  /* Flag bits and data types for the extended class (OP_XCLASS) for classes that
1343  contain UTF-8 characters with values greater than 255. */  contain characters with values greater than 255. */
1344    
1345  #define XCL_NOT    0x01    /* Flag: this is a negative class */  #define XCL_NOT    0x01    /* Flag: this is a negative class */
1346  #define XCL_MAP    0x02    /* Flag: a 32-byte map is present */  #define XCL_MAP    0x02    /* Flag: a 32-byte map is present */
# Line 1522  enum { Line 1537  enum {
1537    OP_CLASS,          /* 106 Match a character class, chars < 256 only */    OP_CLASS,          /* 106 Match a character class, chars < 256 only */
1538    OP_NCLASS,         /* 107 Same, but the bitmap was created from a negative    OP_NCLASS,         /* 107 Same, but the bitmap was created from a negative
1539                                class - the difference is relevant only when a                                class - the difference is relevant only when a
1540                                UTF-8 character > 255 is encountered. */                                character > 255 is encountered. */
1541    OP_XCLASS,         /* 108 Extended class for handling UTF-8 chars within the    OP_XCLASS,         /* 108 Extended class for handling > 255 chars within the
1542                                class. This does both positive and negative. */                                class. This does both positive and negative. */
1543    OP_REF,            /* 109 Match a back reference, casefully */    OP_REF,            /* 109 Match a back reference, casefully */
1544    OP_REFI,           /* 110 Match a back reference, caselessly */    OP_REFI,           /* 110 Match a back reference, caselessly */
# Line 1704  in UTF-8 mode. The code that uses this t Line 1719  in UTF-8 mode. The code that uses this t
1719    /* Character class & ref repeats                                         */ \    /* Character class & ref repeats                                         */ \
1720    1, 1, 1, 1, 1, 1,              /* *, *?, +, +?, ?, ??                    */ \    1, 1, 1, 1, 1, 1,              /* *, *?, +, +?, ?, ??                    */ \
1721    1+2*IMM2_SIZE, 1+2*IMM2_SIZE,  /* CRRANGE, CRMINRANGE                    */ \    1+2*IMM2_SIZE, 1+2*IMM2_SIZE,  /* CRRANGE, CRMINRANGE                    */ \
1722   33,                             /* CLASS                                  */ \    1+(32/sizeof(pcre_uchar)),     /* CLASS                                  */ \
1723   33,                             /* NCLASS                                 */ \    1+(32/sizeof(pcre_uchar)),     /* NCLASS                                 */ \
1724    0,                             /* XCLASS - variable length               */ \    0,                             /* XCLASS - variable length               */ \
1725    1+IMM2_SIZE,                   /* REF                                    */ \    1+IMM2_SIZE,                   /* REF                                    */ \
1726    1+IMM2_SIZE,                   /* REFI                                   */ \    1+IMM2_SIZE,                   /* REFI                                   */ \

Legend:
Removed from v.769  
changed lines
  Added in v.770

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12