comparison libpst.h @ 1:43e8802f08c5 debian libpst_0_5_1

imported from debian 0.5.1
author carl
date Thu, 23 Dec 2004 11:17:37 -0800
parents 6b1b602514db
children
comparison
equal deleted inserted replaced
0:6b1b602514db 1:43e8802f08c5
27 # define INT32_MAX INT_MAX 27 # define INT32_MAX INT_MAX
28 #endif 28 #endif
29 29
30 // According to Jan Wolter, sys/param.h is the most portable source of endian 30 // According to Jan Wolter, sys/param.h is the most portable source of endian
31 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html 31 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html
32 #include <sys/param.h> 32 #ifdef _MSC_VER
33 #define BYTE_ORDER LITTLE_ENDIAN
34 #else
35 #include <sys/param.h>
36 #endif // defined _MSC_VER
33 37
34 #if BYTE_ORDER == BIG_ENDIAN 38 #if BYTE_ORDER == BIG_ENDIAN
35 # define LE64_CPU(x) \ 39 # define LE64_CPU(x) \
36 x = ((((x) & 0xff00000000000000) >> 56) | \ 40 x = ((((x) & 0xff00000000000000) >> 56) | \
37 (((x) & 0x00ff000000000000) >> 40) | \ 41 (((x) & 0x00ff000000000000) >> 40) | \
65 #define int16_t short int 69 #define int16_t short int
66 #define u_int16_t unsigned short int 70 #define u_int16_t unsigned short int
67 #endif // _MSC_VER 71 #endif // _MSC_VER
68 72
69 73
70 #define PST_VERSION "0.5" 74 #define PST_VERSION "0.5.1"
71 75
72 #define PST_TYPE_NOTE 1 76 #define PST_TYPE_NOTE 1
73 #define PST_TYPE_APPOINTMENT 8 77 #define PST_TYPE_APPOINTMENT 8
74 #define PST_TYPE_CONTACT 9 78 #define PST_TYPE_CONTACT 9
75 #define PST_TYPE_JOURNAL 10 79 #define PST_TYPE_JOURNAL 10
502 // DEBUG functions 506 // DEBUG functions
503 int32_t _pst_printDptr(pst_file *pf); 507 int32_t _pst_printDptr(pst_file *pf);
504 int32_t _pst_printIDptr(pst_file* pf); 508 int32_t _pst_printIDptr(pst_file* pf);
505 int32_t _pst_printID2ptr(pst_index2_ll *ptr); 509 int32_t _pst_printID2ptr(pst_index2_ll *ptr);
506 void * xmalloc(size_t size); 510 void * xmalloc(size_t size);
507 #endif 511
512 #endif // defined LIBPST_H