expandlabel(): if a node name begins with `$` assume it will be processed downstream by some scripts. Don`t expand anything

This commit is contained in:
stefan schippers 2023-11-28 12:24:43 +01:00
parent a53ddf22d8
commit e25ded5e74
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ const char *expandlabel(const char *s, int *m)
return NULL;
}
if(parselabel_debug >= 3) fprintf(errfp, "expandlabel(): entering\n");
if(!strpbrk(s, "*,.:")) { /* shortcut: nothing to parse / expand */
if(!strpbrk(s, "*,.:") || s[0] == '$') { /* shortcut: nothing to parse / expand */
*m = 1;
my_strdup2(_ALLOC_ID_, &dest_string.str, s);
if(xctx->netlist_type == CAD_SPICE_NETLIST && bus_char[0] && bus_char[1]) {