dvec.h, add a pointer to the original vector to dvec structure

This commit is contained in:
h_vogt 2017-04-30 23:43:55 +02:00
parent 2bcd011553
commit 067c3b0db8
2 changed files with 2 additions and 0 deletions

View File

@ -720,6 +720,7 @@ vec_copy(struct dvec *v)
nv->v_next = NULL;
nv->v_link2 = NULL;
nv->v_scale = v->v_scale;
nv->v_unclipped = v->v_unclipped;
return (nv);
}

View File

@ -58,6 +58,7 @@ struct dvec {
struct dvec *v_next; /* Link for list of plot vectors. */
struct dvec *v_link2; /* Extra link for things like print. */
struct dvec *v_scale; /* If this has a non-standard scale... */
struct dvec *v_unclipped; /* If clipped, this is the original vector */
} ;
#define isreal(v) ((v)->v_flags & VF_REAL)