/[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 884 by zherczeg, Tue Jan 17 11:52:43 2012 UTC revision 932 by ph10, Fri Feb 24 18:54:43 2012 UTC
# Line 887  time, run time, or study time, respectiv Line 887  time, run time, or study time, respectiv
887     PCRE_NO_START_OPTIMIZE)     PCRE_NO_START_OPTIMIZE)
888    
889  #define PUBLIC_STUDY_OPTIONS \  #define PUBLIC_STUDY_OPTIONS \
890     PCRE_STUDY_JIT_COMPILE     (PCRE_STUDY_JIT_COMPILE|PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE| \
891        PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE)
892    
893  /* Magic number to provide a small check against being handed junk. */  /* Magic number to provide a small check against being handed junk. */
894    
# Line 1941  enum { ERR0,  ERR1,  ERR2,  ERR3,  ERR4, Line 1942  enum { ERR0,  ERR1,  ERR2,  ERR3,  ERR4,
1942         ERR60, ERR61, ERR62, ERR63, ERR64, ERR65, ERR66, ERR67, ERR68, ERR69,         ERR60, ERR61, ERR62, ERR63, ERR64, ERR65, ERR66, ERR67, ERR68, ERR69,
1943         ERR70, ERR71, ERR72, ERR73, ERR74, ERRCOUNT };         ERR70, ERR71, ERR72, ERR73, ERR74, ERRCOUNT };
1944    
1945    /* JIT compiling modes. The function list is indexed by them. */
1946    enum { JIT_COMPILE, JIT_PARTIAL_SOFT_COMPILE, JIT_PARTIAL_HARD_COMPILE,
1947           JIT_NUMBER_OF_COMPILE_MODES };
1948    
1949  /* The real format of the start of the pcre block; the index of names and the  /* The real format of the start of the pcre block; the index of names and the
1950  code vector run on as long as necessary after the end. We store an explicit  code vector run on as long as necessary after the end. We store an explicit
1951  offset to the name table so that if a regex is compiled on one host, saved, and  offset to the name table so that if a regex is compiled on one host, saved, and
# Line 1969  typedef struct REAL_PCRE { Line 1974  typedef struct REAL_PCRE {
1974    pcre_uint32 size;               /* Total that was malloced */    pcre_uint32 size;               /* Total that was malloced */
1975    pcre_uint32 options;            /* Public options */    pcre_uint32 options;            /* Public options */
1976    pcre_uint16 flags;              /* Private flags */    pcre_uint16 flags;              /* Private flags */
1977    pcre_uint16 dummy1;             /* For future use */    pcre_uint16 max_lookbehind;     /* Longest lookbehind (characters) */
1978    pcre_uint16 top_bracket;    pcre_uint16 top_bracket;        /* Highest numbered group */
1979    pcre_uint16 top_backref;    pcre_uint16 top_backref;        /* Highest numbered back reference */
1980    pcre_uint16 first_char;         /* Starting character */    pcre_uint16 first_char;         /* Starting character */
1981    pcre_uint16 req_char;           /* This character must be seen */    pcre_uint16 req_char;           /* This character must be seen */
1982    pcre_uint16 name_table_offset;  /* Offset to name table that follows */    pcre_uint16 name_table_offset;  /* Offset to name table that follows */
1983    pcre_uint16 name_entry_size;    /* Size of any name items */    pcre_uint16 name_entry_size;    /* Size of any name items */
1984    pcre_uint16 name_count;         /* Number of name items */    pcre_uint16 name_count;         /* Number of name items */
1985    pcre_uint16 ref_count;          /* Reference count */    pcre_uint16 ref_count;          /* Reference count */
   
1986    const pcre_uint8 *tables;       /* Pointer to tables or NULL for std */    const pcre_uint8 *tables;       /* Pointer to tables or NULL for std */
1987    const pcre_uint8 *nullpad;      /* NULL padding */    const pcre_uint8 *nullpad;      /* NULL padding */
1988  } REAL_PCRE;  } REAL_PCRE;
# Line 2024  typedef struct compile_data { Line 2028  typedef struct compile_data {
2028    int  workspace_size;              /* Size of workspace */    int  workspace_size;              /* Size of workspace */
2029    int  bracount;                    /* Count of capturing parens as we compile */    int  bracount;                    /* Count of capturing parens as we compile */
2030    int  final_bracount;              /* Saved value after first pass */    int  final_bracount;              /* Saved value after first pass */
2031      int  max_lookbehind;              /* Maximum lookbehind (characters) */
2032    int  top_backref;                 /* Maximum back reference */    int  top_backref;                 /* Maximum back reference */
2033    unsigned int backref_map;         /* Bitmap of low back refs */    unsigned int backref_map;         /* Bitmap of low back refs */
2034    int  assert_depth;                /* Depth of nested assertions */    int  assert_depth;                /* Depth of nested assertions */
# Line 2179  total length. */ Line 2184  total length. */
2184  #define ctypes_offset (cbits_offset + cbit_length)  #define ctypes_offset (cbits_offset + cbit_length)
2185  #define tables_length (ctypes_offset + 256)  #define tables_length (ctypes_offset + 256)
2186    
2187  /* Internal function prefix */  /* Internal function and data prefixes. */
2188    
2189  #ifdef COMPILE_PCRE8  #ifdef COMPILE_PCRE8
2190    #ifndef PUBL
2191  #define PUBL(name) pcre_##name  #define PUBL(name) pcre_##name
2192    #endif
2193    #ifndef PRIV
2194  #define PRIV(name) _pcre_##name  #define PRIV(name) _pcre_##name
2195  #else  #endif
2196    #else /* COMPILE_PCRE8 */
2197  #ifdef COMPILE_PCRE16  #ifdef COMPILE_PCRE16
2198    #ifndef PUBL
2199  #define PUBL(name) pcre16_##name  #define PUBL(name) pcre16_##name
2200    #endif
2201    #ifndef PRIV
2202  #define PRIV(name) _pcre16_##name  #define PRIV(name) _pcre16_##name
2203    #endif
2204  #else  #else
2205  #error Unsupported compiling mode  #error Unsupported compiling mode
2206  #endif /* COMPILE_PCRE16 */  #endif /* COMPILE_PCRE16 */
# Line 2280  extern BOOL              PRIV(was_newlin Line 2293  extern BOOL              PRIV(was_newlin
2293  extern BOOL              PRIV(xclass)(int, const pcre_uchar *, BOOL);  extern BOOL              PRIV(xclass)(int, const pcre_uchar *, BOOL);
2294    
2295  #ifdef SUPPORT_JIT  #ifdef SUPPORT_JIT
2296  extern void              PRIV(jit_compile)(const REAL_PCRE *, PUBL(extra) *);  extern void              PRIV(jit_compile)(const REAL_PCRE *, PUBL(extra) *, int);
2297  extern int               PRIV(jit_exec)(const REAL_PCRE *, void *,  extern int               PRIV(jit_exec)(const REAL_PCRE *, void *,
2298                             const pcre_uchar *, int, int, int, int, int *, int);                             const pcre_uchar *, int, int, int, int, int *, int,
2299                               pcre_uchar **);
2300  extern void              PRIV(jit_free)(void *);  extern void              PRIV(jit_free)(void *);
2301  extern int               PRIV(jit_get_size)(void *);  extern int               PRIV(jit_get_size)(void *);
2302  extern const char*       PRIV(jit_get_target)(void);  extern const char*       PRIV(jit_get_target)(void);

Legend:
Removed from v.884  
changed lines
  Added in v.932

  ViewVC Help
Powered by ViewVC 1.1.5