aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/Common/InBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/7zip/Common/InBuffer.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/CPP/7zip/Common/InBuffer.h b/CPP/7zip/Common/InBuffer.h
index fa06394..3aaf797 100644
--- a/CPP/7zip/Common/InBuffer.h
+++ b/CPP/7zip/Common/InBuffer.h
@@ -1,12 +1,12 @@
1// InBuffer.h 1// InBuffer.h
2 2
3#ifndef __IN_BUFFER_H 3#ifndef ZIP7_INC_IN_BUFFER_H
4#define __IN_BUFFER_H 4#define ZIP7_INC_IN_BUFFER_H
5 5
6#include "../../Common/MyException.h" 6#include "../../Common/MyException.h"
7#include "../IStream.h" 7#include "../IStream.h"
8 8
9#ifndef _NO_EXCEPTIONS 9#ifndef Z7_NO_EXCEPTIONS
10struct CInBufferException: public CSystemException 10struct CInBufferException: public CSystemException
11{ 11{
12 CInBufferException(HRESULT errorCode): CSystemException(errorCode) {} 12 CInBufferException(HRESULT errorCode): CSystemException(errorCode) {}
@@ -31,7 +31,7 @@ protected:
31 Byte ReadByte_FromNewBlock(); 31 Byte ReadByte_FromNewBlock();
32 32
33public: 33public:
34 #ifdef _NO_EXCEPTIONS 34 #ifdef Z7_NO_EXCEPTIONS
35 HRESULT ErrorCode; 35 HRESULT ErrorCode;
36 #endif 36 #endif
37 UInt32 NumExtraBytes; 37 UInt32 NumExtraBytes;
@@ -60,7 +60,7 @@ public:
60 _buf = buf + pos; 60 _buf = buf + pos;
61 _bufLim = buf + end; 61 _bufLim = buf + end;
62 _wasFinished = false; 62 _wasFinished = false;
63 #ifdef _NO_EXCEPTIONS 63 #ifdef Z7_NO_EXCEPTIONS
64 ErrorCode = S_OK; 64 ErrorCode = S_OK;
65 #endif 65 #endif
66 NumExtraBytes = 0; 66 NumExtraBytes = 0;
@@ -68,7 +68,7 @@ public:
68 68
69 void Init() throw(); 69 void Init() throw();
70 70
71 MY_FORCE_INLINE 71 Z7_FORCE_INLINE
72 bool ReadByte(Byte &b) 72 bool ReadByte(Byte &b)
73 { 73 {
74 if (_buf >= _bufLim) 74 if (_buf >= _bufLim)
@@ -77,7 +77,7 @@ public:
77 return true; 77 return true;
78 } 78 }
79 79
80 MY_FORCE_INLINE 80 Z7_FORCE_INLINE
81 bool ReadByte_FromBuf(Byte &b) 81 bool ReadByte_FromBuf(Byte &b)
82 { 82 {
83 if (_buf >= _bufLim) 83 if (_buf >= _bufLim)
@@ -86,7 +86,7 @@ public:
86 return true; 86 return true;
87 } 87 }
88 88
89 MY_FORCE_INLINE 89 Z7_FORCE_INLINE
90 Byte ReadByte() 90 Byte ReadByte()
91 { 91 {
92 if (_buf >= _bufLim) 92 if (_buf >= _bufLim)