1
0
Fork 0
mirror of git://git.psyced.org/git/psyclpc synced 2024-08-15 03:20:16 +00:00
psyclpc/src/pkg-pcre.h

32 lines
778 B
C
Raw Normal View History

2009-03-03 03:27:01 +00:00
#ifndef PKG_PCRE_H_
#define PKG_PCRE_H_ 1
/*------------------------------------------------------------------
* Wrapper for the PCRE include.
*
* This extra wrapper is needed since we have to add one error code
* to the ones defined by PCRE itself.
*------------------------------------------------------------------
*/
#include "driver.h"
#if defined(USE_BUILTIN_PCRE) || !defined(HAS_PCRE)
# include "pcre/pcre.h"
# if !defined(USE_BUILTIN_PCRE)
# define USE_BUILTIN_PCRE
# endif
#else
# include <pcre.h>
#endif
/* Error code to be returned if too many backtracks are detected.
*/
2009-05-21 22:41:07 +00:00
#ifdef PCRE_ERROR_RECURSIONLIMIT
#define RE_ERROR_BACKTRACK PCRE_ERROR_RECURSIONLIMIT
#else
2009-03-03 03:27:01 +00:00
#define RE_ERROR_BACKTRACK PCRE_ERROR_MATCHLIMIT
2009-05-21 22:41:07 +00:00
#endif
2009-03-03 03:27:01 +00:00
#endif /* PKG_PCRE_H_ */