pkgsrc/textproc/regexx/patches/patch-ad
2004-02-29 11:10:36 +00:00

45 lines
1.1 KiB
Text

$NetBSD: patch-ad,v 1.1 2004/02/29 11:10:36 jmmv Exp $
--- src/regexx.hh.orig 2001-03-13 15:42:21.000000000 +0100
+++ src/regexx.hh
@@ -29,10 +29,13 @@
#ifndef REGEXX_HH
#define REGEXX_HH
+#include <iostream>
#include <string>
#include <vector>
#include <split.hh>
+using namespace std;
+
namespace regexx {
/** Class to store atoms.
@@ -566,7 +569,7 @@ namespace regexx {
}
inline const std::string&
- Regexx::replacef(std::string (*_func)(const RegexxMatch&), int _flags = 0)
+ Regexx::replacef(std::string (*_func)(const RegexxMatch&), int _flags)
throw(CompileException)
{
exec(_flags&~nomatch);
@@ -580,7 +583,7 @@ namespace regexx {
inline const std::string&
Regexx::replacef(const std::string& _expr,
std::string (*_func)(const RegexxMatch&),
- int _flags = 0)
+ int _flags)
throw(CompileException)
{
expr(_expr);
@@ -590,7 +593,7 @@ namespace regexx {
inline const std::string&
Regexx::replacef(const std::string& _str, const std::string& _expr,
std::string (*_func)(const RegexxMatch&),
- int _flags = 0)
+ int _flags)
throw(CompileException)
{
str(_str);