From hoffmann@ehmgs2.et.tu-dresden.de  Mon Oct 25 08:37:16 1999
From: hoffmann@ehmgs2.et.tu-dresden.de (Thomas Hoffmann)
Date: Mon, 25 Oct 1999 09:37:16 +0200 (METDST)
Subject: gc_inhibit_torture definition twice?
Message-ID: <199910250737.JAA01900@ehmgs2.et.tu-dresden.de>

I have a problem to understand the way gc_inhibit_torture is defined.

In include/Defn.h it is declared as extern, using the __MAIN__ trick this leads to
a definition in main/main.c.

But in main/memory.c you define (and initialize) gc_inhibit_torture again:

    int gc_inhibit_torture = 1; /* gets set to zero after initialisations */

Then, in e.g. unix/system.c immediately at the beginning of main() you initialize 
gc_inhibit_torture once more:

int main(int ac, char **av)
{
    int value, ierr;
    char *p, msg[1024];
    structRstart rstart;
    Rstart Rp = &rstart;

    gc_inhibit_torture = 1;
    
Can anybody explain the reason for this implementation?

=============================================================================
Thomas Hoffmann, Institut fuer Halbleiter- und Mikrosystemtechnik, TU Dresden 
E-mail: hoffmann@ehmgs2.et.tu-dresden.de
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


gc_inhibit_torture definition twice?
Thomas Hoffmann