From 5b39dc76f1bc82f941d5c800ab9f34407a06b53a Mon Sep 17 00:00:00 2001 From: Igor Pavlov <87184205+ip7z@users.noreply.github.com> Date: Wed, 21 Jun 2023 00:00:00 +0000 Subject: 23.01 --- CPP/Common/StdOutStream.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'CPP/Common/StdOutStream.h') diff --git a/CPP/Common/StdOutStream.h b/CPP/Common/StdOutStream.h index 93f1dfa..bd15d7c 100644 --- a/CPP/Common/StdOutStream.h +++ b/CPP/Common/StdOutStream.h @@ -1,7 +1,7 @@ // Common/StdOutStream.h -#ifndef __COMMON_STD_OUT_STREAM_H -#define __COMMON_STD_OUT_STREAM_H +#ifndef ZIP7_INC_COMMON_STD_OUT_STREAM_H +#define ZIP7_INC_COMMON_STD_OUT_STREAM_H #include @@ -11,26 +11,28 @@ class CStdOutStream { FILE *_stream; - bool _streamIsOpen; + // bool _streamIsOpen; public: bool IsTerminalMode; int CodePage; - CStdOutStream(FILE *stream = 0): + CStdOutStream(FILE *stream = NULL): _stream(stream), - _streamIsOpen(false), + // _streamIsOpen(false), IsTerminalMode(false), CodePage(-1) - {}; + {} - ~CStdOutStream() { Close(); } + // ~CStdOutStream() { Close(); } // void AttachStdStream(FILE *stream) { _stream = stream; _streamIsOpen = false; } // bool IsDefined() const { return _stream != NULL; } operator FILE *() { return _stream; } + /* bool Open(const char *fileName) throw(); bool Close() throw(); + */ bool Flush() throw(); CStdOutStream & operator<<(CStdOutStream & (* func)(CStdOutStream &)) @@ -60,7 +62,7 @@ public: void PrintUString(const UString &s, AString &temp); void Convert_UString_to_AString(const UString &src, AString &dest); - void Normalize_UString__LF_Allowed(UString &s); + void Normalize_UString_LF_Allowed(UString &s); void Normalize_UString(UString &s); void NormalizePrint_UString(const UString &s, UString &tempU, AString &tempA); -- cgit v1.2.3-55-g6feb