86 |
|
quit(code) /* quit program */ |
87 |
|
int code; |
88 |
|
{ |
89 |
+ |
#ifndef NIX |
90 |
+ |
headclean(); /* delete header file */ |
91 |
+ |
pfclean(); /* clean up persist files */ |
92 |
+ |
#endif |
93 |
|
exit(code); |
94 |
|
} |
95 |
|
|
139 |
|
default: |
140 |
|
error(CONSISTENCY, "botched output format"); |
141 |
|
} |
142 |
< |
if (hresolu > 0 && vresolu > 0) |
143 |
< |
fprtresolu(hresolu, vresolu, stdout); |
142 |
> |
if (hresolu > 0) { |
143 |
> |
if (vresolu > 0) |
144 |
> |
fprtresolu(hresolu, vresolu, stdout); |
145 |
> |
fflush(stdout); |
146 |
> |
} |
147 |
|
/* process file */ |
148 |
|
while (getvec(orig, inform, fp) == 0 && |
149 |
|
getvec(direc, inform, fp) == 0) { |
168 |
|
if (--vcount == 0) /* check for end */ |
169 |
|
break; |
170 |
|
} |
171 |
+ |
fflush(stdout); |
172 |
|
if (vcount > 0) |
173 |
|
error(USER, "read error"); |
174 |
< |
fclose(fp); |
174 |
> |
if (fname != NULL) |
175 |
> |
fclose(fp); |
176 |
|
} |
177 |
|
|
178 |
|
|