psyclpc/src/pkg-pcre.h

27 lines
654 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"
2016-08-10 15:44:53 +00:00
#ifdef HAS_PCRE
#include <pcre.h>
2009-03-03 03:27:01 +00:00
#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
2016-08-10 15:44:53 +00:00
#define RE_ERROR_BACKTRACK (-8) // PCRE_ERROR_MATCHLIMIT from PCRE
2009-05-21 22:41:07 +00:00
#endif
2009-03-03 03:27:01 +00:00
#endif /* PKG_PCRE_H_ */