Ignore:
Timestamp:
Nov 3, 2021, 11:47:32 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
a1574e2
Parents:
3eb540fb
Message:

Moved cfa_main_returned to libcfa so it works when the main is written in C.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/interpose.cfa

    r3eb540fb r7dd98b6  
    9494} __cabi_libc;
    9595
     96int cfa_main_returned;
     97
    9698extern "C" {
    9799        void __cfaabi_interpose_startup( void ) {
    98100                const char *version = 0p;
     101                cfa_main_returned = 0;
    99102
    100103                preload_libgcc();
     
    313316
    314317void sigHandler_term( __CFA_SIGPARMS__ ) {
     318        write( STDERR_FILENO, "Handler Term\n", sizeof("Handler Term\n") - 1 );
    315319        abort( true, "Application interrupted by signal: %s.\n", strsignal( sig ) );
    316320}
Note: See TracChangeset for help on using the changeset viewer.