_POSIX2_RE_DUP_MAX

git-svn: trunk@3226
remotes/push_mirror/metadata
Nigel Horne 18 years ago
parent 53ff1b0490
commit ddae845f96
  1. 5
      ChangeLog
  2. 6
      libclamav/regex/regcomp.c

@ -1,3 +1,8 @@
Tue Sep 18 13:45:34 BST 2007 (njh)
----------------------------------
* libclamav/regex/regcomp.c: Fix compilation error on systems without
_POSIX2_RE_DUP_MAX (under advice from Edwin)
Mon Sep 17 21:06:59 EEST 2007(edwin)
------------------------------------
* libclamav/regex/: add regcomp(), regexec() impl. from OpenBSD's libc.

@ -138,6 +138,12 @@ static char nuls[10]; /* place to point scanner in event of error */
#define THERETHERE() (p->slen - 2)
#define DROP(n) (p->slen -= (n))
#ifdef _POSIX2_RE_DUP_MAX
#define DUPMAX _POSIX2_RE_DUP_MAX
#else
#define DUPMAX 255
#endif
#ifndef NDEBUG
static int never = 0; /* for use in asserts; shuts lint up */
#else

Loading…
Cancel
Save