changed some *attached*() function names for sonsistency

This commit is contained in:
stefan schippers 2025-02-22 19:38:05 +01:00
parent e266642c2c
commit 6f0133a1b2
5 changed files with 8 additions and 8 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_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);
}

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

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

View File

@ -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<cadlayers; ++c)
{

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_object_refs(const char *from_name, int inst, int sel);
extern void update_attached_floater_refs(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 */