Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    r45161b4d r3849857  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr 13 14:45:53 2016
    13 // Update Count     : 85
     12// Last Modified On : Tue Apr 12 18:22:54 2016
     13// Update Count     : 77
    1414//
    1515
     
    1818extern "C" {
    1919#include <stddef.h>                                                                             // size_t
     20#include <math.h>                                                                               // floor
    2021} // extern "C"
    2122
    22 //---------------------------------------
    23 
     23forall( otype T ) T * malloc( void );
    2424extern "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 );
     25void * malloc( size_t );                                                                // use default C for void *
    3026} // extern "C"
    31 
    32 //---------------------------------------
    33 
    34 extern "C" {
    35 void * malloc( size_t );                                                                // use default C routine for void *
    36 } // extern "C"
    37 forall( otype T ) T * malloc( void );
     27forall( otype T ) T * malloc( size_t size );
    3828forall( otype T ) T * malloc( char fill );
    3929forall( otype T ) T * malloc( T * ptr, size_t size );
    4030forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill );
    41 extern "C" {
    42 void * calloc( size_t nmemb, size_t size );                             // use default C routine for void *
    43 } // extern "C"
    44 forall( otype T ) T * calloc( size_t nmemb );
    45 extern "C" {
    46 void * realloc( void * ptr, size_t size );                              // use default C routine for void *
    47 } // extern "C"
     31forall( otype T ) T * calloc( size_t size );
    4832forall( otype T ) T * realloc( T * ptr, size_t size );
    4933forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill );
     
    10185char abs( char );
    10286extern "C" {
    103 int abs( int );                                                                                 // use default C routine for int
     87int abs( int );                         // use default C routine for int
    10488} // extern "C"
    10589long int abs( long int );
     
    116100float floor( float );
    117101extern "C" {
    118 double floor( double );                                                                 // use C routine for double
     102double floor( double );         // use C routine for double
    119103} // extern "C"
    120104long double floor( long double );
     
    122106float ceil( float );
    123107extern "C" {
    124 double ceil( double );                                                                  // use C routine for double
     108double ceil( double );          // use C routine for double
    125109} // extern "C"
    126110long double ceil( long double );
Note: See TracChangeset for help on using the changeset viewer.