unintentional change removal
A recursive guard check was accidentally checked in with the status field stuff. Remove it.
This commit is contained in:
@@ -152,10 +152,6 @@ E NEARDATA struct sinfo {
|
|||||||
int panicking; /* `panic' is in progress */
|
int panicking; /* `panic' is in progress */
|
||||||
#if defined(VMS) || defined(WIN32)
|
#if defined(VMS) || defined(WIN32)
|
||||||
int exiting; /* an exit handler is executing */
|
int exiting; /* an exit handler is executing */
|
||||||
#endif
|
|
||||||
int in_impossible;
|
|
||||||
#ifdef PANICLOG
|
|
||||||
int in_paniclog;
|
|
||||||
#endif
|
#endif
|
||||||
} program_state;
|
} program_state;
|
||||||
|
|
||||||
|
|||||||
+6
-10
@@ -2275,16 +2275,12 @@ const char *reason; /* explanation */
|
|||||||
FILE *lfile;
|
FILE *lfile;
|
||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
|
|
||||||
if (!program_state.in_paniclog) {
|
lfile = fopen_datafile(PANICLOG, "a", TROUBLEPREFIX);
|
||||||
program_state.in_paniclog = 1;
|
if (lfile) {
|
||||||
lfile = fopen_datafile(PANICLOG, "a", TROUBLEPREFIX);
|
(void) fprintf(lfile, "%s %08ld: %s %s\n",
|
||||||
if (lfile) {
|
version_string(buf), yyyymmdd((time_t)0L),
|
||||||
(void) fprintf(lfile, "%s %08ld: %s %s\n",
|
type, reason);
|
||||||
version_string(buf), yyyymmdd((time_t)0L),
|
(void) fclose(lfile);
|
||||||
type, reason);
|
|
||||||
(void) fclose(lfile);
|
|
||||||
}
|
|
||||||
program_state.in_paniclog = 0;
|
|
||||||
}
|
}
|
||||||
#endif /* PANICLOG */
|
#endif /* PANICLOG */
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -252,9 +252,6 @@ void
|
|||||||
impossible VA_DECL(const char *, s)
|
impossible VA_DECL(const char *, s)
|
||||||
VA_START(s);
|
VA_START(s);
|
||||||
VA_INIT(s, const char *);
|
VA_INIT(s, const char *);
|
||||||
if (program_state.in_impossible)
|
|
||||||
panic("impossible called impossible");
|
|
||||||
program_state.in_impossible = 1;
|
|
||||||
{
|
{
|
||||||
char pbuf[BUFSZ];
|
char pbuf[BUFSZ];
|
||||||
Vsprintf(pbuf,s,VA_ARGS);
|
Vsprintf(pbuf,s,VA_ARGS);
|
||||||
@@ -262,7 +259,6 @@ impossible VA_DECL(const char *, s)
|
|||||||
}
|
}
|
||||||
vpline(s,VA_ARGS);
|
vpline(s,VA_ARGS);
|
||||||
pline("Program in disorder - perhaps you'd better #quit.");
|
pline("Program in disorder - perhaps you'd better #quit.");
|
||||||
program_state.in_impossible = 0;
|
|
||||||
VA_END();
|
VA_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user