13 #ifndef EXTERN_C_BEGIN
15 #define EXTERN_C_BEGIN extern "C" {
16 #define EXTERN_C_END }
18 #define EXTERN_C_BEGIN
27 #define SZ_ERROR_DATA 1
28 #define SZ_ERROR_MEM 2
29 #define SZ_ERROR_CRC 3
30 #define SZ_ERROR_UNSUPPORTED 4
31 #define SZ_ERROR_PARAM 5
32 #define SZ_ERROR_INPUT_EOF 6
33 #define SZ_ERROR_OUTPUT_EOF 7
34 #define SZ_ERROR_READ 8
35 #define SZ_ERROR_WRITE 9
36 #define SZ_ERROR_PROGRESS 10
37 #define SZ_ERROR_FAIL 11
38 #define SZ_ERROR_THREAD 12
40 #define SZ_ERROR_ARCHIVE 16
41 #define SZ_ERROR_NO_ARCHIVE 17
52 #define RINOK(x) { int __result__ = (x); if (__result__ != 0) return __result__; }
55 typedef unsigned char Byte;
59 #ifdef _LZMA_UINT32_IS_ULONG
61 typedef unsigned long UInt32;
73 typedef unsigned long UInt64;
77 #if defined(_MSC_VER) || defined(__BORLANDC__)
78 typedef __int64
Int64;
79 typedef unsigned __int64
UInt64;
80 #define UINT64_CONST(n) n
83 typedef unsigned long long int UInt64;
84 #define UINT64_CONST(n) n ## ULL
89 #ifdef _LZMA_NO_SYSTEM_SIZE_T
101 #define MY_STD_CALL __stdcall
109 #define MY_NO_INLINE __declspec(noinline)
114 #define MY_CDECL __cdecl
115 #define MY_FAST_CALL __fastcall
151 size_t (*Write)(
void *
p,
const void *buf,
size_t size);
190 #define LookToRead_BUF_SIZE (1 << 14)
229 void *(*Alloc)(
void *
p,
size_t size);
230 void (*
Free)(
void *
p,
void *address);
233 #define IAlloc_Alloc(p, size) (p)->Alloc((p), size)
234 #define IAlloc_Free(p, a) (p)->Free((p), a)
238 #define CHAR_PATH_SEPARATOR '\\'
239 #define WCHAR_PATH_SEPARATOR L'\\'
240 #define STRING_PATH_SEPARATOR "\\"
241 #define WSTRING_PATH_SEPARATOR L"\\"
245 #define CHAR_PATH_SEPARATOR '/'
246 #define WCHAR_PATH_SEPARATOR L'/'
247 #define STRING_PATH_SEPARATOR "/"
248 #define WSTRING_PATH_SEPARATOR L"/"
unsigned long long int UInt64
SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf)
SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size)
void LookToRead_CreateVTable(CLookToRead *p, int lookahead)
void SecToLook_CreateVTable(CSecToLook *p)
SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType)
SRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset)
void LookToRead_Init(CLookToRead *p)
ISeekInStream * realStream
ILookInStream * realStream
#define LookToRead_BUF_SIZE
SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType)
SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size)
ILookInStream * realStream
SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size)
tuple size
Write out results.
void SecToRead_CreateVTable(CSecToRead *p)