From 6f0133a1b2df5edd47c4132a1b216712f256af67 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 22 Feb 2025 19:38:05 +0100 Subject: [PATCH] changed some *attached*() function names for sonsistency --- src/editprop.c | 2 +- src/move.c | 4 ++-- src/scheduler.c | 2 +- src/select.c | 6 +++--- src/xschem.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/editprop.c b/src/editprop.c index ee8f1ac3..5a4aafa6 100644 --- a/src/editprop.c +++ b/src/editprop.c @@ -1655,7 +1655,7 @@ static int update_symbol(const char *result, int x, int selected_inst) new_prop_string(*ii, ptr, /* sets also inst[].instname */ tclgetboolvar("disable_unique_names")); /* set new prop_ptr */ hash_names(*ii, XINSERT); - update_attached_object_refs(old_name, *ii, 1); + update_attached_floater_refs(old_name, *ii, 1); dbg(0, "update_symbol(): insert %s\n", xctx->inst[*ii].instname); my_free(_ALLOC_ID_, &old_name); } diff --git a/src/move.c b/src/move.c index 20ee6f99..30af9a1d 100644 --- a/src/move.c +++ b/src/move.c @@ -515,7 +515,7 @@ void draw_selection(GC g, int interruptable) /* sel: if set to 1 change references only on selected items, like in a copy operation. * If set to 0 operate on all objects with matching name=... attribute */ -void update_attached_object_refs(const char *from_name, int inst, int sel) +void update_attached_floater_refs(const char *from_name, int inst, int sel) { int i, c; char *to_name = xctx->inst[inst].instname; @@ -958,7 +958,7 @@ void copy_objects(int what) new_prop_string(xctx->instances, xctx->inst[n].prop_ptr, /* sets also inst[].instname */ tclgetboolvar("disable_unique_names")); - update_attached_object_refs(xctx->inst[n].instname, xctx->instances, 1); + update_attached_floater_refs(xctx->inst[n].instname, xctx->instances, 1); hash_names(xctx->instances, XINSERT); xctx->instances++; /* symbol_bbox calls translate and translate must have updated xctx->instances */ diff --git a/src/scheduler.c b/src/scheduler.c index f5e9835c..43bf458a 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -5493,7 +5493,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg hash_names(inst, XDELETE); new_prop_string(inst, subst, tclgetboolvar("disable_unique_names")); if(old_name) { - update_attached_object_refs(old_name, inst, 0); + update_attached_floater_refs(old_name, inst, 0); } my_strdup2(_ALLOC_ID_, &translated_sym, translate(inst, xctx->inst[inst].name)); sym_number=match_symbol(translated_sym); diff --git a/src/select.c b/src/select.c index 524e5f1c..f815d0d5 100644 --- a/src/select.c +++ b/src/select.c @@ -940,7 +940,7 @@ void select_wire(int i,unsigned short select_mode, int fast, int override_lock) } -static int select_attached_items(int inst, const char *name) +static int select_attached_floaters(int inst, const char *name) { int i, c; int found = 0; @@ -1056,7 +1056,7 @@ void select_element(int i,unsigned short select_mode, int fast, int override_loc } } if(!fast && select_mode == SELECTED) { - select_attached_items(i, get_tok_value(xctx->inst[i].prop_ptr, "attach", 0)); + select_attached_floaters(i, get_tok_value(xctx->inst[i].prop_ptr, "attach", 0)); } xctx->need_reb_sel_arr=1; } @@ -1809,7 +1809,7 @@ void select_all(void) { select_element(i, SELECTED, 1, 0); /* following not done in select_element() due to fast=1 argument */ - select_attached_items(i, get_tok_value(xctx->inst[i].prop_ptr, "attach", 0)); + select_attached_floaters(i, get_tok_value(xctx->inst[i].prop_ptr, "attach", 0)); } for(c=0;c