From 9e38fbd1738b6fc3d213b5ef0da2a260d7a79c5f Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Fri, 16 Oct 2020 23:19:20 +0200 Subject: [PATCH] fix wrong const declaration in save.c --- src/save.c | 4 ++-- src/xinit.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/save.c b/src/save.c index 4b8812a3..56953f18 100644 --- a/src/save.c +++ b/src/save.c @@ -1544,8 +1544,8 @@ int load_sym_def(const char *name, FILE *embed_fd) const char *str; char *skip_line; const char *dash; - xSymbol * const symbol; - int const symbols; + xSymbol * symbol; + int symbols; check_symbol_storage(); symbol = xctx->sym; diff --git a/src/xinit.c b/src/xinit.c index 98381ed4..9c8ce2a1 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -803,6 +803,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen show_pin_net_names = 0; my_strdup(117, &saveptr, tclgetvar("current_dirname")); + /* dbg(0, "preview_window(): %d %d %d %d\n", areax1, areay1, areaw, areah); */ /* preview */ check_version = 0; /* if set refuse to load and preview anything if not a rel 1.1+ xschem file */ /* if not set heuristics is done in xschem.tcl to ensure it is an xschem file */ @@ -810,6 +811,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen window = pre_window; resetwin(); zoom_full(1, 0); /* draw */ + /* dbg(0, "preview_window(): %d %d %d %d\n", areax1, areay1, areaw, areah); */ check_version = 0; /* restore context */ @@ -827,6 +829,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen window = save_window; resetwin(); + /* dbg(0, "preview_window(): %d %d %d %d\n", areax1, areay1, areaw, areah); */ change_linewidth(-1.); /* draw(); */ /* not needed: event loop takes care of this. */ event_reporting = save_ev;