Don't replace a device model name by a parameter, if both
have the same names.
This is an extension to commit
7706889a0 ("inpcom.c, fix bug no 384 do not quote fourth
token in f, h lines otherwise if dev name equals param
name parsing fails", 2018-12-08)
Fixes bug 327 reported by T. Edwards at
https://github.com/google/skywater-pdk/issues/327
This commit is contained in:
parent
03517ae86c
commit
c033298db9
|
|
@ -7196,8 +7196,9 @@ static void inp_quote_params(struct card *c, struct card *end_c,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* There are devices that should not get quotes around tokens
|
/* There are devices that should not get quotes around tokens
|
||||||
following after the terminals. See bug 384 */
|
following after the terminals. These may be model names or control
|
||||||
if (curr_line[0] == 'f' || curr_line[0] == 'h')
|
voltages. See bug 384 or Skywater issue 327 */
|
||||||
|
if (strchr("fhmouydqjz", *curr_line))
|
||||||
num_terminals++;
|
num_terminals++;
|
||||||
|
|
||||||
for (i = 0; i < num_params; i++) {
|
for (i = 0; i < num_params; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue