#include <string>
#include "Include/compiler.h"
+#ifdef FG_HAVE_STD_INCLUDES
+# include <istream>
+#else
+# include <istream.h>
+#endif
+
FG_USING_STD(string);
+FG_USING_STD(istream);
-// #ifdef FG_HAVE_STD_INCLUDES
-// #include <istream>
-// #else
-// #include <istream.h>
-// #endif
#include "zfstream.hxx"
-// Input stream manipulator function type.
-class fg_gzifstream;
-typedef fg_gzifstream& (*IManipFunc)( fg_gzifstream& );
-
//-----------------------------------------------------------------------------
//
// Envelope class for gzifstream.
void attach( int fd, ios_openmode io_mode = ios_in|ios_binary );
+ void close() { gzbuf.close(); }
+
private:
// Not defined!
fg_gzifstream( const fg_gzifstream& );
#endif /* _FGSTREAM_HXX */
// $Log$
+// Revision 1.6 1999/01/19 20:41:46 curt
+// Portability updates contributed by Bernie Bright.
+//
// Revision 1.5 1998/11/06 14:05:13 curt
// More portability improvements by Bernie Bright.
//
#define STRUTILS_H
#include <string>
-// #include <cstdlib>
-#include <stdlib.h>
+#include "Include/compiler.h"
-#include "Include/fg_stl_config.h"
-FG_USING_NAMESPACE(std);
+#ifdef FG_HAVE_STD_INCLUDES
+# include <cstdlib>
+#else
+# include <stdlib.h>
+#endif
+
+FG_USING_STD(string);
// Default characters to remove.
extern const string whitespace;
#endif // STRUTILS_H
// $Log$
+// Revision 1.4 1999/01/19 20:41:47 curt
+// Portability updates contributed by Bernie Bright.
+//
// Revision 1.3 1998/10/16 00:50:57 curt
// Remove leading _ from a couple defines.
//
#include <memory.h>
#include "zfstream.hxx"
-const int gzfilebuf::page_size;
-
//
// Construct a gzfilebuf object.
// Allocate memory for 'get' buffer and zero all buffer pointers.
#endif
// $Log$
+// Revision 1.3 1999/01/19 20:41:48 curt
+// Portability updates contributed by Bernie Bright.
+//
// Revision 1.2 1998/11/06 14:05:14 curt
// More portability improvements by Bernie Bright.
//
# define ios_badbit ios_base::badbit
# define ios_failbit ios_base::failbit
+FG_USING_STD(streambuf);
+FG_USING_STD(ios_base);
+FG_USING_STD(streampos);
+FG_USING_STD(streamoff);
+
#else
# ifdef FG_HAVE_STREAMBUF
int ibuf_size;
char* ibuffer;
- static const int page_size = 4096;
+ enum { page_size = 4096 };
private:
// Not defined
#endif // _zfstream_hxx
// $Log$
+// Revision 1.7 1999/01/19 20:41:49 curt
+// Portability updates contributed by Bernie Bright.
+//
// Revision 1.6 1998/12/07 21:10:26 curt
// Portability improvements.
//