summaryrefslogtreecommitdiff
path: root/qconfig.c
diff options
context:
space:
mode:
authorTim Edwards <tim@opencircuitdesign.com>2015-11-05 10:54:19 -0500
committerTim Edwards <tim@opencircuitdesign.com>2015-11-05 10:54:19 -0500
commit35e60640ca9597fba56ff1f7ec0b4d9be96e82d9 (patch)
tree7075d26e5909c023c444ef2e6c088a40cbcc7e05 /qconfig.c
parent4459d1175893b237e5fd96712bd9e73337415dbb (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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/qconfig.c b/qconfig.c
index 53003fc..383927e 100644
--- a/qconfig.c
+++ b/qconfig.c
@@ -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;