FreeCalypso > hg > freecalypso-reveng
comparison leo-obj/tool/main.c @ 145:25d3ead621f8
tiobjd: ctypes command implemented
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Tue, 29 Apr 2014 04:49:17 +0000 |
| parents | fbdb7686a9e9 |
| children | 069b79b36228 |
comparison
equal
deleted
inserted
replaced
| 144:fd772de226cb | 145:25d3ead621f8 |
|---|---|
| 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_basics(); | 12 extern int cmd_basics(); |
| 13 extern int cmd_ctypes(); | |
| 13 extern int cmd_disasm(); | 14 extern int cmd_disasm(); |
| 14 extern int cmd_ln(); | 15 extern int cmd_ln(); |
| 15 extern int cmd_nm(); | 16 extern int cmd_nm(); |
| 16 extern int cmd_profile(); | 17 extern int cmd_profile(); |
| 17 extern int cmd_rawrel(); | 18 extern int cmd_rawrel(); |
| 23 static struct cmdtab { | 24 static struct cmdtab { |
| 24 char *cmd; | 25 char *cmd; |
| 25 int (*func)(); | 26 int (*func)(); |
| 26 } cmdtab[] = { | 27 } cmdtab[] = { |
| 27 {"basics", cmd_basics}, | 28 {"basics", cmd_basics}, |
| 29 {"ctypes", cmd_ctypes}, | |
| 28 {"disasm", cmd_disasm}, | 30 {"disasm", cmd_disasm}, |
| 29 {"dumpsym", cmd_symtab}, /* backward compat */ | 31 {"dumpsym", cmd_symtab}, /* backward compat */ |
| 30 {"hdr", dump_filehdr_info}, | 32 {"hdr", dump_filehdr_info}, |
| 31 {"ln", cmd_ln}, | 33 {"ln", cmd_ln}, |
| 32 {"nm", cmd_nm}, | 34 {"nm", cmd_nm}, |
