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 |
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 |
|
|
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 */ |
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 */ |
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); |