/[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 1128 by chpe, Thu Oct 18 18:35:08 2012 UTC revision 1145 by ph10, Fri Oct 19 16:25:32 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    
57  #if !defined COMPILE_PCRE16 && !defined COMPILE_PCRE32  #if !defined COMPILE_PCRE16 && !defined COMPILE_PCRE32
58  #define COMPILE_PCRE8  #define COMPILE_PCRE8
59  #endif  #endif
# Line 522  capturing parenthesis numbers in back re Line 523  capturing parenthesis numbers in back re
523  #define PUT2(a,n,d)   \  #define PUT2(a,n,d)   \
524    a[n] = (d) >> 8; \    a[n] = (d) >> 8; \
525    a[(n)+1] = (d) & 255    a[(n)+1] = (d) & 255
526    
527    /* For reasons that I do not understand, the expression in this GET2 macro is
528    treated by gcc as a signed expression, even when a is declared as unsigned. It
529    seems that any kind of arithmetic results in a signed value. */
530    
531  #define GET2(a,n) \  #define GET2(a,n) \
532    (((a)[n] << 8) | (a)[(n)+1])    (unsigned int)(((a)[n] << 8) | (a)[(n)+1])
533    
534  #elif defined COMPILE_PCRE16  #elif defined COMPILE_PCRE16
535    
# Line 2393  typedef struct compile_data { Line 2398  typedef struct compile_data {
2398    int  names_found;                 /* Number of entries so far */    int  names_found;                 /* Number of entries so far */
2399    int  name_entry_size;             /* Size of each entry */    int  name_entry_size;             /* Size of each entry */
2400    int  workspace_size;              /* Size of workspace */    int  workspace_size;              /* Size of workspace */
2401    int  bracount;                    /* Count of capturing parens as we compile */    unsigned int  bracount;           /* Count of capturing parens as we compile */
2402    int  final_bracount;              /* Saved value after first pass */    int  final_bracount;              /* Saved value after first pass */
2403    int  max_lookbehind;              /* Maximum lookbehind (characters) */    int  max_lookbehind;              /* Maximum lookbehind (characters) */
2404    int  top_backref;                 /* Maximum back reference */    int  top_backref;                 /* Maximum back reference */
# Line 2423  call within the pattern; used by pcre_ex Line 2428  call within the pattern; used by pcre_ex
2428    
2429  typedef struct recursion_info {  typedef struct recursion_info {
2430    struct recursion_info *prevrec; /* Previous recursion record (or NULL) */    struct recursion_info *prevrec; /* Previous recursion record (or NULL) */
2431    int group_num;                  /* Number of group that was called */    unsigned int group_num;         /* Number of group that was called */
2432    int *offset_save;               /* Pointer to start of saved offsets */    int *offset_save;               /* Pointer to start of saved offsets */
2433    int saved_max;                  /* Number of saved offsets */    int saved_max;                  /* Number of saved offsets */
2434    PCRE_PUCHAR subject_position;   /* Position at start of recursion */    PCRE_PUCHAR subject_position;   /* Position at start of recursion */
# Line 2681  extern int               PRIV(strcmp_uc_ Line 2686  extern int               PRIV(strcmp_uc_
2686  extern const pcre_uchar *PRIV(find_bracket)(const pcre_uchar *, BOOL, int);  extern const pcre_uchar *PRIV(find_bracket)(const pcre_uchar *, BOOL, int);
2687  extern BOOL              PRIV(is_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,  extern BOOL              PRIV(is_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,
2688                             int *, BOOL);                             int *, BOOL);
2689  extern int               PRIV(ord2utf)(pcre_uint32, pcre_uchar *);  extern unsigned int      PRIV(ord2utf)(pcre_uint32, pcre_uchar *);
2690  extern int               PRIV(valid_utf)(PCRE_PUCHAR, int, int *);  extern int               PRIV(valid_utf)(PCRE_PUCHAR, int, int *);
2691  extern BOOL              PRIV(was_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,  extern BOOL              PRIV(was_newline)(PCRE_PUCHAR, int, PCRE_PUCHAR,
2692                             int *, BOOL);                             int *, BOOL);

Legend:
Removed from v.1128  
changed lines
  Added in v.1145

  ViewVC Help
Powered by ViewVC 1.1.5