Annotation of elwix/tools/oldlzma/SRC/7zip/Archive/7z_C/7zTypes.h, revision 1.1.1.1

1.1       misho       1: /* 7zTypes.h */
                      2: 
                      3: #ifndef __COMMON_TYPES_H
                      4: #define __COMMON_TYPES_H
                      5: 
                      6: #ifndef UInt32
                      7: #ifdef _LZMA_UINT32_IS_ULONG
                      8: #define UInt32 unsigned long
                      9: #else
                     10: #define UInt32 unsigned int
                     11: #endif
                     12: #endif
                     13: 
                     14: #ifndef Byte
                     15: #define Byte unsigned char
                     16: #endif
                     17: 
                     18: #ifndef UInt16
                     19: #define UInt16 unsigned short
                     20: #endif
                     21: 
                     22: /* #define _SZ_NO_INT_64 */
                     23: /* define it your compiler doesn't support long long int */
                     24: 
                     25: #ifdef _SZ_NO_INT_64
                     26: #define UInt64 unsigned long
                     27: #else
                     28: #ifdef _MSC_VER
                     29: #define UInt64 unsigned __int64
                     30: #else
                     31: #define UInt64 unsigned long long int
                     32: #endif
                     33: #endif
                     34: 
                     35: 
                     36: /* #define _SZ_FILE_SIZE_64 */
                     37: /* Use _SZ_FILE_SIZE_64 if you need support for files larger than 4 GB*/
                     38: 
                     39: #ifndef CFileSize
                     40: #ifdef _SZ_FILE_SIZE_64
                     41: #define CFileSize UInt64
                     42: #else
                     43: #define CFileSize UInt32
                     44: #endif
                     45: #endif
                     46: 
                     47: #define SZ_RESULT int
                     48: 
                     49: #define SZ_OK (0)
                     50: #define SZE_DATA_ERROR (1)
                     51: #define SZE_OUTOFMEMORY (2)
                     52: #define SZE_CRC_ERROR (3)
                     53: 
                     54: #define SZE_NOTIMPL (4)
                     55: #define SZE_FAIL (5)
                     56: 
                     57: #define SZE_ARCHIVE_ERROR (6)
                     58: 
                     59: #define RINOK(x) { int __result_ = (x); if(__result_ != 0) return __result_; }
                     60: 
                     61: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>