annotate src/testdebug.c @ 60:97b7706bdda2

Work around bogus 7c.b5 blocks in some messages that have been read. They appear to have attachments, but of some unknown format. Before the message was read, it did not have any attachments. Use autoscan to cleanup our autoconf system. Use autoconf to detect when we need to use our XGetopt files and other header files. More fields, including BCC. Fix missing LE32_CPU byte swapping for FILETIME types.
author Carl Byington <carl@five-ten-sg.com>
date Sat, 16 Feb 2008 12:26:35 -0800
parents f66078abed38
children 0f1492b7fe8b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
f66078abed38 more fixes for 64 bit format
carl
parents: 16
diff changeset
1 #include "define.h"
f66078abed38 more fixes for 64 bit format
carl
parents: 16
diff changeset
2
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
3 #include <stdlib.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
4 #include <string.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
5
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
6 #define BUF_SIZE 100000
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
7 int main() {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
8 char *x = xmalloc(BUF_SIZE); // 10k
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
9 memset(x, '.', BUF_SIZE-1);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
10 x[BUF_SIZE-2]='P';
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
11 x[BUF_SIZE-1]='\0';
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
12
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
13 DEBUG_INIT("libpst.log");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
14 DEBUG_REGISTER_CLOSE();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
15
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
16 DEBUG_ENT("main");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
17
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
18 DEBUG_FILE(("%s", x));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
19 DEBUG_FILE(("This is an error %d\n", 4));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
20
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
21 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
22 return 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
23 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
24