Browse Source

frontend/evaluate.c, apply_func(), reorder

pre-master-46
rlar 10 years ago
parent
commit
8e50275345
  1. 13
      src/frontend/evaluate.c

13
src/frontend/evaluate.c

@ -927,18 +927,19 @@ apply_func(struct func *func, struct pnode *arg)
if (!data) if (!data)
return (NULL); return (NULL);
t = alloc(struct dvec);
ZERO(t, struct dvec);
t->v_flags = (v->v_flags & ~VF_COMPLEX & ~VF_REAL &
~VF_PERMANENT & ~VF_MINGIVEN & ~VF_MAXGIVEN);
t->v_flags |= type;
#ifdef FTEDEBUG #ifdef FTEDEBUG
if (ft_evdb) if (ft_evdb)
fprintf(cp_err, fprintf(cp_err,
"apply_func: func %s to %s len %d, type %d\n", "apply_func: func %s to %s len %d, type %d\n",
func->fu_name, v->v_name, len, type); func->fu_name, v->v_name, len, type);
#endif #endif
t = alloc(struct dvec);
ZERO(t, struct dvec);
t->v_flags = (v->v_flags & ~VF_COMPLEX & ~VF_REAL &
~VF_PERMANENT & ~VF_MINGIVEN & ~VF_MAXGIVEN);
t->v_flags |= type;
if (isreal(t)) if (isreal(t))
t->v_realdata = (double *) data; t->v_realdata = (double *) data;
else else

Loading…
Cancel
Save