X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcrs.h;h=a99293f17c18028be4723e6fef7d7b5122d93843;hp=4b22a1b83ea37c8bf1b72d57d56555af403d392d;hb=e94dc00c71b38a1e06576dddfc6d565ad8f01fbc;hpb=390f0eb1b038295df436210c62aabb8243680a89 diff --git a/pcrs.h b/pcrs.h index 4b22a1b8..a99293f1 100644 --- a/pcrs.h +++ b/pcrs.h @@ -11,6 +11,10 @@ * * Revisions : * $Log: pcrs.h,v $ + * Revision 1.14 2006/12/24 17:27:37 fabiankeil + * Increase pcrs error code offset to prevent overlaps + * with pcre versions newer than our own. + * * Revision 1.13 2006/07/18 14:48:47 david__schmidt * Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch) * with what was really the latest development (the v_3_0_branch branch) @@ -66,7 +70,7 @@ * *********************************************************************/ -#define PCRS_H_VERSION "$Id: pcrs.h,v 1.13 2006/07/18 14:48:47 david__schmidt Exp $" +#define PCRS_H_VERSION "$Id: pcrs.h,v 1.14 2006/12/24 17:27:37 fabiankeil Exp $" #ifndef _PCRE_H @@ -118,6 +122,7 @@ extern "C" { typedef struct { char *text; /* The plaintext part of the substitute, with all backreferences stripped */ + size_t length; /* The substitute may not be a valid C string so we can't rely on strlen(). */ int backrefs; /* The number of backreferences */ int block_offset[PCRS_MAX_SUBMATCHES]; /* Array with the offsets of all plaintext blocks in text */ size_t block_length[PCRS_MAX_SUBMATCHES]; /* Array with the lengths of all plaintext blocks in text */