X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..refs/heads/master:/lib/regsub.h?ds=inline
diff --git a/lib/regsub.h b/lib/regsub.h
index c4107e0..1c9afc7 100644
--- a/lib/regsub.h
+++ b/lib/regsub.h
@@ -15,11 +15,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
+/** @file lib/regsub.h
+ * @brief Regexp substitution
+ */
#ifndef REGSUB_H
#define REGSUB_H
-#include
+#include "regexp.h"
#define REGSUB_GLOBAL 0x0001 /* global replace */
#define REGSUB_MUST_MATCH 0x0002 /* return 0 if no match */
@@ -32,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 */