annotate src/testdebug.c @ 146:0695de3b5a98 stable-0-6-29

fix for 64bit on Fedora 11
author Carl Byington <carl@five-ten-sg.com>
date Tue, 24 Feb 2009 15:32:56 -0800
parents fc11b1d1ad34
children 6954d315aaa8
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
123
ab2a11e72250 more cleanup of #include files.
Carl Byington <carl@five-ten-sg.com>
parents: 118
diff changeset
3 #define BUF_SIZE 100000
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
4
118
0f1492b7fe8b patch from Fridrich Strba for building on mingw and general cleanup of autoconf files
Carl Byington <carl@five-ten-sg.com>
parents: 48
diff changeset
5 int main(int argc, const char** argv) {
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
6 char *x = xmalloc(BUF_SIZE); // 10k
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
7 memset(x, '.', BUF_SIZE-1);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
8 x[BUF_SIZE-2]='P';
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
9 x[BUF_SIZE-1]='\0';
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
10
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
11 DEBUG_INIT("libpst.log");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
12 DEBUG_REGISTER_CLOSE();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
13
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
14 DEBUG_ENT("main");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
15
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
16 DEBUG_FILE(("%s", x));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
17 DEBUG_FILE(("This is an error %d\n", 4));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
18
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
19 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
20 return 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
21 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
22