comparison src/testdebug.c @ 172:6954d315aaa8

move version-info into main configure.in, and set it properly. prefix all external symbols in the shared library with pst_ to avoid symbol clashes with other shared libraries.
author Carl Byington <carl@five-ten-sg.com>
date Sat, 04 Apr 2009 16:00:48 -0700
parents fc11b1d1ad34
children
comparison
equal deleted inserted replaced
171:6c1e75bc4cac 172:6954d315aaa8
1 #include "define.h" 1 #include "define.h"
2 2
3 #define BUF_SIZE 100000 3 #define BUF_SIZE 100000
4 4
5 int main(int argc, const char** argv) { 5 int main(int argc, const char** argv) {
6 char *x = xmalloc(BUF_SIZE); // 10k 6 char *x = pst_malloc(BUF_SIZE); // 10k
7 memset(x, '.', BUF_SIZE-1); 7 memset(x, '.', BUF_SIZE-1);
8 x[BUF_SIZE-2]='P'; 8 x[BUF_SIZE-2]='P';
9 x[BUF_SIZE-1]='\0'; 9 x[BUF_SIZE-1]='\0';
10 10
11 DEBUG_INIT("libpst.log"); 11 DEBUG_INIT("libpst.log");