use system regex routines if available.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@414 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2002-03-12 16:30:23 +00:00
parent ba03bd25be
commit 79e37862cb
2 changed files with 11 additions and 3 deletions

View File

@@ -20,7 +20,15 @@
#include <sys/types.h>
#endif
#include "c_interface.h"
#if HAVE_REGEX_H
#include "regex.h"
#define yap_regcomp(A,B,C) regcomp(A,B,C)
#define yap_regexec(A,B,C,D,E) regexec(A,B,C,D,E)
#define yap_regfree(A) regfree(A)
#define yap_regerror(A,B,C,D) regfree(A,B,C,D)
#else
#include "yapregex.h"
#endif
/* for the sake of NULL */
#include <stdio.h>