aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common/StdInStream.cpp
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2023-06-21 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2023-12-17 14:59:19 +0500
commit5b39dc76f1bc82f941d5c800ab9f34407a06b53a (patch)
treefe5e17420300b715021a76328444088d32047963 /CPP/Common/StdInStream.cpp
parent93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (diff)
download7zip-23.01.tar.gz
7zip-23.01.tar.bz2
7zip-23.01.zip
23.0123.01
Diffstat (limited to '')
-rw-r--r--CPP/Common/StdInStream.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/CPP/Common/StdInStream.cpp b/CPP/Common/StdInStream.cpp
index abad34b..7b209f1 100644
--- a/CPP/Common/StdInStream.cpp
+++ b/CPP/Common/StdInStream.cpp
@@ -14,10 +14,12 @@
14// #define kReadErrorMessage "Error reading input stream" 14// #define kReadErrorMessage "Error reading input stream"
15// #define kIllegalCharMessage "Illegal zero character in input stream" 15// #define kIllegalCharMessage "Illegal zero character in input stream"
16 16
17#define kFileOpenMode TEXT("r")
18 17
19CStdInStream g_StdIn(stdin); 18CStdInStream g_StdIn(stdin);
20 19
20/*
21#define kFileOpenMode TEXT("r")
22
21bool CStdInStream::Open(LPCTSTR fileName) throw() 23bool CStdInStream::Open(LPCTSTR fileName) throw()
22{ 24{
23 Close(); 25 Close();
@@ -39,6 +41,7 @@ bool CStdInStream::Close() throw()
39 _streamIsOpen = (fclose(_stream) != 0); 41 _streamIsOpen = (fclose(_stream) != 0);
40 return !_streamIsOpen; 42 return !_streamIsOpen;
41} 43}
44*/
42 45
43bool CStdInStream::ScanAStringUntilNewLine(AString &s) 46bool CStdInStream::ScanAStringUntilNewLine(AString &s)
44{ 47{