/[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 1219 by ph10, Sun Nov 11 18:04:37 2012 UTC revision 1221 by ph10, Sun Nov 11 20:27:03 2012 UTC
# Line 531  capturing parenthesis numbers in back re Line 531  capturing parenthesis numbers in back re
531  #define PUT2(a,n,d)   \  #define PUT2(a,n,d)   \
532    a[n] = (d) >> 8; \    a[n] = (d) >> 8; \
533    a[(n)+1] = (d) & 255    a[(n)+1] = (d) & 255
534    
535  /* For reasons that I do not understand, the expression in this GET2 macro is  /* For reasons that I do not understand, the expression in this GET2 macro is
536  treated by gcc as a signed expression, even when a is declared as unsigned. It  treated by gcc as a signed expression, even when a is declared as unsigned. It
537  seems that any kind of arithmetic results in a signed value. */  seems that any kind of arithmetic results in a signed value. */
538    
539  #define GET2(a,n) \  #define GET2(a,n) \
# Line 999  pointer. */ Line 999  pointer. */
999  /* 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
1000  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
1001  macro because almost all calls are already within a block of UTF-32 only  macro because almost all calls are already within a block of UTF-32 only
1002  code.  code.
1003  These are all no-ops since all UTF-32 characters fit into one pcre_uchar. */  These are all no-ops since all UTF-32 characters fit into one pcre_uchar. */
1004    
1005  #define BACKCHAR(eptr) do { } while (0)  #define BACKCHAR(eptr) do { } while (0)
# Line 1026  are defined. Line 1026  are defined.
1026  These values are also required as lists in pcre_compile.c when processing \h,  These values are also required as lists in pcre_compile.c when processing \h,
1027  \H, \v and \V in a character class. The lists are defined in pcre_tables.c, but  \H, \v and \V in a character class. The lists are defined in pcre_tables.c, but
1028  macros that define the values are here so that all the definitions are  macros that define the values are here so that all the definitions are
1029  together. The lists must be in ascending character order, terminated by  together. The lists must be in ascending character order, terminated by
1030  NOTACHAR (which is 0xffffffff).  NOTACHAR (which is 0xffffffff).
1031    
1032  Any changes should ensure that the various macros are kept in step with each  Any changes should ensure that the various macros are kept in step with each
# Line 1040  other. NOTE: The values also appear in p Line 1040  other. NOTE: The values also appear in p
1040    CHAR_HT, CHAR_SPACE, 0xa0, \    CHAR_HT, CHAR_SPACE, 0xa0, \
1041    0x1680, 0x180e, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, \    0x1680, 0x180e, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, \
1042    0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202f, 0x205f, 0x3000, \    0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202f, 0x205f, 0x3000, \
1043    NOTACHAR    NOTACHAR
1044    
1045  #define HSPACE_MULTIBYTE_CASES \  #define HSPACE_MULTIBYTE_CASES \
1046    case 0x1680:  /* OGHAM SPACE MARK */ \    case 0x1680:  /* OGHAM SPACE MARK */ \
# Line 1064  other. NOTE: The values also appear in p Line 1064  other. NOTE: The values also appear in p
1064    case CHAR_HT: \    case CHAR_HT: \
1065    case CHAR_SPACE: \    case CHAR_SPACE: \
1066    case 0xa0     /* NBSP */    case 0xa0     /* NBSP */
1067    
1068  #define HSPACE_CASES \  #define HSPACE_CASES \
1069    HSPACE_BYTE_CASES: \    HSPACE_BYTE_CASES: \
1070    HSPACE_MULTIBYTE_CASES    HSPACE_MULTIBYTE_CASES
1071    
1072  #define VSPACE_LIST \  #define VSPACE_LIST \
1073    CHAR_LF, CHAR_VT, CHAR_FF, CHAR_CR, CHAR_NEL, 0x2028, 0x2029, NOTACHAR    CHAR_LF, CHAR_VT, CHAR_FF, CHAR_CR, CHAR_NEL, 0x2028, 0x2029, NOTACHAR
1074    
1075  #define VSPACE_MULTIBYTE_CASES \  #define VSPACE_MULTIBYTE_CASES \
1076    case 0x2028:    /* LINE SEPARATOR */ \    case 0x2028:    /* LINE SEPARATOR */ \
# Line 1100  other. NOTE: The values also appear in p Line 1100  other. NOTE: The values also appear in p
1100    
1101  #ifdef EBCDIC_NL25  #ifdef EBCDIC_NL25
1102  #define VSPACE_LIST \  #define VSPACE_LIST \
1103    CHAR_VT, CHAR_FF, CHAR_CR, CHAR_NEL, CHAR_LF, NOTACHAR    CHAR_VT, CHAR_FF, CHAR_CR, CHAR_NEL, CHAR_LF, NOTACHAR
1104  #else  #else
1105  #define VSPACE_LIST \  #define VSPACE_LIST \
1106    CHAR_VT, CHAR_FF, CHAR_CR, CHAR_LF, CHAR_NEL, NOTACHAR    CHAR_VT, CHAR_FF, CHAR_CR, CHAR_LF, CHAR_NEL, NOTACHAR
1107  #endif  #endif
1108    
1109  #define VSPACE_BYTE_CASES \  #define VSPACE_BYTE_CASES \
1110    case CHAR_LF: \    case CHAR_LF: \

Legend:
Removed from v.1219  
changed lines
  Added in v.1221

  ViewVC Help
Powered by ViewVC 1.1.5