use enum simulation_types values instead of numericals
This commit is contained in:
parent
3d28a3a225
commit
190932bf65
|
|
@ -16,6 +16,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
|
|||
#include "ngspice/fteparse.h"
|
||||
#include "ngspice/sperror.h"
|
||||
#include "ngspice/const.h"
|
||||
#include "ngspice/sim.h"
|
||||
|
||||
#include "fourier.h"
|
||||
#include "variable.h"
|
||||
|
|
@ -197,7 +198,7 @@ fourier(wordlist *wl, struct plot *current_plot)
|
|||
n = alloc(struct dvec);
|
||||
ZERO(n, struct dvec);
|
||||
n->v_name = copy(newvecname);
|
||||
n->v_type = 0;
|
||||
n->v_type = SV_NOTYPE;
|
||||
n->v_flags = (1 | VF_PERMANENT);
|
||||
n->v_length = 3 * nfreqs;
|
||||
n->v_numdims = 2;
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ findvec(char *word, struct plot *pl)
|
|||
|
||||
if (cieq(word, "allv")) {
|
||||
for (d = pl->pl_dvecs; d; d = d->v_next) {
|
||||
if ((d->v_flags & VF_PERMANENT) && (d->v_type == 3)) {
|
||||
if ((d->v_flags & VF_PERMANENT) && (d->v_type == SV_VOLTAGE)) {
|
||||
if (d->v_link2) {
|
||||
v = vec_copy(d);
|
||||
vec_new(v);
|
||||
|
|
@ -113,7 +113,7 @@ findvec(char *word, struct plot *pl)
|
|||
|
||||
if (cieq(word, "alli")) {
|
||||
for (d = pl->pl_dvecs; d; d = d->v_next) {
|
||||
if ((d->v_flags & VF_PERMANENT) && (d->v_type == 4)) {
|
||||
if ((d->v_flags & VF_PERMANENT) && (d->v_type == SV_CURRENT)) {
|
||||
if (d->v_link2) {
|
||||
v = vec_copy(d);
|
||||
vec_new(v);
|
||||
|
|
|
|||
Loading…
Reference in New Issue