Changes in src/libcfa/stdlib [45161b4d:53ba273]
- File:
-
- 1 edited
-
src/libcfa/stdlib (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib
r45161b4d r53ba273 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Apr 13 14:45:53201613 // Update Count : 8512 // Last Modified On : Fri Apr 1 22:26:14 2016 13 // Update Count : 73 14 14 // 15 15 … … 18 18 extern "C" { 19 19 #include <stddef.h> // size_t 20 #include <math.h> // floor 20 21 } // extern "C" 21 22 22 //---------------------------------------23 24 extern "C" {25 #ifndef EXIT_FAILURE26 #define EXIT_FAILURE 1 // failing exit status27 #define EXIT_SUCCESS 0 // successful exit status28 #endif // ! EXIT_FAILURE29 void exit( int rc );30 } // extern "C"31 32 //---------------------------------------33 34 extern "C" {35 void * malloc( size_t ); // use default C routine for void *36 } // extern "C"37 23 forall( otype T ) T * malloc( void ); 38 24 forall( otype T ) T * malloc( char fill ); 39 25 forall( otype T ) T * malloc( T * ptr, size_t size ); 40 26 forall( 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" 27 forall( otype T ) T * calloc( size_t size ); 48 28 forall( otype T ) T * realloc( T * ptr, size_t size ); 49 29 forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill ); … … 101 81 char abs( char ); 102 82 extern "C" { 103 int abs( int ); // use default C routine for int83 int abs( int ); // use default C routine for int 104 84 } // extern "C" 105 85 long int abs( long int ); … … 116 96 float floor( float ); 117 97 extern "C" { 118 double floor( double ); // use C routine for double98 double floor( double ); // use C routine for double 119 99 } // extern "C" 120 100 long double floor( long double ); … … 122 102 float ceil( float ); 123 103 extern "C" { 124 double ceil( double ); // use C routine for double104 double ceil( double ); // use C routine for double 125 105 } // extern "C" 126 106 long double ceil( long double );
Note:
See TracChangeset
for help on using the changeset viewer.