comparison src/readpstlog.c @ 46:b2a7f2e0926a

more fixes for 64 bit format
author carl
date Sat, 12 Jan 2008 15:20:53 -0800
parents f6db1f060a95
children f66078abed38
comparison
equal deleted inserted replaced
45:b961bcdadd0e 46:b2a7f2e0926a
19 int split_args(char *args, int **targ); 19 int split_args(char *args, int **targ);
20 int is_in(int a, int *b, int c); 20 int is_in(int a, int *b, int c);
21 21
22 int main(int argc, char** argv) { 22 int main(int argc, char** argv) {
23 int level = 0; 23 int level = 0;
24 int *i=NULL, x, ptr, stop=0, flag; 24 off_t *i = NULL;
25 int x, ptr, stop=0, flag;
25 char *fname, *buf, rec_type; 26 char *fname, *buf, rec_type;
26 unsigned char version; 27 unsigned char version;
27 int *show_type=NULL, show_size=0; 28 int *show_type=NULL, show_size=0;
28 int *ex_type=NULL, ex_size=0; 29 int *ex_type=NULL, ex_size=0;
29 unsigned int funcname, filename, text, end, dtype, line, c; 30 unsigned int funcname=0, filename=0, text=0, end=0, dtype=0, line=0, c;
30 FILE *fp; 31 FILE *fp;
31 struct _debug_file_rec_m mfile_rec; 32 struct pst_debug_file_rec_m mfile_rec;
32 struct _debug_file_rec_l lfile_rec; 33 struct pst_debug_file_rec_l lfile_rec;
33 char format = 'D'; // default 34 char format = 'D'; // default
34 while ((c = getopt(argc, argv, "f:t:x:")) != -1) { 35 while ((c = getopt(argc, argv, "f:t:x:")) != -1) {
35 switch(c) { 36 switch(c) {
36 case 'f': 37 case 'f':
37 // change the output format 38 // change the output format