diff --git a/doc/xschem_man/developer_info.html b/doc/xschem_man/developer_info.html index 7017a355..a8605e52 100644 --- a/doc/xschem_man/developer_info.html +++ b/doc/xschem_man/developer_info.html @@ -648,6 +648,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
Switch context to indicated window path or schematic name
- returns the # of windows/tabs in addition to main window/tab
+ returns 0 if switch was successfull or 1 in case of errors
+ (no tabs/windows present or no matching winpath / schematic name
+ found).
if 'n' given list symbol with name or number 'n', else
list all used symbols
@@ -1266,7 +1270,6 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
-
diff --git a/src/scheduler.c b/src/scheduler.c
index 3c1d2b8b..606c9b5f 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -3829,7 +3829,9 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
/* switch [window_path |schematic_name]
* Switch context to indicated window path or schematic name
- * returns the # of windows/tabs in addition to main window/tab
+ * returns 0 if switch was successfull or 1 in case of errors
+ * (no tabs/windows present or no matching winpath / schematic name
+ * found).
*/
else if(!strcmp(argv[1], "switch"))
{