X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=src%2Fpcrs.c;h=522baaa3ecd33f7a81e8a2e5b5c6df17a337f0cb;hb=b4864292cddd469335c27eba423d8cbe52e91f54;hp=eb3b67719c367c0a70b2be1c3aaa9c0743632d4c;hpb=2da19eb8eff90f6c9a7cb46ff891643e89d50a55;p=privoxy.git diff --git a/src/pcrs.c b/src/pcrs.c index eb3b6771..522baaa3 100644 --- a/src/pcrs.c +++ b/src/pcrs.c @@ -1,8 +1,8 @@ -const char pcrs_rcs[] = "$Id: pcrs.c,v 1.19 2002/03/08 14:47:48 oes Exp $"; +const char pcrs_rcs[] = "$Id: pcrs.c,v 2.1 2002/08/26 11:18:24 sarantis Exp $"; /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $ + * File : $Source: /cvsroot/ijbswa//current/src/pcrs.c,v $ * * Purpose : pcrs is a supplement to the pcre library by Philip Hazel * and adds Perl-style substitution. That @@ -33,6 +33,12 @@ const char pcrs_rcs[] = "$Id: pcrs.c,v 1.19 2002/03/08 14:47:48 oes Exp $"; * * Revisions : * $Log: pcrs.c,v $ + * Revision 2.1 2002/08/26 11:18:24 sarantis + * Fix typo. + * + * Revision 2.0 2002/06/04 14:34:21 jongfoster + * Moving source files to src/ + * * Revision 1.19 2002/03/08 14:47:48 oes * Cosmetics * @@ -129,7 +135,12 @@ const char pcrs_rcs[] = "$Id: pcrs.c,v 1.19 2002/03/08 14:47:48 oes Exp $"; *********************************************************************/ -#include +/* + * Include project.h just so that the right pcre.h gets + * included from there + */ +#include "project.h" + #include #include @@ -716,8 +727,8 @@ pcrs_job *pcrs_compile(const char *pattern, const char *substitute, const char * * * Returns : On success, the number of substitutions that were made. * May be > 1 if job->flags contained PCRS_GLOBAL - * On failiure, the (negative) pcre error code describing the - * failiure, which may be translated to text using pcrs_strerror(). + * On failure, the (negative) pcre error code describing the + * failure, which may be translated to text using pcrs_strerror(). * *********************************************************************/ int pcrs_execute_list(pcrs_job *joblist, char *subject, size_t subject_length, char **result, size_t *result_length) @@ -773,8 +784,8 @@ int pcrs_execute_list(pcrs_job *joblist, char *subject, size_t subject_length, c * * Returns : On success, the number of substitutions that were made. * May be > 1 if job->flags contained PCRS_GLOBAL - * On failiure, the (negative) pcre error code describing the - * failiure, which may be translated to text using pcrs_strerror(). + * On failure, the (negative) pcre error code describing the + * failure, which may be translated to text using pcrs_strerror(). * *********************************************************************/ int pcrs_execute(pcrs_job *job, char *subject, size_t subject_length, char **result, size_t *result_length) @@ -868,7 +879,7 @@ int pcrs_execute(pcrs_job *job, char *subject, size_t subject_length, char **res else offset = offsets[1]; } - /* Pass pcre error through if (bad) failiure */ + /* Pass pcre error through if (bad) failure */ if (submatches < PCRE_ERROR_NOMATCH) { free(matches);