optimized bus_hilight_lookup() in case of non bussed nets (avoid expandlabel)

This commit is contained in:
Stefan Frederik 2021-01-01 21:43:08 +01:00
parent 304f7eee08
commit a3d2b0c162
1 changed files with 4 additions and 5 deletions

View File

@ -264,12 +264,11 @@ struct hilight_hashentry *bus_hilight_lookup(const char *token, int value, int w
int mult;
if(token==NULL) return NULL;
if( token[0] == '#') {
my_strdup(140, &string, token);
}
else {
my_strdup(141, &string, expandlabel(token,&mult));
if( token[0] == '#' || !strpbrk(token, "*[],.:")) {
ptr1=hilight_lookup(token, value, what);
return ptr1;
}
my_strdup(141, &string, expandlabel(token,&mult));
if(string==NULL) {
return NULL;
}