comparison netdiff/convert/tedax2donl.c @ 137:6f528e2a9e23

tedax2donl works now
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 07 Sep 2020 03:20:50 +0000
parents 65f87111090c
children
comparison
equal deleted inserted replaced
136:65f87111090c 137:6f528e2a9e23
101 { 101 {
102 for (;;) { 102 for (;;) {
103 if (!get_line()) { 103 if (!get_line()) {
104 fprintf(stderr, 104 fprintf(stderr,
105 "%s: EOF in the middle of a skip block\n", 105 "%s: EOF in the middle of a skip block\n",
106 infname, lineno); 106 infname);
107 exit(1); 107 exit(1);
108 } 108 }
109 parse_into_fields();
109 if (!nfields) 110 if (!nfields)
110 continue; 111 continue;
111 if (!strcmp(fields[0], "begin")) { 112 if (!strcmp(fields[0], "begin")) {
112 fprintf(stderr, "%s line %d: nested block beginning\n", 113 fprintf(stderr, "%s line %d: nested block beginning\n",
113 infname, lineno); 114 infname, lineno);
159 { 160 {
160 for (;;) { 161 for (;;) {
161 if (!get_line()) { 162 if (!get_line()) {
162 fprintf(stderr, 163 fprintf(stderr,
163 "%s: EOF in the middle of the netlist block\n", 164 "%s: EOF in the middle of the netlist block\n",
164 infname, lineno); 165 infname);
165 exit(1); 166 exit(1);
166 } 167 }
168 parse_into_fields();
167 if (!nfields) 169 if (!nfields)
168 continue; 170 continue;
169 if (!strcmp(fields[0], "begin")) { 171 if (!strcmp(fields[0], "begin")) {
170 fprintf(stderr, "%s line %d: nested block beginning\n", 172 fprintf(stderr, "%s line %d: nested block beginning\n",
171 infname, lineno); 173 infname, lineno);