revert change `LCC symbols: make 1st LCC level pins display spice_get_voltage annotation data` (not working as expected)
This commit is contained in:
parent
d5a46c5526
commit
a24145c16c
|
|
@ -12,4 +12,3 @@ L 7 -10 2.5 -7.5 0 {}
|
|||
L 7 -12.5 0 -10 -2.5 {}
|
||||
L 7 -12.5 0 -10 2.5 {}
|
||||
T {@lab} -3.75 -16.25 0 1 0.2 0.2 {}
|
||||
T {@#0:spice_get_voltage} -1.875 3.90625 0 1 0.2 0.2 {layer=15}
|
||||
|
|
|
|||
|
|
@ -10,4 +10,3 @@ E {}
|
|||
L 7 10 -2.5 12.5 0 {}
|
||||
L 7 10 2.5 12.5 0 {}
|
||||
T {@lab} 3.75 -16.25 0 0 0.2 0.2 {}
|
||||
T {@#0:spice_get_voltage} 1.875 3.90625 0 0 0.2 0.2 {layer=15}
|
||||
|
|
|
|||
|
|
@ -10,4 +10,3 @@ E {}
|
|||
L 7 -12.5 -2.5 -10 0 {}
|
||||
L 7 -12.5 2.5 -10 0 {}
|
||||
T {@lab} -3.75 -16.25 0 1 0.2 0.2 {}
|
||||
T {@#0:spice_get_voltage} -1.875 3.90625 0 1 0.2 0.2 {layer=15}
|
||||
|
|
|
|||
11
src/token.c
11
src/token.c
|
|
@ -4432,9 +4432,7 @@ const char *translate2(Lcc *lcc, int level, char* s)
|
|||
if(!tclgetboolvar("spiceprefix") && !strcmp(token, "@spiceprefix")) {
|
||||
if(value) my_free(_ALLOC_ID_, &value);
|
||||
xctx->tok_size = 0;
|
||||
|
||||
} else if(!strstr(token, "spice_get_voltage") &&
|
||||
token[0] == '@' && (token[1] == '@' || token[1] == '#')) { /* get rid of pin attribute info */
|
||||
} else if(token[0] == '@' && (token[1] == '@' || token[1] == '#')) { /* get rid of pin attribute info */
|
||||
if(value) my_free(_ALLOC_ID_, &value);
|
||||
xctx->tok_size = 0;
|
||||
} else {
|
||||
|
|
@ -4475,13 +4473,6 @@ const char *translate2(Lcc *lcc, int level, char* s)
|
|||
memcpy(result + result_pos, token, tmp + 1);
|
||||
result_pos += tmp;
|
||||
}
|
||||
/* @#n:spice_get_voltage tokens */
|
||||
else if (strstr(token, "spice_get_voltage")) {
|
||||
tmp = strlen(token);
|
||||
STR_ALLOC(&result, tmp + result_pos, &size);
|
||||
memcpy(result + result_pos, token, tmp + 1);
|
||||
result_pos += tmp;
|
||||
}
|
||||
else if(strcmp(token,"@path")==0) {
|
||||
char *path = NULL;
|
||||
here(level);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue