Changeset 6e991d6 for src/libcfa/stdlib


Ignore:
Timestamp:
Apr 21, 2016, 8:24:07 AM (8 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:
6812d89
Parents:
6b6597c
Message:

add -fgnu89-inline flag to compile, cleanup swap example I/O, stdlib fixes, start math library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    r6b6597c r6e991d6  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Apr 19 21:21:53 2016
    13 // Update Count     : 93
     12// Last Modified On : Thu Apr 21 07:55:21 2016
     13// Update Count     : 95
    1414//
    1515
     
    3333//---------------------------------------
    3434
    35 extern "C" {
    36 void * malloc( size_t );                                                                // use default C routine for void *
    37 } // extern "C"
     35extern "C" { void * malloc( size_t ); }                                 // use default C routine for void *
    3836forall( otype T ) T * malloc( void );
    3937forall( otype T ) T * malloc( char fill );
    4038forall( otype T ) T * malloc( T * ptr, size_t size );
    4139forall( 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"
     40extern "C" { void * calloc( size_t nmemb, size_t size ); } // use default C routine for void *
    4541forall( 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"
     42extern "C" { void * realloc( void * ptr, size_t size ); } // use default C routine for void *
    4943forall( otype T ) T * realloc( T * ptr, size_t size );
    5044forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill );
     
    10397
    10498char abs( char );
    105 extern "C" {
    106 int abs( int );                                                                                 // use default C routine for int
    107 } // extern "C"
     99extern "C" { int abs( int ); }                                                  // use default C routine for int
    108100long int abs( long int );
    109101long long int abs( long long int );
     
    111103double abs( double );
    112104long 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 );
     105float abs( float _Complex );
     106double abs( double _Complex );
     107long double abs( long double _Complex );
    130108
    131109//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.