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

This commit is contained in:
Holger Vogt 2021-06-10 17:07:08 +02:00
parent 1176bdb0b0
commit a6079781ea
2 changed files with 5 additions and 1 deletions

View File

@ -69,6 +69,7 @@
#define DIR_CWD "." #define DIR_CWD "."
#define TEMPFORMAT "%s%d.tmp" #define TEMPFORMAT "%s%d.tmp"
#define TEMPFORMAT2 "%s%d_%d.tmp"
/* /*
#define SYSTEM_PLOT5LPR "lpr -P%s -g %s" #define SYSTEM_PLOT5LPR "lpr -P%s -g %s"
@ -82,6 +83,7 @@
#define DIR_CWD "." #define DIR_CWD "."
#define TEMPFORMAT "/tmp/%s%d" #define TEMPFORMAT "/tmp/%s%d"
#define TEMPFORMAT2 "/tmp/%s%d_%d"
#define SYSTEM_PLOT5LPR "lpr -P%s -g %s" #define SYSTEM_PLOT5LPR "lpr -P%s -g %s"
#define SYSTEM_PSLPR "lpr -P%s %s" #define SYSTEM_PSLPR "lpr -P%s %s"
#define SYSTEM_MAIL "Mail -s \"%s (%s) Bug Report\" %s" #define SYSTEM_MAIL "Mail -s \"%s (%s) Bug Report\" %s"

View File

@ -18,8 +18,10 @@ Copyright 1990 Regents of the University of California. All rights reserved.
#ifndef TEMPFORMAT #ifndef TEMPFORMAT
#define TEMPFORMAT "temp%s%d" #define TEMPFORMAT "temp%s%d"
#endif #endif
#ifndef TEMPFORMAT2
#define TEMPFORMAT "temp%s%d_%d"
#endif
#define TEMPFORMAT2 "%s%d_%d.tmp"
char * char *
smktemp(char *id) smktemp(char *id)