FreeCalypso > hg > ueda-linux
annotate netdiff/renpart/main.c @ 145:5e91200bf609
netdiff: donl-pinreport utility written, compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Nov 2020 01:17:10 +0000 |
parents | 77acb816727b |
children |
rev | line source |
---|---|
138
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #include <stdio.h> |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 #include <stdlib.h> |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 #include "struct.h" |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 struct part_rename *part_rename_list; |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 main(argc, argv) |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 char **argv; |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 { |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 int i; |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 if (argc != 3) { |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 fprintf(stderr, "usage: %s input-donl rename-parts-file\n", |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 argv[0]); |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 exit(1); |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 } |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 process_rename_file(argv[2]); |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 main_process(argv[1]); |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 exit(0); |
77acb816727b
netdiff: donl-rename-parts put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 } |