annotate rvinterf/ctracedec/main.c @ 954:d25d73815817

c139explore: jump command added
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Wed, 04 Nov 2015 19:57:45 +0000
parents d32dff865575
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
859
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 * This module contains the main() function for ctracedec
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3 */
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5 #include <stdio.h>
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 #include <stdlib.h>
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 char *str2ind_tab_filename;
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 main(argc, argv)
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11 char **argv;
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 {
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13 int i;
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 if (argc < 3) {
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
16 fprintf(stderr,
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
17 "usage: %s str2ind.tab logfile [more log files]\n",
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
18 argv[0]);
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
19 exit(1);
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
20 }
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
21 str2ind_tab_filename = argv[1];
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
22 read_str2ind_tab();
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
23 for (i = 2; i < argc; i++)
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
24 process_log_file(argv[i]);
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
25 exit(0);
d32dff865575 ctracedec compiles
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
26 }