mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
69 lines
1.6 KiB
C++
69 lines
1.6 KiB
C++
--- class/LKV/Bstream.h 3 Nov 2004 06:57:51 -0000 1.1
|
|
+++ class/LKV/Bstream.h 20 Feb 2006 10:55:38 -0000
|
|
@@ -2,7 +2,7 @@
|
|
#ifndef Bstream_h
|
|
#define Bstream_h
|
|
|
|
-#include <iostream.h>
|
|
+#include <iostream>
|
|
|
|
#ifdef OBSOLETE_LIBGXX
|
|
#include <fstream.h>
|
|
@@ -10,7 +10,7 @@
|
|
|
|
|
|
#ifndef OBSOLETE_LIBGXX
|
|
-class BOstream : public ostream {
|
|
+class BOstream : public std::ostream {
|
|
#else
|
|
class BOstream : public ofstream {
|
|
#endif
|
|
@@ -22,7 +22,7 @@ protected:
|
|
public:
|
|
|
|
#ifndef OBSOLETE_LIBGXX
|
|
- BOstream( ostream & orig );
|
|
+ BOstream( std::ostream & orig );
|
|
#endif
|
|
|
|
BOstream & operator<< (int n) { ewrite(&n, sizeof(n)); return *this; }
|
|
@@ -34,13 +34,13 @@ public:
|
|
BOstream & operator<< (const void * n) { ewrite(&n, sizeof(n)); return *this; }
|
|
|
|
int mem_dump(const void * p, int size) {
|
|
- write ((const unsigned char *)p, size);
|
|
+ write ((const char *)p, size);
|
|
return fail();
|
|
}
|
|
};
|
|
|
|
#ifndef OBSOLETE_LIBGXX
|
|
-class BIstream : public istream {
|
|
+class BIstream : public std::istream {
|
|
#else
|
|
class BIstream : public ifstream {
|
|
#endif
|
|
@@ -52,7 +52,7 @@ protected:
|
|
public:
|
|
|
|
#ifndef OBSOLETE_LIBGXX
|
|
- BIstream( istream & orig );
|
|
+ BIstream( std::istream & orig );
|
|
#endif
|
|
|
|
BIstream & operator>> (int & n) { eread(&n, sizeof(n)); return *this; }
|
|
@@ -64,12 +64,12 @@ public:
|
|
BIstream & operator>> (void * & n) { eread(&n, sizeof(n)); return *this; }
|
|
|
|
int mem_undump(void * p, int size) {
|
|
- read ((unsigned char *)p, size);
|
|
+ read ((char *)p, size);
|
|
return fail();
|
|
}
|
|
};
|
|
|
|
|
|
|
|
-#endif Bstream_h
|
|
+#endif /* Bstream_h */
|
|
|