program_state moved to g.

This commit is contained in:
Bart House
2018-12-25 10:09:04 -08:00
parent ab73df996f
commit b1ab64db43
45 changed files with 130 additions and 132 deletions

View File

@@ -27,7 +27,7 @@
static long final_fpos;
#endif
#define done_stopprint program_state.stopprint
#define done_stopprint g.program_state.stopprint
#define newttentry() (struct toptenentry *) alloc(sizeof (struct toptenentry))
#define dealloc_ttentry(ttent) free((genericptr_t) (ttent))
@@ -511,7 +511,7 @@ time_t when;
* topten uses alloc() several times, which will lead to
* problems if the panic was the result of an alloc() failure.
*/
if (program_state.panicking)
if (g.program_state.panicking)
return;
if (iflags.toptenwin) {
@@ -519,7 +519,7 @@ time_t when;
}
#if defined(UNIX) || defined(VMS) || defined(__EMX__)
#define HUP if (!program_state.done_hup)
#define HUP if (!g.program_state.done_hup)
#else
#define HUP
#endif