Changeset 6e991d6 for src/libcfa/stdlib
- Timestamp:
- Apr 21, 2016, 8:24:07 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 6812d89
- Parents:
- 6b6597c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib
r6b6597c r6e991d6 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Apr 19 21:21:53201613 // Update Count : 9 312 // Last Modified On : Thu Apr 21 07:55:21 2016 13 // Update Count : 95 14 14 // 15 15 … … 33 33 //--------------------------------------- 34 34 35 extern "C" { 36 void * malloc( size_t ); // use default C routine for void * 37 } // extern "C" 35 extern "C" { void * malloc( size_t ); } // use default C routine for void * 38 36 forall( otype T ) T * malloc( void ); 39 37 forall( otype T ) T * malloc( char fill ); 40 38 forall( otype T ) T * malloc( T * ptr, size_t size ); 41 39 forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill ); 42 extern "C" { 43 void * calloc( size_t nmemb, size_t size ); // use default C routine for void * 44 } // extern "C" 40 extern "C" { void * calloc( size_t nmemb, size_t size ); } // use default C routine for void * 45 41 forall( otype T ) T * calloc( size_t nmemb ); 46 extern "C" { 47 void * realloc( void * ptr, size_t size ); // use default C routine for void * 48 } // extern "C" 42 extern "C" { void * realloc( void * ptr, size_t size ); } // use default C routine for void * 49 43 forall( otype T ) T * realloc( T * ptr, size_t size ); 50 44 forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill ); … … 103 97 104 98 char abs( char ); 105 extern "C" { 106 int abs( int ); // use default C routine for int 107 } // extern "C" 99 extern "C" { int abs( int ); } // use default C routine for int 108 100 long int abs( long int ); 109 101 long long int abs( long long int ); … … 111 103 double abs( double ); 112 104 long double abs( long double ); 113 float _Complex abs( float _Complex ); 114 double _Complex abs( double _Complex ); 115 long double _Complex abs( long double _Complex ); 116 117 //--------------------------------------- 118 119 float floor( float ); 120 extern "C" { 121 double floor( double ); // use C routine for double 122 } // extern "C" 123 long double floor( long double ); 124 125 float ceil( float ); 126 extern "C" { 127 double ceil( double ); // use C routine for double 128 } // extern "C" 129 long double ceil( long double ); 105 float abs( float _Complex ); 106 double abs( double _Complex ); 107 long double abs( long double _Complex ); 130 108 131 109 //---------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.