X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=pcrs.h;h=abff3caa5418ca3c4bcd08c4d5fe111b7d9f4961;hp=9798db1cc61536a1406bed1297eaa411f51b05ab;hb=691c4f59e98481dd056abbab8b86d5a4294481a5;hpb=6ef17a2fe3300dc395522d35997f3e6d6490fa70 diff --git a/pcrs.h b/pcrs.h index 9798db1c..abff3caa 100644 --- a/pcrs.h +++ b/pcrs.h @@ -7,12 +7,31 @@ * * Purpose : Header file for pcrs.c * - * Copyright : see pcrs.c + * Copyright : Written and Copyright (C) 2000, 2001 by Andreas S. Oesterhelt + * + * + * Copyright (C) 2006, 2007 Fabian Keil + * + * This program is free software; you can redistribute it + * and/or modify it under the terms of the GNU General + * Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will + * be useful, but WITHOUT ANY WARRANTY; without even the + * implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public + * License for more details. + * + * The GNU General Public License should be included with + * this file. If not, you can view it at + * http://www.gnu.org/copyleft/gpl.html + * or write to the Free Software Foundation, Inc., 59 + * Temple Place - Suite 330, Boston, MA 02111-1307, USA. * *********************************************************************/ -#define PCRS_H_VERSION "$Id: pcrs.h,v 1.17 2009/05/16 13:27:20 fabiankeil Exp $" - #ifndef _PCRE_H #include @@ -51,6 +70,7 @@ #define PCRS_GLOBAL 1 /* Job should be applied globally, as with perl's g option */ #define PCRS_TRIVIAL 2 /* Backreferences in the substitute are ignored */ #define PCRS_SUCCESS 4 /* Job did previously match */ +#define PCRS_DYNAMIC 8 /* Job is dynamic (used to disable JIT compilation) */ /* @@ -133,6 +153,10 @@ extern pcrs_job *pcrs_compile_dynamic_command(char *pcrs_command, const struct p #define PCRS_BUFFER_SIZE 4000 #endif /* ndef PCRS_BUFFER_SIZE */ +#ifdef FUZZ +extern pcrs_substitute *pcrs_compile_fuzzed_replacement(const char *replacement, int *errptr); +#endif + #endif /* ndef PCRS_H_INCLUDED */ /*