annotate netdiff/flip2pin/main.c @ 150:bcf011f6d7a5

KWH020ST23-F01.fp created
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 22 Jun 2021 22:20:53 +0000
parents 7ddfb9a67b0c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
146
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #include <stdio.h>
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 #include <stdlib.h>
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 #include "struct.h"
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 struct flip_list *flip_list;
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 main(argc, argv)
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 char **argv;
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 {
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 int i;
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 if (argc != 3) {
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 fprintf(stderr, "usage: %s input-donl flip-list-file\n",
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 argv[0]);
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 exit(1);
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 }
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 read_flip_list(argv[2]);
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 main_process(argv[1]);
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 exit(0);
7ddfb9a67b0c netdiff: donl-flip2pin utility written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 }