chiark / gitweb /
lib/addr.c, etc.: Return plain addresses from `netaddress_resolve'.
[disorder] / lib / regsub.h
index c4107e052f8cb568154a16e1a9bfe5986de9c4f4..1c9afc71710327a27493f55e3ccee0bd76af5189 100644 (file)
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-
+/** @file lib/regsub.h
+ * @brief Regexp substitution
+ */
 #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 */
@@ -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 */