Browse Source

frontend/plotting/plotit.c, cleanup, reduce scope of `struct dvec *dv'

pre-master-46
rlar 11 years ago
parent
commit
73731bdf77
  1. 6
      src/frontend/plotting/plotit.c

6
src/frontend/plotting/plotit.c

@ -230,7 +230,7 @@ plotit(wordlist *wl, char *hcopy, char *devname)
bool gfound = FALSE, pfound = FALSE, oneval = FALSE; bool gfound = FALSE, pfound = FALSE, oneval = FALSE;
double *dd, ylims[2], xlims[2]; double *dd, ylims[2], xlims[2];
struct pnode *pn, *names; struct pnode *pn, *names;
struct dvec *dv, *d = NULL, *vecs = NULL, *lv, *lastvs = NULL;
struct dvec *d = NULL, *vecs = NULL, *lv, *lastvs = NULL;
char *xn; char *xn;
int i, j, xt; int i, j, xt;
double tt; double tt;
@ -546,6 +546,8 @@ plotit(wordlist *wl, char *hcopy, char *devname)
if (pn->pn_value && (pn->pn_value->v_length == 0) && if (pn->pn_value && (pn->pn_value->v_length == 0) &&
eq(pn->pn_value->v_name, "vs")) eq(pn->pn_value->v_name, "vs"))
{ {
struct dvec *dv;
if (!lv) { if (!lv) {
fprintf(cp_err, "Error: misplaced vs arg\n"); fprintf(cp_err, "Error: misplaced vs arg\n");
goto quit; goto quit;
@ -572,6 +574,8 @@ plotit(wordlist *wl, char *hcopy, char *devname)
} else { } else {
struct dvec *dv;
dv = ft_evaluate(pn); dv = ft_evaluate(pn);
if (!dv) if (!dv)
goto quit; goto quit;

Loading…
Cancel
Save