Mercurial > libpst
comparison src/libpst.c @ 33:12cac756bc05 stable-0-5-5
enable -d option, but if not specified, don't generate a debug file
author | carl |
---|---|
date | Tue, 10 Jul 2007 20:23:55 -0700 |
parents | b88ceb81dba2 |
children | 07177825c91b |
comparison
equal
deleted
inserted
replaced
32:c03974357771 | 33:12cac756bc05 |
---|---|
11 #include <ctype.h> | 11 #include <ctype.h> |
12 #include <limits.h> | 12 #include <limits.h> |
13 #include <wchar.h> | 13 #include <wchar.h> |
14 | 14 |
15 #include <errno.h> | 15 #include <errno.h> |
16 #include <sys/stat.h> //mkdir | 16 #include <sys/stat.h> // mkdir |
17 #include <fcntl.h> // for Win32 definition of _O_BINARY | 17 #include <fcntl.h> // for Win32 definition of _O_BINARY |
18 #include "define.h" | 18 #include "define.h" |
19 #include "libstrfunc.h" | 19 #include "libstrfunc.h" |
20 | 20 |
21 #ifdef _MSC_VER | 21 #ifdef _MSC_VER |
22 # include <windows.h> | 22 # include <windows.h> |
23 #else | 23 #else |
24 # include <unistd.h> | 24 # include <unistd.h> |
25 #endif //ifdef _MSC_VER | 25 #endif //ifdef _MSC_VER |
26 | 26 |
27 //#include <endian.h> | |
28 //#include <byteswap.h> | |
29 | |
30 #include "libpst.h" | 27 #include "libpst.h" |
31 #include "timeconv.h" | 28 #include "timeconv.h" |
32 | |
33 //#ifdef _MSC_VER | |
34 //#include "windows.h" | |
35 //#define WARN printf | |
36 //#define DEBUG_INFO printf | |
37 //#define DEBUG_EMAIL printf | |
38 //#define DEBUG_READ printf | |
39 //#define DEBUG_DECRYPT printf | |
40 //#define DEBUG_CODE printf | |
41 //#define DEBUG_INDEX printf | |
42 //#define DEBUG_WARN printf | |
43 //#define DEBUG printf | |
44 // | |
45 //#define LE32_CPU(x) {} | |
46 //#define LE16_CPU(x) {} | |
47 //#endif // _MSC_VER | |
48 | 29 |
49 #define FILE_SIZE_POINTER 0xA8 | 30 #define FILE_SIZE_POINTER 0xA8 |
50 #define INDEX_POINTER 0xC4 | 31 #define INDEX_POINTER 0xC4 |
51 #define SECOND_POINTER 0xBC | 32 #define SECOND_POINTER 0xBC |
52 // the encryption setting could be at 0x1CC. Will require field testing | 33 // the encryption setting could be at 0x1CC. Will require field testing |