remove @path resolution in print_*_element(): meaningless
This commit is contained in:
parent
81f22b8bb2
commit
b3daf97cc4
12
src/token.c
12
src/token.c
|
|
@ -1000,10 +1000,12 @@ static void print_vhdl_primitive(FILE *fd, int inst) /* netlist primitives, 200
|
|||
}
|
||||
else my_mstrcat(_ALLOC_ID_, &result, value, NULL);
|
||||
}
|
||||
#if 0 /* Disabled: no hierarchy traversal while netlisting */
|
||||
else if(strcmp(token,"@path")==0)
|
||||
{
|
||||
my_mstrcat(_ALLOC_ID_, &result, xctx->sch_path[xctx->currsch] + 1, NULL);
|
||||
}
|
||||
#endif
|
||||
else if(strcmp(token,"@symref")==0)
|
||||
{
|
||||
const char *s = get_sym_name(inst, 9999, 1);
|
||||
|
|
@ -2235,13 +2237,15 @@ int print_spice_element(FILE *fd, int inst)
|
|||
/* fputs(value,fd); */
|
||||
}
|
||||
}
|
||||
else if (strcmp(token,"@path")==0) /* of course symname must not be present in attributes */
|
||||
#if 0 /* Disabled: no hierarchy traversal while netlisting */
|
||||
else if (strcmp(token,"@path")==0) /* of course path must not be present in attributes */
|
||||
{
|
||||
const char *s = xctx->sch_path[xctx->currsch] + 1;
|
||||
/* result_pos += my_snprintf(result + result_pos, tmp, "%s", s); */
|
||||
my_mstrcat(_ALLOC_ID_, &result, s, NULL);
|
||||
/* fputs(s,fd); */
|
||||
}
|
||||
#endif
|
||||
else if(strcmp(token,"@symref")==0)
|
||||
{
|
||||
const char *s = get_sym_name(inst, 9999, 1);
|
||||
|
|
@ -2255,7 +2259,7 @@ int print_spice_element(FILE *fd, int inst)
|
|||
my_mstrcat(_ALLOC_ID_, &result, s, NULL);
|
||||
/* fputs(s,fd); */
|
||||
}
|
||||
else if (strcmp(token,"@symname_ext")==0) /* of course symname must not be present in attributes */
|
||||
else if (strcmp(token,"@symname_ext")==0) /* of course symname_ext must not be present in attributes */
|
||||
{
|
||||
const char *s = sanitize(translate(inst, get_sym_name(inst, 0, 1)));
|
||||
/* result_pos += my_snprintf(result + result_pos, tmp, "%s", s); */
|
||||
|
|
@ -2667,10 +2671,12 @@ void print_tedax_element(FILE *fd, int inst)
|
|||
{
|
||||
fputs(value,fd);
|
||||
}
|
||||
#if 0 /* Disabled: no hierarchy traversal while netlisting */
|
||||
else if(strcmp(token,"@path")==0)
|
||||
{
|
||||
fputs(xctx->sch_path[xctx->currsch] + 1, fd);
|
||||
}
|
||||
#endif
|
||||
else if(strcmp(token,"@symref")==0)
|
||||
{
|
||||
const char *s = get_sym_name(inst, 9999, 1);
|
||||
|
|
@ -2933,10 +2939,12 @@ static void print_verilog_primitive(FILE *fd, int inst) /* netlist switch level
|
|||
}
|
||||
else my_mstrcat(_ALLOC_ID_, &result, value, NULL);
|
||||
}
|
||||
#if 0 /* Disabled: no hierarchy traversal while netlisting */
|
||||
else if(strcmp(token,"@path")==0)
|
||||
{
|
||||
my_mstrcat(_ALLOC_ID_, &result, xctx->sch_path[xctx->currsch] + 1, NULL);
|
||||
}
|
||||
#endif
|
||||
else if(strcmp(token,"@symref")==0)
|
||||
{
|
||||
const char *s = get_sym_name(inst, 9999, 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue