9 |
|
|
10 |
Written by: Philip Hazel <ph10@cam.ac.uk> |
Written by: Philip Hazel <ph10@cam.ac.uk> |
11 |
|
|
12 |
Copyright (c) 1997 University of Cambridge |
Copyright (c) 1998 University of Cambridge |
13 |
|
|
14 |
----------------------------------------------------------------------------- |
----------------------------------------------------------------------------- |
15 |
Permission is granted to anyone to use this software for any purpose on any |
Permission is granted to anyone to use this software for any purpose on any |
52 |
*/ |
*/ |
53 |
|
|
54 |
static BOOL |
static BOOL |
55 |
set_start_bits(uschar *code, uschar *start_bits) |
set_start_bits(const uschar *code, uschar *start_bits) |
56 |
{ |
{ |
57 |
register int c; |
register int c; |
58 |
|
|
59 |
do |
do |
60 |
{ |
{ |
61 |
uschar *tcode = code + 3; |
const uschar *tcode = code + 3; |
62 |
BOOL try_next = TRUE; |
BOOL try_next = TRUE; |
63 |
|
|
64 |
while (try_next) |
while (try_next) |
208 |
according to the repeat count. */ |
according to the repeat count. */ |
209 |
|
|
210 |
case OP_CLASS: |
case OP_CLASS: |
211 |
|
case OP_NEGCLASS: |
212 |
{ |
{ |
213 |
tcode++; |
tcode++; |
214 |
for (c = 0; c < 32; c++) start_bits[c] |= tcode[c]; |
for (c = 0; c < 32; c++) start_bits[c] |= tcode[c]; |
265 |
*/ |
*/ |
266 |
|
|
267 |
pcre_extra * |
pcre_extra * |
268 |
pcre_study(const pcre *external_re, int options, char **errorptr) |
pcre_study(const pcre *external_re, int options, const char **errorptr) |
269 |
{ |
{ |
270 |
BOOL caseless; |
BOOL caseless; |
271 |
uschar start_bits[32]; |
uschar start_bits[32]; |
272 |
real_pcre_extra *extra; |
real_pcre_extra *extra; |
273 |
real_pcre *re = (real_pcre *)external_re; |
const real_pcre *re = (const real_pcre *)external_re; |
274 |
|
|
275 |
*errorptr = NULL; |
*errorptr = NULL; |
276 |
|
|