Browse Source

Fix previous commit, enable name upgrade for Linux and other non-Win OSs

pre-master-46
Holger Vogt 5 years ago
parent
commit
a6079781ea
  1. 2
      src/include/ngspice/defines.h
  2. 4
      src/misc/mktemp.c

2
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"

4
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)

Loading…
Cancel
Save