diff --git a/src/include/ngspice/defines.h b/src/include/ngspice/defines.h index 66ce42375..d5dadd650 100644 --- a/src/include/ngspice/defines.h +++ b/src/include/ngspice/defines.h @@ -69,6 +69,7 @@ #define DIR_CWD "." #define TEMPFORMAT "%s%d.tmp" +#define TEMPFORMAT2 "%s%d_%d.tmp" /* #define SYSTEM_PLOT5LPR "lpr -P%s -g %s" @@ -82,6 +83,7 @@ #define DIR_CWD "." #define TEMPFORMAT "/tmp/%s%d" +#define TEMPFORMAT2 "/tmp/%s%d_%d" #define SYSTEM_PLOT5LPR "lpr -P%s -g %s" #define SYSTEM_PSLPR "lpr -P%s %s" #define SYSTEM_MAIL "Mail -s \"%s (%s) Bug Report\" %s" diff --git a/src/misc/mktemp.c b/src/misc/mktemp.c index 5b5b48f28..53af275ec 100644 --- a/src/misc/mktemp.c +++ b/src/misc/mktemp.c @@ -18,8 +18,10 @@ Copyright 1990 Regents of the University of California. All rights reserved. #ifndef TEMPFORMAT #define TEMPFORMAT "temp%s%d" #endif +#ifndef TEMPFORMAT2 +#define TEMPFORMAT "temp%s%d_%d" +#endif -#define TEMPFORMAT2 "%s%d_%d.tmp" char * smktemp(char *id)