Don't add v(...) around output vector if compat mode 'eg' is set.

This commit is contained in:
Holger Vogt 2020-10-29 09:12:35 +01:00
parent c90230b43f
commit 84d3d8c143
1 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,8 @@ Author: 1986 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "variable.h"
#include "../misc/misc_time.h"
#include "ngspice/compatmode.h"
static void fixdims(struct dvec *v, char *s);
@ -172,7 +174,7 @@ void raw_write(char *name, struct plot *pl, bool app, bool binary)
/* write v(name)*/
else if (v->v_type == SV_VOLTAGE) {
/* If the node name is a number, the vector is already called v(name) */
if (ciprefix("v(", v->v_name))
if (ciprefix("v(", v->v_name) || newcompat.eg) /* FIXME: newcompat.eg should be removed if EAGLE is updated */
fprintf(fp, "\t%d\t%s\t%s", i++, v->v_name, ft_typenames(v->v_type));
else
fprintf(fp, "\t%d\tv(%s)\t%s", i++, v->v_name, ft_typenames(v->v_type));