From 1108a71263808fb7a2115708ae40a1c11b6ea1bb Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 9 Sep 2024 23:15:05 +0200 Subject: [PATCH] replace "UNDEF" with "-" in backannotated nodes that have no value in raw file. --- src/token.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/token.c b/src/token.c index ebfcb0d9..3c0f6d25 100644 --- a/src/token.c +++ b/src/token.c @@ -351,7 +351,7 @@ const char *list_tokens(const char *s, int with_quotes) } } -int get_sym_pin_number(int sym, const char *pin_name) +static int get_sym_pin_number(int sym, const char *pin_name) { int n = -1; if(isonlydigit(pin_name)) { @@ -3567,7 +3567,7 @@ static char *get_pin_attr(const char *token, int inst, int engineering) } if(!strcmp(fqnet, "0") || !my_strcasecmp(fqnet, "GND")) valstr = "0.0"; else if(idx < 0) { - valstr = "UNDEF"; + valstr = "-"; } else { valstr = engineering? dtoa_eng(val) : dtoa(val); } @@ -3857,7 +3857,7 @@ const char *translate(int inst, const char* s) xctx->tok_size = 3; len = 3; } else if(idx < 0) { - valstr = "UNDEF"; + valstr = "-"; xctx->tok_size = 5; len = 5; } else { @@ -3931,7 +3931,7 @@ const char *translate(int inst, const char* s) xctx->tok_size = 3; len = 3; } else if(idx < 0) { - valstr = "UNDEF"; + valstr = "-"; xctx->tok_size = 5; len = 5; } else {