comparison src/libpst.c @ 122:bdb38b434c0a

more changes from Fridrich Strba to avoid installing our config.h
author Carl Byington <carl@five-ten-sg.com>
date Mon, 02 Feb 2009 21:55:48 -0800
parents 6395ced2b8b2
children ab2a11e72250
comparison
equal deleted inserted replaced
121:8399ef94c11b 122:bdb38b434c0a
3 * Part of the LibPST project 3 * Part of the LibPST project
4 * Written by David Smith 4 * Written by David Smith
5 * dave.s@earthcorp.com 5 * dave.s@earthcorp.com
6 */ 6 */
7 7
8 #include "define.h"
9 #include "common.h" 8 #include "common.h"
10 #include "libpst.h" 9 #include "libpst.h"
11 #include "timeconv.h" 10 #include "timeconv.h"
12 #include "libstrfunc.h" 11 #include "libstrfunc.h"
13 #include "vbuf.h" 12 #include "vbuf.h"
14 13
14 #include "define.h"
15
15 #define ASSERT(x) { if(!(x)) raise( SIGSEGV ); } 16 #define ASSERT(x) { if(!(x)) raise( SIGSEGV ); }
16 17
17 18
18 #define INDEX_TYPE32 0x0E 19 #define INDEX_TYPE32 0x0E
19 #define INDEX_TYPE32A 0x0F // unknown, but assumed to be similar for now 20 #define INDEX_TYPE32A 0x0F // unknown, but assumed to be similar for now
20 #define INDEX_TYPE64 0x17 21 #define INDEX_TYPE64 0x17
22 #define INDEX_TYPE64A 0x15 // http://sourceforge.net/projects/libpff/
21 #define INDEX_TYPE_OFFSET (off_t)0x0A 23 #define INDEX_TYPE_OFFSET (off_t)0x0A
22 24
23 #define FILE_SIZE_POINTER32 (off_t)0xA8 25 #define FILE_SIZE_POINTER32 (off_t)0xA8
24 #define INDEX_POINTER32 (off_t)0xC4 26 #define INDEX_POINTER32 (off_t)0xC4
25 #define INDEX_BACK32 (off_t)0xC0 27 #define INDEX_BACK32 (off_t)0xC0
201 case INDEX_TYPE32 : 203 case INDEX_TYPE32 :
202 case INDEX_TYPE32A : 204 case INDEX_TYPE32A :
203 pf->do_read64 = 0; 205 pf->do_read64 = 0;
204 break; 206 break;
205 case INDEX_TYPE64 : 207 case INDEX_TYPE64 :
208 case INDEX_TYPE64A :
206 pf->do_read64 = 1; 209 pf->do_read64 = 1;
207 break; 210 break;
208 default: 211 default:
209 (void)fclose(pf->fp); 212 (void)fclose(pf->fp);
210 WARN(("unknown .pst format, possibly newer than Outlook 2003 PST file?\n")); 213 WARN(("unknown .pst format, possibly newer than Outlook 2003 PST file?\n"));