Browse Source

Remove optional:, params:, text: before generating a ports list.

pre-master-46
Brian Taylor 4 years ago
committed by Holger Vogt
parent
commit
ac9559db76
  1. 10
      src/frontend/udevices.c

10
src/frontend/udevices.c

@ -424,6 +424,16 @@ void create_ports_list(void)
pos = strstr(copy_line, "optional:"); pos = strstr(copy_line, "optional:");
if (pos) { if (pos) {
*pos = '\0'; *pos = '\0';
} else {
pos = strstr(copy_line, "params:");
if (pos) {
*pos = '\0';
} else {
pos = strstr(copy_line, "text:");
if (pos) {
*pos = '\0';
}
}
} }
/* skip past .subckt and its name */ /* skip past .subckt and its name */
tok = strtok(copy_line, " \t"); tok = strtok(copy_line, " \t");

Loading…
Cancel
Save