Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    r59239b8 rbb82c03  
    2929
    3030extern "C" { void * malloc( size_t ); }                                 // use default C routine for void *
    31 forall( dtype T | sized(T) ) T * malloc( void );
    32 forall( dtype T | sized(T) ) T * malloc( char fill );
    33 forall( dtype T | sized(T) ) T * malloc( T * ptr, size_t size );
    34 forall( dtype T | sized(T) ) T * malloc( T * ptr, size_t size, unsigned char fill );
     31forall( otype T ) T * malloc( void );
     32forall( otype T ) T * malloc( char fill );
     33forall( otype T ) T * malloc( T * ptr, size_t size );
     34forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill );
    3535extern "C" { void * calloc( size_t nmemb, size_t size ); } // use default C routine for void *
    36 forall( dtype T | sized(T) ) T * calloc( size_t nmemb );
     36forall( otype T ) T * calloc( size_t nmemb );
    3737extern "C" { void * realloc( void * ptr, size_t size ); } // use default C routine for void *
    38 forall( dtype T | sized(T) ) T * realloc( T * ptr, size_t size );
    39 forall( dtype T | sized(T) ) T * realloc( T * ptr, size_t size, unsigned char fill );
     38forall( otype T ) T * realloc( T * ptr, size_t size );
     39forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill );
    4040
    41 forall( dtype T | sized(T) ) T * aligned_alloc( size_t alignment );
    42 forall( dtype T | sized(T) ) T * memalign( size_t alignment );          // deprecated
    43 forall( dtype T | sized(T) ) int posix_memalign( T ** ptr, size_t alignment );
     41forall( otype T ) T * aligned_alloc( size_t alignment );
     42forall( otype T ) T * memalign( size_t alignment );             // deprecated
     43forall( otype T ) int posix_memalign( T ** ptr, size_t alignment );
    4444
    4545extern "C" {
     
    4747void free( void * ptr );
    4848} // extern "C"
    49 
    50 forall( dtype T, ttype Params | sized(T) | { void ?{}(T *, Params); } ) T * new( Params p );
    51 forall( dtype T | { void ^?{}(T *); } ) void delete( T * ptr );
    52 
    5349
    5450//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.