Changeset 4040425 for src/libcfa/stdlib


Ignore:
Timestamp:
Mar 2, 2016, 6:15:02 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

change keyword type to otype and context to trait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    r8f610e85 r4040425  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Mar  2 16:52:25 2016
    13 // Update Count     : 63
     12// Last Modified On : Wed Mar  2 17:38:21 2016
     13// Update Count     : 64
    1414//
    1515
     
    2020} // extern "C"
    2121
    22 forall( type T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill
    23 forall( type T ) T * memset( T * ptr );                                 // remove when default value available
     22forall( otype T ) T * memset( T * ptr, unsigned char fill ); // use default value '\0' for fill
     23forall( otype T ) T * memset( T * ptr );                                        // remove when default value available
    2424
    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 );
     25forall( otype T ) T * malloc( void );
     26forall( otype T ) T * malloc( char fill );
     27forall( otype T ) T * malloc( T * ptr, size_t size );
     28forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill );
     29forall( otype T ) T * calloc( size_t size );
     30forall( otype T ) T * realloc( T * ptr, size_t size );
     31forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill );
    3232
    33 forall( type T ) T * aligned_alloc( size_t alignment );
    34 forall( type T ) T * memalign( size_t alignment );              // deprecated
    35 forall( type T ) int posix_memalign( T ** ptr, size_t alignment );
     33forall( otype T ) T * aligned_alloc( size_t alignment );
     34forall( otype T ) T * memalign( size_t alignment );             // deprecated
     35forall( otype T ) int posix_memalign( T ** ptr, size_t alignment );
    3636
    3737//---------------------------------------
     
    6565//---------------------------------------
    6666
    67 forall( type T | { int ?<?( T, T ); } )
     67forall( otype T | { int ?<?( T, T ); } )
    6868T * bsearch( const T key, const T * arr, size_t dimension );
    6969
    70 forall( type T | { int ?<?( T, T ); } )
     70forall( otype T | { int ?<?( T, T ); } )
    7171void qsort( const T * arr, size_t dimension );
    7272
    7373//---------------------------------------
    7474
    75 forall( type T | { T ?/?( T, T ); T ?%?( T, T ); } )
     75forall( otype T | { T ?/?( T, T ); T ?%?( T, T ); } )
    7676[ T, T ] div( T t1, T t2 );
    7777
     
    107107//---------------------------------------
    108108
    109 forall( type T | { int ?<?( T, T ); } )
     109forall( otype T | { int ?<?( T, T ); } )
    110110T min( const T t1, const T t2 );
    111111
    112 forall( type T | { int ?>?( T, T ); } )
     112forall( otype T | { int ?>?( T, T ); } )
    113113T max( const T t1, const T t2 );
    114114
    115 forall( type T )
     115forall( otype T )
    116116void swap( T * t1, T * t2 );
    117117
Note: See TracChangeset for help on using the changeset viewer.