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
|
$NetBSD: patch-am,v 1.1 2003/11/18 21:09:18 markd Exp $
--- src/Unidraw/catalog.c.orig 2003-10-23 07:15:03.000000000 +1300
+++ src/Unidraw/catalog.c
@@ -63,7 +63,7 @@
#include <stdlib.h>
#include <string.h>
#include <stream.h>
-#include <strstream.h>
+#include <strstream>
#ifdef SYSV
#include <OS/types.h>
#include <unistd.h>
@@ -708,7 +708,7 @@ void* Catalog::CopyObject (void* obj, Cl
ObjectMap* prevMap = _curMap;
ObjectMap omap(obj, base_id), imap(copy, base_id);
- strstream inout;
+ std::strstream inout;
_curMap = &omap;
boolean ok = SaveObject(obj, base_id, inout);
@@ -1660,7 +1660,7 @@ PSPattern* Catalog::ReadPattern (const c
}
} else {
- istrstream in(definition, strlen(definition) + 1);
+ std::istrstream in(definition, strlen(definition) + 1);
int data[patternHeight];
int i;
for (i = 0; !in.eof() && in.good() && i < patternHeight; i++) {
|