From 5c1001ce4f585836e1f83c28d1df89aee42fb743 Mon Sep 17 00:00:00 2001 From: levine Date: Tue, 20 Oct 1998 02:34:57 +0000 Subject: changed include protection from #if !defined to ifndef, and added #pragma once, if possible --- ace/DEV_IO.h | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) (limited to 'ace/DEV_IO.h') diff --git a/ace/DEV_IO.h b/ace/DEV_IO.h index ad82d31927f..990e1165b40 100644 --- a/ace/DEV_IO.h +++ b/ace/DEV_IO.h @@ -5,25 +5,26 @@ // // = LIBRARY // ace -// +// // = FILENAME // DEV_IO.h // // = AUTHOR // Gerhard Lenzer and Douglas C. Schmidt -// +// // ============================================================================ -#ifndef ACE_DEV_IO_H +#ifndef ACE_DEV_IO_H #define ACE_DEV_IO_H #include "ace/DEV.h" -#include "ace/DEV_Addr.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/DEV_Addr.h" + class ACE_Export ACE_DEV_IO : public ACE_DEV { // = TITLE @@ -41,33 +42,33 @@ public: ssize_t recv (void *buf, size_t n) const; // Recv upto bytes in . - ssize_t send_n (const void *buf, size_t n) const; - // Send n bytes, keep trying until n are sent. + ssize_t send_n (const void *buf, size_t n) const; + // Send n bytes, keep trying until n are sent. - ssize_t recv_n (void *buf, size_t n) const; - // Recv n bytes, keep trying until n are received. + ssize_t recv_n (void *buf, size_t n) const; + // Recv n bytes, keep trying until n are received. #if defined (ACE_HAS_STREAM_PIPES) - ssize_t recv (ACE_Str_Buf *cntl, - ACE_Str_Buf *data, - int *band, - int *flags) const; + ssize_t recv (ACE_Str_Buf *cntl, + ACE_Str_Buf *data, + int *band, + int *flags) const; // Recv bytes via STREAM pipes using "band" mode. - ssize_t send (const ACE_Str_Buf *cntl, - const ACE_Str_Buf *data, - int band, - int flags) const; + ssize_t send (const ACE_Str_Buf *cntl, + const ACE_Str_Buf *data, + int band, + int flags) const; // Send bytes via STREAM pipes using "band" mode. - ssize_t recv (ACE_Str_Buf *cntl, - ACE_Str_Buf *data, - int *flags) const; + ssize_t recv (ACE_Str_Buf *cntl, + ACE_Str_Buf *data, + int *flags) const; // Recv and via STREAM pipes. - ssize_t send (const ACE_Str_Buf *cntl, - const ACE_Str_Buf *data, - int flags = 0) const; + ssize_t send (const ACE_Str_Buf *cntl, + const ACE_Str_Buf *data, + int flags = 0) const; // Send and via STREAM pipes. #endif /* ACE_HAS_STREAM_PIPES */ -- cgit v1.2.1