/[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 1141 by ph10, Fri Oct 19 15:44:19 2012 UTC revision 1160 by chpe, Mon Oct 22 22:05:03 2012 UTC
# Line 112  setjmp and stdarg are used is when NO_RE Line 112  setjmp and stdarg are used is when NO_RE
112  #include <stdlib.h>  #include <stdlib.h>
113  #include <string.h>  #include <string.h>
114    
115    /* Valgrind (memcheck) support */
116    
117    #ifdef SUPPORT_VALGRIND
118    #include <valgrind/memcheck.h>
119    #endif
120    
121  /* When compiling a DLL for Windows, the exported symbols have to be declared  /* When compiling a DLL for Windows, the exported symbols have to be declared
122  using some MS magic. I found some useful information on this web page:  using some MS magic. I found some useful information on this web page:
123  http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the  http://msdn2.microsoft.com/en-us/library/y4h7bcy6(VS.80).aspx. According to the
# Line 215  stdint.h is available, include it; it ma Line 221  stdint.h is available, include it; it ma
221  have stdint.h (e.g. Solaris) may have inttypes.h. The macro int64_t may be set  have stdint.h (e.g. Solaris) may have inttypes.h. The macro int64_t may be set
222  by "configure". */  by "configure". */
223    
224  #if HAVE_STDINT_H  #if defined HAVE_STDINT_H
225  #include <stdint.h>  #include <stdint.h>
226  #elif HAVE_INTTYPES_H  #elif defined HAVE_INTTYPES_H
227  #include <inttypes.h>  #include <inttypes.h>
228  #endif  #endif
229    
# Line 523  capturing parenthesis numbers in back re Line 529  capturing parenthesis numbers in back re
529  #define PUT2(a,n,d)   \  #define PUT2(a,n,d)   \
530    a[n] = (d) >> 8; \    a[n] = (d) >> 8; \
531    a[(n)+1] = (d) & 255    a[(n)+1] = (d) & 255
532    
533    /* For reasons that I do not understand, the expression in this GET2 macro is
534    treated by gcc as a signed expression, even when a is declared as unsigned. It
535    seems that any kind of arithmetic results in a signed value. */
536    
537  #define GET2(a,n) \  #define GET2(a,n) \
538    (((a)[n] << 8) | (a)[(n)+1])    (unsigned int)(((a)[n] << 8) | (a)[(n)+1])
539    
540  #elif defined COMPILE_PCRE16  #elif defined COMPILE_PCRE16
541    
# Line 2394  typedef struct compile_data { Line 2404  typedef struct compile_data {
2404    int  names_found;                 /* Number of entries so far */    int  names_found;                 /* Number of entries so far */
2405    int  name_entry_size;             /* Size of each entry */    int  name_entry_size;             /* Size of each entry */
2406    int  workspace_size;              /* Size of workspace */    int  workspace_size;              /* Size of workspace */
2407    int  bracount;                    /* Count of capturing parens as we compile */    unsigned int  bracount;           /* Count of capturing parens as we compile */
2408    int  final_bracount;              /* Saved value after first pass */    int  final_bracount;              /* Saved value after first pass */
2409    int  max_lookbehind;              /* Maximum lookbehind (characters) */    int  max_lookbehind;              /* Maximum lookbehind (characters) */
2410    int  top_backref;                 /* Maximum back reference */    int  top_backref;                 /* Maximum back reference */
# Line 2424  call within the pattern; used by pcre_ex Line 2434  call within the pattern; used by pcre_ex
2434    
2435  typedef struct recursion_info {  typedef struct recursion_info {
2436    struct recursion_info *prevrec; /* Previous recursion record (or NULL) */    struct recursion_info *prevrec; /* Previous recursion record (or NULL) */
2437    int group_num;                  /* Number of group that was called */    unsigned int group_num;         /* Number of group that was called */
2438    int *offset_save;               /* Pointer to start of saved offsets */    int *offset_save;               /* Pointer to start of saved offsets */
2439    int saved_max;                  /* Number of saved offsets */    int saved_max;                  /* Number of saved offsets */
2440    PCRE_PUCHAR subject_position;   /* Position at start of recursion */    PCRE_PUCHAR subject_position;   /* Position at start of recursion */

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

  ViewVC Help
Powered by ViewVC 1.1.5