?? com_setscale.c
字號(hào):
#include <ngspice.h>#include <bool.h>#include <dvec.h>#include "com_setscale.h"#include "quote.h"#include "streams.h"#include "vectors.h"#include "plotting/plotting.h"#include "plotting/pvec.h"/* Set the default scale to the named vector. If no vector named, * find and print the default scale. */voidcom_setscale(wordlist *wl){ struct dvec *d; char *s; if (plot_cur) { if (wl) { s = cp_unquote(wl->wl_word); d = vec_get(s); if(s) tfree(s);/*DG to avoid the cp_unquote memory leak */ if (d == NULL) fprintf(cp_err, "Error: no such vector as %s.\n", wl->wl_word); else plot_cur->pl_scale = d; } else if (plot_cur->pl_scale) { pvec(plot_cur->pl_scale); } } else { fprintf(cp_err, "Error: no current plot.\n"); }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -