/[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 1160 by chpe, Mon Oct 22 22:05:03 2012 UTC revision 1197 by chpe, Thu Nov 1 19:23:27 2012 UTC
# Line 776  we know we are in UTF mode. */ Line 776  we know we are in UTF mode. */
776  we know we are in UTF mode. */  we know we are in UTF mode. */
777    
778  #define RAWUCHARINC(eptr) \  #define RAWUCHARINC(eptr) \
779    (*(eptr)++)    (*((eptr)++))
780    
781  /* Returns the next uchar, testing for UTF mode, and not advancing the  /* Returns the next uchar, testing for UTF mode, and not advancing the
782  pointer. */  pointer. */
# Line 788  pointer. */ Line 788  pointer. */
788  pointer. */  pointer. */
789    
790  #define RAWUCHARINCTEST(eptr) \  #define RAWUCHARINCTEST(eptr) \
791    (*(eptr)++)    (*((eptr)++))
792    
793  /* If the pointer is not at the start of a character, move it back until  /* If the pointer is not at the start of a character, move it back until
794  it is. This is called only in UTF-8 mode - we don't put a test within the macro  it is. This is called only in UTF-8 mode - we don't put a test within the macro
# Line 895  we know we are in UTF mode. */ Line 895  we know we are in UTF mode. */
895  we know we are in UTF mode. */  we know we are in UTF mode. */
896    
897  #define RAWUCHARINC(eptr) \  #define RAWUCHARINC(eptr) \
898    (*(eptr)++)    (*((eptr)++))
899    
900  /* Returns the next uchar, testing for UTF mode, and not advancing the  /* Returns the next uchar, testing for UTF mode, and not advancing the
901  pointer. */  pointer. */
# Line 907  pointer. */ Line 907  pointer. */
907  pointer. */  pointer. */
908    
909  #define RAWUCHARINCTEST(eptr) \  #define RAWUCHARINCTEST(eptr) \
910    (*(eptr)++)    (*((eptr)++))
911    
912  /* If the pointer is not at the start of a character, move it back until  /* If the pointer is not at the start of a character, move it back until
913  it is. This is called only in UTF-16 mode - we don't put a test within the  it is. This is called only in UTF-16 mode - we don't put a test within the
# Line 984  we know we are in UTF mode. */ Line 984  we know we are in UTF mode. */
984  we know we are in UTF mode. */  we know we are in UTF mode. */
985    
986  #define RAWUCHARINC(eptr) \  #define RAWUCHARINC(eptr) \
987    (*(eptr)++ & UTF32_MASK)    (*((eptr)++) & UTF32_MASK)
988    
989  /* Returns the next uchar, testing for UTF mode, and not advancing the  /* Returns the next uchar, testing for UTF mode, and not advancing the
990  pointer. */  pointer. */
# Line 996  pointer. */ Line 996  pointer. */
996  pointer. */  pointer. */
997    
998  #define RAWUCHARINCTEST(eptr) \  #define RAWUCHARINCTEST(eptr) \
999    (utf ? (*(eptr)++ & UTF32_MASK) : *(eptr)++)    (utf ? (*((eptr)++) & UTF32_MASK) : *((eptr)++))
1000    
1001  /* If the pointer is not at the start of a character, move it back until  /* If the pointer is not at the start of a character, move it back until
1002  it is. This is called only in UTF-32 mode - we don't put a test within the  it is. This is called only in UTF-32 mode - we don't put a test within the
# Line 1183  time, run time, or study time, respectiv Line 1183  time, run time, or study time, respectiv
1183     (PCRE_STUDY_JIT_COMPILE|PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE| \     (PCRE_STUDY_JIT_COMPILE|PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE| \
1184      PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE|PCRE_STUDY_EXTRA_NEEDED)      PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE|PCRE_STUDY_EXTRA_NEEDED)
1185    
1186    #define PUBLIC_JIT_EXEC_OPTIONS \
1187       (PCRE_NO_UTF8_CHECK|PCRE_NOTBOL|PCRE_NOTEOL|PCRE_NOTEMPTY|\
1188        PCRE_NOTEMPTY_ATSTART|PCRE_PARTIAL_SOFT|PCRE_PARTIAL_HARD)
1189    
1190  /* Magic number to provide a small check against being handed junk. */  /* Magic number to provide a small check against being handed junk. */
1191    
1192  #define MAGIC_NUMBER  0x50435245UL   /* 'PCRE' */  #define MAGIC_NUMBER  0x50435245UL   /* 'PCRE' */
# Line 1286  a positive value. */ Line 1290  a positive value. */
1290    
1291  /* The remaining definitions work in both environments. */  /* The remaining definitions work in both environments. */
1292    
1293    #define CHAR_NULL                   '\0'
1294  #define CHAR_HT                     '\t'  #define CHAR_HT                     '\t'
1295  #define CHAR_VT                     '\v'  #define CHAR_VT                     '\v'
1296  #define CHAR_FF                     '\f'  #define CHAR_FF                     '\f'
# Line 1555  only. */ Line 1560  only. */
1560  #define CHAR_ESC                    '\033'  #define CHAR_ESC                    '\033'
1561  #define CHAR_DEL                    '\177'  #define CHAR_DEL                    '\177'
1562    
1563    #define CHAR_NULL                   '\0'
1564  #define CHAR_SPACE                  '\040'  #define CHAR_SPACE                  '\040'
1565  #define CHAR_EXCLAMATION_MARK       '\041'  #define CHAR_EXCLAMATION_MARK       '\041'
1566  #define CHAR_QUOTATION_MARK         '\042'  #define CHAR_QUOTATION_MARK         '\042'
# Line 2701  extern BOOL              PRIV(xclass)(pc Line 2707  extern BOOL              PRIV(xclass)(pc
2707  #ifdef SUPPORT_JIT  #ifdef SUPPORT_JIT
2708  extern void              PRIV(jit_compile)(const REAL_PCRE *,  extern void              PRIV(jit_compile)(const REAL_PCRE *,
2709                             PUBL(extra) *, int);                             PUBL(extra) *, int);
2710  extern int               PRIV(jit_exec)(const REAL_PCRE *, const PUBL(extra) *,  extern int               PRIV(jit_exec)(const PUBL(extra) *,
2711                             const pcre_uchar *, int, int, int, int *, int);                             const pcre_uchar *, int, int, int, int *, int);
2712  extern void              PRIV(jit_free)(void *);  extern void              PRIV(jit_free)(void *);
2713  extern int               PRIV(jit_get_size)(void *);  extern int               PRIV(jit_get_size)(void *);

Legend:
Removed from v.1160  
changed lines
  Added in v.1197

  ViewVC Help
Powered by ViewVC 1.1.5