Browse Source

NSPICE_INPUT_DIR

h_vogt 15 years ago
parent
commit
6979f1c76a
  1. 3
      ChangeLog
  2. 2
      src/xspice/icm/analog/file_source/cfunc.mod

3
ChangeLog

@ -1,5 +1,6 @@
2011-07-10 Holger Vogt
* main.c, ivars.c: environmental variable NGSPICE_INPUT_DIR
* main.c, ivars.c, /xspice/icm/analog/file_source/cfunc.mod:
environmental variable NGSPICE_INPUT_DIR
for additional search directory for input file
2011-07-10 Robert Larice

2
src/xspice/icm/analog/file_source/cfunc.mod

@ -148,7 +148,7 @@ void cm_filesource(ARGS) /* structure holding parms, inputs, outputs, etc.
state->atend = 0;
if (!state->fp) {
char *lbuffer, *p;
lbuffer = getenv("NGSPICE_INPUT");
lbuffer = getenv("NGSPICE_INPUT_DIR");
if (lbuffer && *lbuffer) {
p = (char*) malloc(strlen(lbuffer) + strlen(DIR_PATHSEP) + strlen(PARAM(file)) + 1);
sprintf(p, "%s%s%s", lbuffer, DIR_PATHSEP, PARAM(file));

Loading…
Cancel
Save