ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since 794db28 was             6e33a2d, checked in by Thierry Delisle <tdelisle@…>, 6 years ago           | 
        
        
          | 
             
Setting numeric locale to avoid complaints about memory leaks 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.5 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | //
 | 
|---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
 | 
|---|
| 3 | //
 | 
|---|
| 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
| 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
| 6 | //
 | 
|---|
| 7 | // startup.c --
 | 
|---|
| 8 | //
 | 
|---|
| 9 | // Author           : Peter A. Buhr
 | 
|---|
| 10 | // Created On       : Tue Jul 24 16:21:57 2018
 | 
|---|
| 11 | // Last Modified By : Peter A. Buhr
 | 
|---|
| 12 | // Last Modified On : Tue Feb  4 13:03:18 2020
 | 
|---|
| 13 | // Update Count     : 30
 | 
|---|
| 14 | //
 | 
|---|
| 15 | 
 | 
|---|
| 16 | #include <time.h>                // tzset
 | 
|---|
| 17 | #include <locale.h>        // setlocale
 | 
|---|
| 18 | #include "startup.hfa"
 | 
|---|
| 19 | 
 | 
|---|
| 20 | extern "C" {
 | 
|---|
| 21 |     void __cfaabi_appready_startup( void ) __attribute__(( constructor( STARTUP_PRIORITY_APPREADY ) ));
 | 
|---|
| 22 |     void __cfaabi_appready_startup( void ) {
 | 
|---|
| 23 |                 tzset();                                                                                // initialize time global variables
 | 
|---|
| 24 |                 setlocale(LC_NUMERIC, "");
 | 
|---|
| 25 |                 #ifdef __CFA_DEBUG__
 | 
|---|
| 26 |                 extern void heapAppStart();
 | 
|---|
| 27 |                 heapAppStart();
 | 
|---|
| 28 |                 #endif // __CFA_DEBUG__
 | 
|---|
| 29 |     } // __cfaabi_appready_startup
 | 
|---|
| 30 | 
 | 
|---|
| 31 |     void __cfaabi_appready_shutdown( void ) __attribute__(( destructor( STARTUP_PRIORITY_APPREADY ) ));
 | 
|---|
| 32 |     void __cfaabi_appready_shutdown( void ) {
 | 
|---|
| 33 |                 #ifdef __CFA_DEBUG__
 | 
|---|
| 34 |                 extern void heapAppStop();
 | 
|---|
| 35 |                 heapAppStop();
 | 
|---|
| 36 |                 #endif // __CFA_DEBUG__
 | 
|---|
| 37 |     } // __cfaabi_appready_shutdown
 | 
|---|
| 38 | 
 | 
|---|
| 39 |     void disable_interrupts() __attribute__(( weak )) {}
 | 
|---|
| 40 |     void enable_interrupts_noPoll() __attribute__(( weak )) {}
 | 
|---|
| 41 | } // extern "C"
 | 
|---|
| 42 | 
 | 
|---|
| 43 | struct __spinlock_t;
 | 
|---|
| 44 | extern "C" {
 | 
|---|
| 45 |         void __cfaabi_dbg_record_lock(struct __spinlock_t & this, const char prev_name[]) __attribute__(( weak )) {}
 | 
|---|
| 46 | }
 | 
|---|
| 47 | 
 | 
|---|
| 48 | // Local Variables: //
 | 
|---|
| 49 | // mode: c //
 | 
|---|
| 50 | // tab-width: 4 //
 | 
|---|
| 51 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.