From 0a3fd95e065f34dea80c851efe049cf9205ef289 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 10 Jan 2025 14:58:10 +0100 Subject: [PATCH] code formatting --- src/select.c | 3 +-- src/token.c | 8 ++++---- src/vhdl_netlist.c | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/select.c b/src/select.c index 324dac19..c6b521cb 100644 --- a/src/select.c +++ b/src/select.c @@ -964,8 +964,7 @@ void select_element(int i,unsigned short select_mode, int fast, int override_loc if(xctx->inst[i].node && (xctx->inst[i].ptr+ xctx->sym)->rect[PINLAYER][j].prop_ptr) { my_snprintf(str, S(str), "pin:%s -> %s", - get_tok_value( - (xctx->inst[i].ptr+ xctx->sym)->rect[PINLAYER][j].prop_ptr,"name",0) , + get_tok_value( (xctx->inst[i].ptr+ xctx->sym)->rect[PINLAYER][j].prop_ptr,"name",0), xctx->inst[i].node[j] ? xctx->inst[i].node[j] : "__UNCONNECTED_PIN__"); statusmsg(str,2); } diff --git a/src/token.c b/src/token.c index d3aef7c6..1ae356fa 100644 --- a/src/token.c +++ b/src/token.c @@ -1557,13 +1557,13 @@ void print_vhdl_element(FILE *fd, int inst) for(i=0;iinst[inst].node || !xctx->inst[inst].node[no_of_pins+i]) continue; - my_strdup(_ALLOC_ID_, &generic_type,get_tok_value( - (xctx->inst[inst].ptr + xctx->sym)->rect[GENERICLAYER][i].prop_ptr,"type",0)); + my_strdup(_ALLOC_ID_, &generic_type, + get_tok_value( (xctx->inst[inst].ptr + xctx->sym)->rect[GENERICLAYER][i].prop_ptr,"type",0)); my_strdup(_ALLOC_ID_, &generic_value, xctx->inst[inst].node[no_of_pins+i] ); /*my_strdup(_ALLOC_ID_, &generic_value, get_tok_value( */ /* (xctx->inst[inst].ptr + xctx->sym)->rect[GENERICLAYER][i].prop_ptr,"value") ); */ - str_ptr = get_tok_value( - (xctx->inst[inst].ptr + xctx->sym)->rect[GENERICLAYER][i].prop_ptr,"name",0); + str_ptr = + get_tok_value( (xctx->inst[inst].ptr + xctx->sym)->rect[GENERICLAYER][i].prop_ptr,"name",0); if(generic_value) { /*03062002 dont print generics if unassigned */ if(tmp) fprintf(fd, " ,\n"); if(!tmp) fprintf(fd, "generic map (\n"); diff --git a/src/vhdl_netlist.c b/src/vhdl_netlist.c index ad54345d..1287c8e0 100644 --- a/src/vhdl_netlist.c +++ b/src/vhdl_netlist.c @@ -660,8 +660,8 @@ int vhdl_block_netlist(FILE *fd, int i) for(k=0;ksym[j].rects[PINLAYER]; ++k) { if(strboolcmp(get_tok_value(xctx->sym[j].rect[PINLAYER][k].prop_ptr,"vhdl_ignore",0), "true")) { - my_strdup(_ALLOC_ID_, &sig_type,get_tok_value( - xctx->sym[j].rect[PINLAYER][k].prop_ptr,"sig_type",0)); + my_strdup(_ALLOC_ID_, &sig_type, + get_tok_value( xctx->sym[j].rect[PINLAYER][k].prop_ptr,"sig_type",0)); my_strdup(_ALLOC_ID_, &port_value, get_tok_value(xctx->sym[j].rect[PINLAYER][k].prop_ptr,"value", 0) );