Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    rb72bad4f r0438091  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr 27 22:03:29 2016
    13 // Update Count     : 96
     12// Last Modified On : Tue Mar 22 22:34:24 2016
     13// Update Count     : 69
    1414//
    1515
     
    2020} // extern "C"
    2121
    22 //---------------------------------------
    23 
    24 extern "C" {
    25 #ifndef EXIT_FAILURE
    26 #define EXIT_FAILURE    1                                                               // failing exit status
    27 #define EXIT_SUCCESS    0                                                               // successful exit status
    28 #endif // ! EXIT_FAILURE
    29 void exit( int rc );
    30 void abort( void );
    31 } // extern "C"
    32 
    33 //---------------------------------------
    34 
    35 extern "C" { void * malloc( size_t ); }                                 // use default C routine for void *
    3622forall( otype T ) T * malloc( void );
    3723forall( otype T ) T * malloc( char fill );
    3824forall( otype T ) T * malloc( T * ptr, size_t size );
    3925forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill );
    40 extern "C" { void * calloc( size_t nmemb, size_t size ); } // use default C routine for void *
    41 forall( otype T ) T * calloc( size_t nmemb );
    42 extern "C" { void * realloc( void * ptr, size_t size ); } // use default C routine for void *
     26forall( otype T ) T * calloc( size_t size );
    4327forall( otype T ) T * realloc( T * ptr, size_t size );
    4428forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill );
     
    4832forall( otype T ) int posix_memalign( T ** ptr, size_t alignment );
    4933
    50 extern "C" {
    51 void * memset( void * ptr, int fill, size_t size );
    52 void free( void * ptr );
    53 } // extern "C"
     34forall( otype T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill
     35forall( otype T ) T * memset( T * ptr );                                // remove when default value available
    5436
    5537//---------------------------------------
     
    9779
    9880char abs( char );
    99 extern "C" { int abs( int ); }                                                  // use default C routine for int
     81extern "C" {
     82int abs( int );         // use default C routine for int
     83} // extern
    10084long int abs( long int );
    10185long long int abs( long long int );
     
    10387double abs( double );
    10488long double abs( long double );
    105 float abs( float _Complex );
    106 double abs( double _Complex );
    107 long double abs( long double _Complex );
     89float _Complex abs( float _Complex );
     90double _Complex abs( double _Complex );
     91long double _Complex abs( long double _Complex );
    10892
    10993//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.