pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/regexx Fix build with gcc3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6bc7ef3a8180
branches:  trunk
changeset: 469804:6bc7ef3a8180
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Sun Feb 29 11:10:36 2004 +0000

description:
Fix build with gcc3.

diffstat:

 textproc/regexx/distinfo         |   3 +-
 textproc/regexx/patches/patch-ad |  45 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletions(-)

diffs (62 lines):

diff -r 463553cd8e9c -r 6bc7ef3a8180 textproc/regexx/distinfo
--- a/textproc/regexx/distinfo  Sun Feb 29 10:32:13 2004 +0000
+++ b/textproc/regexx/distinfo  Sun Feb 29 11:10:36 2004 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/03/15 08:53:09 rh Exp $
+$NetBSD: distinfo,v 1.2 2004/02/29 11:10:36 jmmv Exp $
 
 SHA1 (regexx-0.98.1.tar.gz) = 0ab71bd8d645d961d846445fd160b951e08d4514
 Size (regexx-0.98.1.tar.gz) = 422031 bytes
 SHA1 (patch-aa) = 15d40e8c78fe8b31aa144e92d44d125872240f15
 SHA1 (patch-ab) = 3ab2e37f530b2489c3837e0a55e27c33fba02757
 SHA1 (patch-ac) = 12aa1a37bdccff90a7a7e7244f44890584ddd012
+SHA1 (patch-ad) = 35873392672c6edaf1037359785906ad6b52b346
diff -r 463553cd8e9c -r 6bc7ef3a8180 textproc/regexx/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/regexx/patches/patch-ad  Sun Feb 29 11:10:36 2004 +0000
@@ -0,0 +1,45 @@
+$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);



Home | Main Index | Thread Index | Old Index