Modified objects initialization to support re-entry.

This commit is contained in:
Bart House
2018-11-23 15:13:22 -08:00
parent 041e55467a
commit c3eefefc99
13 changed files with 26 additions and 30 deletions

View File

@@ -318,13 +318,6 @@ const char *ARGV0;
/* support for lint.h */
unsigned nhUse_dummy = 0;
/* dummy routine used to force linkage */
void
decl_init()
{
return;
}
#define IVMAGIC 0xdeadbeef
const struct instance_globals g_init = {
@@ -420,7 +413,7 @@ const struct instance_globals g_init = {
struct instance_globals g;
void
instance_globals_init()
decl_globals_init()
{
g = g_init;