summaryrefslogtreecommitdiff
path: root/textproc/isearch/patches/patch-ac
blob: 90c3896310250864e9da267bb0864a174a65857b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ac,v 1.2 2012/12/21 10:29:46 dholland Exp $

Chase after the C++ standard:
   - use the newfangled names for C++ headers
   - open the std namespace instead of using explicit "std" qualification

(don't know what the deal with REGISTRY::fprint is, XXX)

--- src/registry.cxx.orig	2000-08-21 12:55:02.000000000 +0000
+++ src/registry.cxx
@@ -40,11 +40,14 @@ Description:	Class REGISTRY - Structured
 Author:		Nassib Nassar, nrn@cnidr.org
 @@@*/
 
-#include <fstream.h>
-#include <stdlib.h>
+#include <fstream>
+#include <ostream>
+#include <cstdlib>
 
 #include "registry.hxx"
 
+using namespace std;
+
 
 REGISTRY::REGISTRY(const STRING& Title) {
   Data = Title;
@@ -333,7 +336,7 @@ void 
 REGISTRY::fprint(FILE* fp, const INT level) const 
 #else
 void 
-REGISTRY::fprint(FILE* fp, const INT level = 0) const 
+REGISTRY::fprint(FILE* fp, const INT level) const 
 #endif
 
 #else