From 4e05fe1bab06e120568565ac3c055784c337be10 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Fri, 21 Oct 2022 12:54:02 +0200 Subject: [PATCH] comment some unneeded dbg messages, update install html page --- doc/xschem_man/install_xschem.html | 5 ++++- src/hilight.c | 8 ++++---- src/save.c | 6 +++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/doc/xschem_man/install_xschem.html b/doc/xschem_man/install_xschem.html index 394c99b8..6e74c6b8 100644 --- a/doc/xschem_man/install_xschem.html +++ b/doc/xschem_man/install_xschem.html @@ -43,7 +43,10 @@ p{padding: 15px 30px 10px;} tk8.6 tk8.6-dev flex bison libxpm4 libxpm-dev - gawk or mawk +# tools that should be available on all systems by default: + gawk or mawk +# Suggested (not mandatory for using xschem) packages: + tcl-tclreadline

If configure ends with no errors we are ready to compile: diff --git a/src/hilight.c b/src/hilight.c index ee1f19c6..391d275a 100644 --- a/src/hilight.c +++ b/src/hilight.c @@ -536,19 +536,19 @@ void hilight_child_pins(void) for(k = 1; k<=mult; k++) { dbg(1, "hilight_child_pins(): looking nth net:%d, k=%d, inst_number=%d, mult=%d\n", (inst_number-1)*mult+k, k, inst_number, mult); - dbg(1, "hilight_child_pins(): looking net:%s\n", find_nth(net_node, ",", - ((inst_number - 1) * mult + k - 1) % net_mult + 1)); + /* dbg(1, "hilight_child_pins(): looking net:%s\n", find_nth(net_node, ",", + ((inst_number - 1) * mult + k - 1) % net_mult + 1)); */ xctx->currsch--; entry = bus_hilight_hash_lookup(find_nth(net_node, ",", ((inst_number - 1) * mult + k - 1) % net_mult + 1), 0, XLOOKUP); xctx->currsch++; if(entry) { bus_hilight_hash_lookup(find_nth(pin_node, ",", k), entry->value, XINSERT_NOREPLACE); - dbg(1, "hilight_child_pins(): inserting: %s\n", find_nth(pin_node, ",", k)); + /* dbg(1, "hilight_child_pins(): inserting: %s\n", find_nth(pin_node, ",", k)); */ } else { bus_hilight_hash_lookup(find_nth(pin_node, ",", k), 0, XDELETE); - dbg(1, "hilight_child_pins(): deleting: %s\n", find_nth(pin_node, ",", k)); + /* dbg(1, "hilight_child_pins(): deleting: %s\n", find_nth(pin_node, ",", k)); */ } } /* for(k..) */ } diff --git a/src/save.c b/src/save.c index 644d8bfd..379392d3 100644 --- a/src/save.c +++ b/src/save.c @@ -2064,7 +2064,7 @@ int save_schematic(const char *schname) /* 20171020 added return value */ else return 0; dbg(1, "save_schematic(): currsch=%d name=%s\n",xctx->currsch, schname); dbg(1, "save_schematic(): sch[currsch]=%s\n", xctx->sch[xctx->currsch]); - dbg(1, "save_schematic(): abs_sym_path=%s\n", abs_sym_path(xctx->sch[xctx->currsch], "")); + /* dbg(1, "save_schematic(): abs_sym_path=%s\n", abs_sym_path(xctx->sch[xctx->currsch], "")); */ my_strncpy(name, xctx->sch[xctx->currsch], S(name)); set_modify(-1); if(!stat(name, &buf)) { @@ -2268,7 +2268,7 @@ static void init_undo(void) /* create undo directory */ if( !my_strdup(644, &xctx->undo_dirname, create_tmpdir("xschem_undo_") )) { dbg(0, "xinit(): problems creating tmp undo dir, Undo will be disabled\n"); - dbg(0, "xinit(): Check permissions in %s\n", tclgetvar("XSCHEM_TMP_DIR")); + dbg(0, "init_undo(): Check permissions in %s\n", tclgetvar("XSCHEM_TMP_DIR")); xctx->no_undo = 1; /* disable undo */ } xctx->undo_initialized = 1; @@ -2538,7 +2538,7 @@ static void get_sym_type(const char *symname, char **type, if (pintable && c == PINLAYER) { /* hash pins to get LCC schematic have same order as corresponding symbol */ int_hash_lookup(pintable, get_tok_value(rect.prop_ptr, "name", 0), n++, XINSERT); - dbg(1, "get_sym_type() : hashing %s\n", get_tok_value(rect.prop_ptr, "name", 0)); + /* dbg(1, "get_sym_type() : hashing %s\n", get_tok_value(rect.prop_ptr, "name", 0));*/ ++(*sym_n_pins); } break;