Changeset 4040425 for src/libcfa/stdlib
- Timestamp:
- Mar 2, 2016, 6:15:02 PM (9 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:
- 36ebd03, b63e376
- Parents:
- 8f610e85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib
r8f610e85 r4040425 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 1 6:52:25201613 // Update Count : 6 312 // Last Modified On : Wed Mar 2 17:38:21 2016 13 // Update Count : 64 14 14 // 15 15 … … 20 20 } // extern "C" 21 21 22 forall( type T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill23 forall( type T ) T * memset( T * ptr ); // remove when default value available22 forall( otype T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill 23 forall( otype T ) T * memset( T * ptr ); // remove when default value available 24 24 25 forall( type T ) T * malloc( void );26 forall( type T ) T * malloc( char fill );27 forall( type T ) T * malloc( T * ptr, size_t size );28 forall( type T ) T * malloc( T * ptr, size_t size, unsigned char fill );29 forall( type T ) T * calloc( size_t size );30 forall( type T ) T * realloc( T * ptr, size_t size );31 forall( type T ) T * realloc( T * ptr, size_t size, unsigned char fill );25 forall( otype T ) T * malloc( void ); 26 forall( otype T ) T * malloc( char fill ); 27 forall( otype T ) T * malloc( T * ptr, size_t size ); 28 forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill ); 29 forall( otype T ) T * calloc( size_t size ); 30 forall( otype T ) T * realloc( T * ptr, size_t size ); 31 forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill ); 32 32 33 forall( type T ) T * aligned_alloc( size_t alignment );34 forall( type T ) T * memalign( size_t alignment ); // deprecated35 forall( type T ) int posix_memalign( T ** ptr, size_t alignment );33 forall( otype T ) T * aligned_alloc( size_t alignment ); 34 forall( otype T ) T * memalign( size_t alignment ); // deprecated 35 forall( otype T ) int posix_memalign( T ** ptr, size_t alignment ); 36 36 37 37 //--------------------------------------- … … 65 65 //--------------------------------------- 66 66 67 forall( type T | { int ?<?( T, T ); } )67 forall( otype T | { int ?<?( T, T ); } ) 68 68 T * bsearch( const T key, const T * arr, size_t dimension ); 69 69 70 forall( type T | { int ?<?( T, T ); } )70 forall( otype T | { int ?<?( T, T ); } ) 71 71 void qsort( const T * arr, size_t dimension ); 72 72 73 73 //--------------------------------------- 74 74 75 forall( type T | { T ?/?( T, T ); T ?%?( T, T ); } )75 forall( otype T | { T ?/?( T, T ); T ?%?( T, T ); } ) 76 76 [ T, T ] div( T t1, T t2 ); 77 77 … … 107 107 //--------------------------------------- 108 108 109 forall( type T | { int ?<?( T, T ); } )109 forall( otype T | { int ?<?( T, T ); } ) 110 110 T min( const T t1, const T t2 ); 111 111 112 forall( type T | { int ?>?( T, T ); } )112 forall( otype T | { int ?>?( T, T ); } ) 113 113 T max( const T t1, const T t2 ); 114 114 115 forall( type T )115 forall( otype T ) 116 116 void swap( T * t1, T * t2 ); 117 117
Note: See TracChangeset
for help on using the changeset viewer.