compare_schematics() do not hash wire prop_ptr (unnecessary)
This commit is contained in:
parent
d279783faa
commit
279e4604ea
|
|
@ -1085,9 +1085,8 @@ int compare_schematics(const char *f)
|
||||||
{
|
{
|
||||||
l =1024 + strlen(xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
l =1024 + strlen(xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
||||||
my_realloc(1535, &s, l);
|
my_realloc(1535, &s, l);
|
||||||
my_snprintf(s, l, "N %g %g %g %g %s", xctx->wire[i].x1, xctx->wire[i].y1,
|
my_snprintf(s, l, "N %g %g %g %g", xctx->wire[i].x1, xctx->wire[i].y1,
|
||||||
xctx->wire[i].x2, xctx->wire[i].y2,
|
xctx->wire[i].x2, xctx->wire[i].y2);
|
||||||
xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
|
||||||
int_hash_lookup(table1, s, i, XINSERT_NOREPLACE);
|
int_hash_lookup(table1, s, i, XINSERT_NOREPLACE);
|
||||||
}
|
}
|
||||||
clear_all_hilights();
|
clear_all_hilights();
|
||||||
|
|
@ -1115,9 +1114,8 @@ int compare_schematics(const char *f)
|
||||||
{
|
{
|
||||||
l =1024 + strlen(xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
l =1024 + strlen(xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
||||||
my_realloc(1535, &s, l);
|
my_realloc(1535, &s, l);
|
||||||
my_snprintf(s, l, "N %g %g %g %g %s", xctx->wire[i].x1, xctx->wire[i].y1,
|
my_snprintf(s, l, "N %g %g %g %g", xctx->wire[i].x1, xctx->wire[i].y1,
|
||||||
xctx->wire[i].x2, xctx->wire[i].y2,
|
xctx->wire[i].x2, xctx->wire[i].y2);
|
||||||
xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
|
||||||
int_hash_lookup(table2, s, i, XINSERT_NOREPLACE);
|
int_hash_lookup(table2, s, i, XINSERT_NOREPLACE);
|
||||||
found = int_hash_lookup(table1, s, i, XLOOKUP);
|
found = int_hash_lookup(table1, s, i, XLOOKUP);
|
||||||
if(!found) {
|
if(!found) {
|
||||||
|
|
@ -1152,9 +1150,8 @@ int compare_schematics(const char *f)
|
||||||
{
|
{
|
||||||
l = 1024 + strlen(xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
l = 1024 + strlen(xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
||||||
my_realloc(1537, &s, l);
|
my_realloc(1537, &s, l);
|
||||||
my_snprintf(s, l, "N %g %g %g %g %s", xctx->wire[i].x1, xctx->wire[i].y1,
|
my_snprintf(s, l, "N %g %g %g %g", xctx->wire[i].x1, xctx->wire[i].y1,
|
||||||
xctx->wire[i].x2, xctx->wire[i].y2,
|
xctx->wire[i].x2, xctx->wire[i].y2);
|
||||||
xctx->wire[i].prop_ptr ? xctx->wire[i].prop_ptr : "");
|
|
||||||
found = int_hash_lookup(table2, s, i, XLOOKUP);
|
found = int_hash_lookup(table2, s, i, XLOOKUP);
|
||||||
if(!found) {
|
if(!found) {
|
||||||
select_wire(i, SELECTED, 1);
|
select_wire(i, SELECTED, 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue