ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.1.x/src/irc_string.c
(Generate patch)

Comparing ircd-hybrid/branches/8.1.x/src/irc_string.c (file contents):
Revision 1919 by michael, Thu Apr 25 18:01:53 2013 UTC vs.
Revision 1920 by michael, Tue Apr 30 14:51:30 2013 UTC

# Line 23 | Line 23
23   */
24  
25   #include "config.h"
26 #ifdef HAVE_LIBPCRE
27 #include <pcre.h>
28 #endif
29
26   #include "stdinc.h"
27   #include "irc_string.h"
28  
# Line 239 | Line 235 | strlcpy(char *dst, const char *src, size
235    return s - src - 1; /* count does not include NUL */
236   }
237   #endif
242
243 #ifdef HAVE_LIBPCRE
244 void *
245 ircd_pcre_compile(const char *pattern, const char **errptr)
246 {
247  int erroroffset = 0;
248  int options = PCRE_EXTRA;
249
250  assert(pattern);
251
252  return pcre_compile(pattern, options, errptr, &erroroffset, NULL);
253 }
254
255 int
256 ircd_pcre_exec(const void *code, const char *subject)
257 {
258  assert(code && subject);
259
260  return pcre_exec(code, NULL, subject, strlen(subject), 0, 0, NULL, 0) < 0;
261 }
262 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)