chiark / gitweb /
Concentrate knowledge about the `pcre' API in one place.
[disorder] / lib / regsub.h
index 1a5aa4341e158ebc1afed57519be7cd05577ad0e..1c9afc71710327a27493f55e3ccee0bd76af5189 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef REGSUB_H
 #define REGSUB_H
 
-#include <pcre.h>
+#include "regexp.h"
 
 #define REGSUB_GLOBAL          0x0001  /* global replace */
 #define REGSUB_MUST_MATCH      0x0002  /* return 0 if no match */
@@ -34,8 +34,8 @@ unsigned regsub_flags(const char *flags);
 int regsub_compile_options(unsigned flags);
 /* convert compile-time options */
 
-const char *regsub(const pcre *re, const char *subject, const char *replace,
-                  unsigned flags);
+const char *regsub(const regexp *re, const char *subject,
+                  const char *replace, unsigned flags);
 
 #endif /* REGSUB_H */