From 81c3d6477815dbc22f32154eb9284e342b6b3a11 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 22 Feb 2025 19:40:04 +0100 Subject: [PATCH] (2) changed some *attached*() function names for sonsistency --- src/editprop.c | 2 +- src/move.c | 4 ++-- src/scheduler.c | 2 +- src/xschem.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/editprop.c b/src/editprop.c index 5a4aafa6..77adafd0 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_floater_refs(old_name, *ii, 1); + update_attached_floaters(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 30af9a1d..03b5a2a9 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_floater_refs(const char *from_name, int inst, int sel) +void update_attached_floaters(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_floater_refs(xctx->inst[n].instname, xctx->instances, 1); + update_attached_floaters(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 43bf458a..4d464966 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_floater_refs(old_name, inst, 0); + update_attached_floaters(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/xschem.h b/src/xschem.h index da175669..1384874c 100644 --- a/src/xschem.h +++ b/src/xschem.h @@ -1548,7 +1548,7 @@ extern void new_arc(int what, double sweep, double mousex_snap, double mousey_sn extern void arc_3_points(double x1, double y1, double x2, double y2, double x3, double y3, double *x, double *y, double *r, double *a, double *b); /* sel: if set to 1 change references only on selected items, like in a copy operation */ -extern void update_attached_floater_refs(const char *from_name, int inst, int sel); +extern void update_attached_floaters(const char *from_name, int inst, int sel); extern void move_objects(int what,int merge, double dx, double dy); extern void check_collapsing_objects(); extern void redraw_w_a_l_r_p_z_rubbers(int force); /* redraw wire, arcs, line, polygon rubbers */