Changeset 0270824 for src/SynTree


Ignore:
Timestamp:
Jan 12, 2017, 11:31:57 AM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
3fe34ae
Parents:
075734f
Message:

Replace user main with custom main, prototype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    r075734f r0270824  
    2727        set_isInline( isInline );
    2828        set_isNoreturn( isNoreturn );
    29         // this is a brazen hack to force the function "main" to have C linkage
     29        // this is a brazen hack to force the function "main" to have Cforall linkage
     30        // because we want to replace the main even if it is inside an extern
    3031        if ( name == "main" ) {
    31                 set_linkage( LinkageSpec::C );
     32                set_linkage( LinkageSpec::Cforall );
    3233        } // if
    3334}
Note: See TracChangeset for help on using the changeset viewer.