(2) changed some *attached*() function names for sonsistency

This commit is contained in:
stefan schippers 2025-02-22 19:40:04 +01:00
parent 6f0133a1b2
commit 81c3d64778
4 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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 */

View File

@ -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);

View File

@ -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 */