From d26de8291af33189524cf17ae3ec730aadba6c0c Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 30 Apr 2013 14:51:30 +0000 Subject: - Dropped PCRE support git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1920 82007160-df01-0410-b94d-b575c5fd34c7 --- src/irc_string.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/irc_string.c') diff --git a/src/irc_string.c b/src/irc_string.c index f711c9a..a25aa86 100644 --- a/src/irc_string.c +++ b/src/irc_string.c @@ -23,10 +23,6 @@ */ #include "config.h" -#ifdef HAVE_LIBPCRE -#include -#endif - #include "stdinc.h" #include "irc_string.h" @@ -239,24 +235,3 @@ strlcpy(char *dst, const char *src, size_t siz) return s - src - 1; /* count does not include NUL */ } #endif - -#ifdef HAVE_LIBPCRE -void * -ircd_pcre_compile(const char *pattern, const char **errptr) -{ - int erroroffset = 0; - int options = PCRE_EXTRA; - - assert(pattern); - - return pcre_compile(pattern, options, errptr, &erroroffset, NULL); -} - -int -ircd_pcre_exec(const void *code, const char *subject) -{ - assert(code && subject); - - return pcre_exec(code, NULL, subject, strlen(subject), 0, 0, NULL, 0) < 0; -} -#endif -- cgit