Windows doesn't have NAME_MAX or any interesting signals.

This commit is contained in:
David Given 2022-07-16 23:21:13 +02:00
parent bb0236cbf7
commit 438fdd91a6

View file

@ -59,10 +59,10 @@ static const struct
#define MAXARGS 1024 /* mar # of args */ #define MAXARGS 1024 /* mar # of args */
#define NTEMPS 4 /* # of temporary files; not tunable */ #define NTEMPS 4 /* # of temporary files; not tunable */
static char tmpbase[NAME_MAX]; static char tmpbase[PATH_MAX];
static char ddump[NAME_MAX]; /* data label dump file */ static char ddump[PATH_MAX]; /* data label dump file */
static char pdump[NAME_MAX]; /* procedure name dump file */ static char pdump[PATH_MAX]; /* procedure name dump file */
static char tmpbufs[NTEMPS * 2][NAME_MAX]; static char tmpbufs[NTEMPS * 2][PATH_MAX];
static int O2phases[] = { /* Passes for -O2 */ static int O2phases[] = { /* Passes for -O2 */
CJ, BO, SP, 0 CJ, BO, SP, 0
@ -320,10 +320,6 @@ int main(int argc, char* argv[])
int opt; int opt;
int i; int i;
if (signal(SIGHUP, catch) == SIG_IGN)
(void)signal(SIGHUP, SIG_IGN);
if (signal(SIGQUIT, catch) == SIG_IGN)
(void)signal(SIGQUIT, SIG_IGN);
if (signal(SIGINT, catch) == SIG_IGN) if (signal(SIGINT, catch) == SIG_IGN)
(void)signal(SIGINT, SIG_IGN); (void)signal(SIGINT, SIG_IGN);
prog_name = argv[0]; prog_name = argv[0];