diff options
author | Tim Edwards <tim@opencircuitdesign.com> | 2015-11-05 10:54:19 -0500 |
---|---|---|
committer | Tim Edwards <tim@opencircuitdesign.com> | 2015-11-05 10:54:19 -0500 |
commit | 35e60640ca9597fba56ff1f7ec0b4d9be96e82d9 (patch) | |
tree | 7075d26e5909c023c444ef2e6c088a40cbcc7e05 /qconfig.c | |
parent | 4459d1175893b237e5fd96712bd9e73337415dbb (diff) |
Rearranged some code for processing the config file. The -i
option now checks for N-spaced tracks and dumps this information
to the info file so that a placement tool can use it to make sure
that any pins on a double-spaced route layer are also double-
spaced.
Diffstat (limited to 'qconfig.c')
-rw-r--r-- | qconfig.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -119,9 +119,13 @@ post_config() /* ARGS: the filename (normally route.cfg) */ /* RETURNS: number of lines successfully read */ /* SIDE EFFECTS: loads Global configuration variables */ +/* */ +/* "is_info" indicates if qrouter was called with the -i option */ +/* in which case the config file read should stop before any */ +/* def file is read. */ /*--------------------------------------------------------------*/ -int read_config(FILE *fconfig) +int read_config(FILE *fconfig, int is_info) { int count, lines, i, OK; int iarg, iarg2; @@ -437,7 +441,8 @@ int read_config(FILE *fconfig) if (OK == 0) { if (!(lineptr[0] == '\n' || lineptr[0] == '#' || lineptr[0] == 0)) { - Fprintf(stderr, "line not understood: %s\n", line); + if (!is_info) // Don't report errors on info file generation + Fprintf(stderr, "line not understood: %s\n", line); } } OK = 0; |