Annotation of researchv10no/cmd/cfront/libC/misc/_main.c, revision 1.1

1.1     ! root        1: #include <libc.h>
        !             2: 
        !             3: extern "C" {
        !             4:        extern int __dtors();
        !             5:        extern void _main();
        !             6: }
        !             7: 
        !             8: void _main()
        !             9: {
        !            10:        typedef void (*PFV)();
        !            11:        extern PFV _ctors[];
        !            12:        for (PFV* pf=_ctors; *pf; pf++) (**pf)();
        !            13:        onexit (__dtors);
        !            14: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.