Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/heap.cfa

    r4ea1c6d r1e034d9  
    1010// Created On       : Tue Dec 19 21:58:35 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Nov 29 17:33:58 2019
    13 // Update Count     : 641
     12// Last Modified On : Sun Nov 24 17:56:15 2019
     13// Update Count     : 638
    1414//
    1515
     
    7171
    7272
     73// static bool traceHeapTerm = false;
     74
     75// inline bool traceHeapTerm() {
     76//      return traceHeapTerm;
     77// } // traceHeapTerm
     78
     79// bool traceHeapTermOn() {
     80//      bool temp = traceHeapTerm;
     81//      traceHeapTerm = true;
     82//      return temp;
     83// } // traceHeapTermOn
     84
     85// bool traceHeapTermOff() {
     86//      bool temp = traceHeapTerm;
     87//      traceHeapTerm = false;
     88//      return temp;
     89// } // traceHeapTermOff
     90
     91
    7392enum {
    7493        // Define the default extension heap amount in units of bytes. When the uC++ supplied heap reaches the brk address,
     
    96115        if ( allocFree != 0 ) {
    97116                // DO NOT USE STREAMS AS THEY MAY BE UNAVAILABLE AT THIS POINT.
    98                 char helpText[512];
    99                 int len = snprintf( helpText, sizeof(helpText), "CFA warning (UNIX pid:%ld) : program terminating with %u(0x%x) bytes of storage allocated but not freed.\n"
    100                                                         "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n",
    101                                                         (long int)getpid(), allocFree, allocFree ); // always print the UNIX pid
    102                 __cfaabi_bits_write( STDERR_FILENO, helpText, len ); // print debug/nodebug
     117                // char helpText[512];
     118                // int len = snprintf( helpText, sizeof(helpText), "CFA warning (UNIX pid:%ld) : program terminating with %u(0x%x) bytes of storage allocated but not freed.\n"
     119                //                                      "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n",
     120                //                                      (long int)getpid(), allocFree, allocFree ); // always print the UNIX pid
     121                // __cfaabi_dbg_bits_write( STDERR_FILENO, helpText, len ); // print debug/nodebug
    103122        } // if
    104123} // prtUnfreed
Note: See TracChangeset for help on using the changeset viewer.