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

This commit is contained in:
Brian Taylor 2022-05-23 16:41:45 -07:00 committed by Holger Vogt
parent 9b390c1ca9
commit 01e988d604
1 changed files with 10 additions and 0 deletions

View File

@ -424,6 +424,16 @@ void create_ports_list(void)
pos = strstr(copy_line, "optional:");
if (pos) {
*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 */
tok = strtok(copy_line, " \t");