comparison ticoff/main.c @ 77:590396e27e96

tiobjd: basics dump streamlined
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 25 Mar 2014 22:47:51 +0000
parents 1a23ff9a81de
children 8f4996bff904
comparison
equal deleted inserted replaced
76:7a0559016b68 77:590396e27e96
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 #include <strings.h> 9 #include <strings.h>
10 #include "globals.h" 10 #include "globals.h"
11 11
12 extern int cmd_dumpsym(); 12 extern int cmd_basics();
13 extern int cmd_sechdr(); 13 extern int cmd_sechdr();
14 extern int cmd_symtab();
14 extern int dump_filehdr_info(); 15 extern int dump_filehdr_info();
15 16
16 static struct cmdtab { 17 static struct cmdtab {
17 char *cmd; 18 char *cmd;
18 int (*func)(); 19 int (*func)();
19 } cmdtab[] = { 20 } cmdtab[] = {
20 {"dumpsym", cmd_dumpsym}, 21 {"basics", cmd_basics},
22 {"dumpsym", cmd_symtab}, /* backward compat */
21 {"hdr", dump_filehdr_info}, 23 {"hdr", dump_filehdr_info},
22 {"sechdr", cmd_sechdr}, 24 {"sechdr", cmd_sechdr},
25 {"symtab", cmd_symtab},
23 {0, 0} 26 {0, 0}
24 }; 27 };
25 28
26 main(argc, argv) 29 main(argc, argv)
27 char **argv; 30 char **argv;