gc_inhibit_torture definition twice?

About this list Date view Thread view Subject view Author view Other groups

Subject: gc_inhibit_torture definition twice?
From: Thomas Hoffmann (hoffmann@ehmgs2.et.tu-dresden.de)
Date: Mon 25 Oct 1999 - 17:37:16 EST


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:09 EST