fix wrong const declaration in save.c
This commit is contained in:
parent
a0661be86c
commit
9e38fbd173
|
|
@ -1544,8 +1544,8 @@ int load_sym_def(const char *name, FILE *embed_fd)
|
||||||
const char *str;
|
const char *str;
|
||||||
char *skip_line;
|
char *skip_line;
|
||||||
const char *dash;
|
const char *dash;
|
||||||
xSymbol * const symbol;
|
xSymbol * symbol;
|
||||||
int const symbols;
|
int symbols;
|
||||||
|
|
||||||
check_symbol_storage();
|
check_symbol_storage();
|
||||||
symbol = xctx->sym;
|
symbol = xctx->sym;
|
||||||
|
|
|
||||||
|
|
@ -803,6 +803,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
|
||||||
show_pin_net_names = 0;
|
show_pin_net_names = 0;
|
||||||
my_strdup(117, &saveptr, tclgetvar("current_dirname"));
|
my_strdup(117, &saveptr, tclgetvar("current_dirname"));
|
||||||
|
|
||||||
|
/* dbg(0, "preview_window(): %d %d %d %d\n", areax1, areay1, areaw, areah); */
|
||||||
/* preview */
|
/* preview */
|
||||||
check_version = 0; /* if set refuse to load and preview anything if not a rel 1.1+ xschem file */
|
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 */
|
/* 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;
|
window = pre_window;
|
||||||
resetwin();
|
resetwin();
|
||||||
zoom_full(1, 0); /* draw */
|
zoom_full(1, 0); /* draw */
|
||||||
|
/* dbg(0, "preview_window(): %d %d %d %d\n", areax1, areay1, areaw, areah); */
|
||||||
check_version = 0;
|
check_version = 0;
|
||||||
|
|
||||||
/* restore context */
|
/* restore context */
|
||||||
|
|
@ -827,6 +829,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
|
||||||
|
|
||||||
window = save_window;
|
window = save_window;
|
||||||
resetwin();
|
resetwin();
|
||||||
|
/* dbg(0, "preview_window(): %d %d %d %d\n", areax1, areay1, areaw, areah); */
|
||||||
change_linewidth(-1.);
|
change_linewidth(-1.);
|
||||||
/* draw(); */ /* not needed: event loop takes care of this. */
|
/* draw(); */ /* not needed: event loop takes care of this. */
|
||||||
event_reporting = save_ev;
|
event_reporting = save_ev;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue