/[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 1100 by chpe, Tue Oct 16 15:56:26 2012 UTC revision 1141 by ph10, Fri Oct 19 15:44:19 2012 UTC
# Line 53  depending on the PRIV macro. */ Line 53  depending on the PRIV macro. */
53  #endif  #endif
54    
55  /* PCRE is compiled as an 8 bit library if it is not requested otherwise. */  /* PCRE is compiled as an 8 bit library if it is not requested otherwise. */
56  #if !defined COMPILE_PCRE16 && ! defined COMPILE_PCRE32  
57    #if !defined COMPILE_PCRE16 && !defined COMPILE_PCRE32
58  #define COMPILE_PCRE8  #define COMPILE_PCRE8
59  #endif  #endif
60    
# Line 914  code. */ Line 915  code. */
915    
916  #elif defined COMPILE_PCRE32  #elif defined COMPILE_PCRE32
917    
918  /* These are unnecessary for the 32-bit library */  /* These are trivial for the 32-bit library, since all UTF-32 characters fit
919  #undef MAX_VALUE_FOR_SINGLE_CHAR  into one pcre_uchar unit. */
920  #undef HAS_EXTRALEN  #define MAX_VALUE_FOR_SINGLE_CHAR (0x10ffffu)
921  #undef GET_EXTRALEN  #define HAS_EXTRALEN(c) (0)
922  #undef NOT_FIRSTCHAR  #define GET_EXTRALEN(c) (0)
923    #define NOT_FIRSTCHAR(c) (0)
924    
925  #define UTF32_MASK (0x1ffffful)  #define UTF32_MASK (0x1fffffu)
926    
927  /* Get the next UTF-32 character, not advancing the pointer. This is called when  /* Get the next UTF-32 character, not advancing the pointer. This is called when
928  we know we are in UTF-32 mode. */  we know we are in UTF-32 mode. */
# Line 989  pointer. */ Line 991  pointer. */
991  /* 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
992  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
993  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
994  code. */  code.
995    These are all no-ops since all UTF-32 characters fit into one pcre_uchar. */
996    
997  #define BACKCHAR(eptr) do { } while (0)  #define BACKCHAR(eptr) do { } while (0)
998    
# Line 2679  extern int               PRIV(strcmp_uc_ Line 2682  extern int               PRIV(strcmp_uc_
2682  extern const pcre_uchar *PRIV(find_bracket)(const pcre_uchar *, BOOL, int);  extern const pcre_uchar *PRIV(find_bracket)(const pcre_uchar *, BOOL, int);
2683  extern BOOL              PRIV(is_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,  extern BOOL              PRIV(is_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,
2684                             int *, BOOL);                             int *, BOOL);
2685  extern int               PRIV(ord2utf)(pcre_uint32, pcre_uchar *);  extern unsigned int      PRIV(ord2utf)(pcre_uint32, pcre_uchar *);
2686  extern int               PRIV(valid_utf)(PCRE_PUCHAR, int, int *);  extern int               PRIV(valid_utf)(PCRE_PUCHAR, int, int *);
2687  extern BOOL              PRIV(was_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,  extern BOOL              PRIV(was_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,
2688                             int *, BOOL);                             int *, BOOL);
# Line 2709  extern const pcre_uint32 PRIV(ucd_casele Line 2712  extern const pcre_uint32 PRIV(ucd_casele
2712  extern const ucd_record  PRIV(ucd_records)[];  extern const ucd_record  PRIV(ucd_records)[];
2713  extern const pcre_uint8  PRIV(ucd_stage1)[];  extern const pcre_uint8  PRIV(ucd_stage1)[];
2714  extern const pcre_uint16 PRIV(ucd_stage2)[];  extern const pcre_uint16 PRIV(ucd_stage2)[];
2715  extern const int         PRIV(ucp_gentype)[];  extern const pcre_uint32 PRIV(ucp_gentype)[];
2716  extern const pcre_uint32 PRIV(ucp_gbtable)[];  extern const pcre_uint32 PRIV(ucp_gbtable)[];
2717  #ifdef SUPPORT_JIT  #ifdef SUPPORT_JIT
2718  extern const int         PRIV(ucp_typerange)[];  extern const int         PRIV(ucp_typerange)[];

Legend:
Removed from v.1100  
changed lines
  Added in v.1141

  ViewVC Help
Powered by ViewVC 1.1.5