optimized bus_hilight_lookup() in case of non bussed nets (avoid expandlabel)
This commit is contained in:
parent
304f7eee08
commit
a3d2b0c162
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue