summaryrefslogtreecommitdiff
path: root/ace/IOStream.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-05 05:38:00 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-02-05 05:38:00 +0000
commit72f025ebdb3c2f96bff8888139cbaf4070c6b46e (patch)
treebda9096e9261f9aca4c715ae00b6031bf2513564 /ace/IOStream.h
parente589686a7e0687a5713b8495c74e83a9752e57c4 (diff)
downloadATCD-72f025ebdb3c2f96bff8888139cbaf4070c6b46e.tar.gz
foo
Diffstat (limited to 'ace/IOStream.h')
-rw-r--r--ace/IOStream.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/ace/IOStream.h b/ace/IOStream.h
index e465d69980f..a0694844f4f 100644
--- a/ace/IOStream.h
+++ b/ace/IOStream.h
@@ -23,18 +23,14 @@
#include "ace/OS.h"
-#ifndef ACE_STREAMBUF_SIZE
-#define ACE_STREAMBUF_SIZE 1024
-#endif ACE_STREAMBUF_SIZE
-
#if defined (__GNUC__)
#include <String.h>
class QuotedString : public String
{
public:
- inline QuotedString & operator =(char c) { return((QuotedString&)String::operator=(c)); }
- inline QuotedString & operator =(char* c) { return((QuotedString&)String::operator=(c)); }
+ inline QuotedString & operator =(char c) { return (QuotedString&) String::operator=(c); }
+ inline QuotedString & operator =(char* c) { return (QuotedString&) String::operator=(c); }
};
#endif /* __GNUC__ */
@@ -172,7 +168,7 @@ private:
// underflow. It will attempt to fill the read buffer from the
// peer.
- int get_one_byte(void);
+ int get_one_byte (void);
// Used by fillbuf and others to get exactly one byte from the peer.
// recv_n is used to be sure we block until something is available.
};
@@ -181,19 +177,19 @@ private:
// We will use it below to quickly override most (all?) iostream get
// operators. Notice how the ipfx() and isfx() functions are used.
-#define ACE_OPERATORG(MT,DT) \
- inline virtual MT& operator>>(DT v) { \
- if(ipfx()) iostream::operator>>(v); isfx(); return(*this); \
- };
+#define ACE_OPERATORG(MT,DT) \
+ inline virtual MT& operator>> (DT v) { \
+ if (ipfx ()) iostream::operator>> (v); isfx (); return *this; \
+ }
// This macro defines the put operator for class MT into datatype DT.
// We will use it below to quickly override most (all?) iostream put
// operators. Notice how the opfx() and osfx() functions are used.
-#define ACE_OPERATORP(MT,DT) \
- inline virtual MT& operator<<(DT v) { \
- if(opfx()) iostream::operator<<(v); osfx(); return(*this); \
- };
+#define ACE_OPERATORP(MT,DT) \
+ inline virtual MT& operator<< (DT v) { \
+ if (opfx ()) iostream::operator<< (v); osfx (); return *this; \
+ }
// These are necessary in case somebody wants to derive from us and
// override one of these with a custom approach.