Changeset 70a06f6 for src/libcfa/stdlib


Ignore:
Timestamp:
Apr 14, 2016, 4:13:10 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
356189a
Parents:
db4ecc5 (diff), 37f0da8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ctor

Conflicts:

src/CodeGen/CodeGenerator.cc
src/GenPoly/Box.cc
src/Parser/DeclarationNode.cc
src/Parser/ParseNode.h
src/Parser/parser.cc
src/Parser/parser.yy
src/SymTab/AddVisit.h
src/SymTab/Validate.cc
src/SynTree/Expression.cc
src/SynTree/Expression.h
src/SynTree/Mutator.cc
src/SynTree/Mutator.h
src/SynTree/SynTree.h
src/SynTree/Visitor.cc
src/SynTree/Visitor.h
src/libcfa/iostream.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    rdb4ecc5 r70a06f6  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar 22 22:34:24 2016
    13 // Update Count     : 69
     12// Last Modified On : Wed Apr 13 14:45:53 2016
     13// Update Count     : 85
    1414//
    1515
     
    2020} // extern "C"
    2121
     22//---------------------------------------
     23
     24extern "C" {
     25#ifndef EXIT_FAILURE
     26#define EXIT_FAILURE    1                                                               // failing exit status
     27#define EXIT_SUCCESS    0                                                               // successful exit status
     28#endif // ! EXIT_FAILURE
     29void exit( int rc );
     30} // extern "C"
     31
     32//---------------------------------------
     33
     34extern "C" {
     35void * malloc( size_t );                                                                // use default C routine for void *
     36} // extern "C"
    2237forall( otype T ) T * malloc( void );
    2338forall( otype T ) T * malloc( char fill );
    2439forall( otype T ) T * malloc( T * ptr, size_t size );
    2540forall( otype T ) T * malloc( T * ptr, size_t size, unsigned char fill );
    26 forall( otype T ) T * calloc( size_t size );
     41extern "C" {
     42void * calloc( size_t nmemb, size_t size );                             // use default C routine for void *
     43} // extern "C"
     44forall( otype T ) T * calloc( size_t nmemb );
     45extern "C" {
     46void * realloc( void * ptr, size_t size );                              // use default C routine for void *
     47} // extern "C"
    2748forall( otype T ) T * realloc( T * ptr, size_t size );
    2849forall( otype T ) T * realloc( T * ptr, size_t size, unsigned char fill );
     
    80101char abs( char );
    81102extern "C" {
    82 int abs( int );         // use default C routine for int
    83 } // extern
     103int abs( int );                                                                                 // use default C routine for int
     104} // extern "C"
    84105long int abs( long int );
    85106long long int abs( long long int );
     
    90111double _Complex abs( double _Complex );
    91112long double _Complex abs( long double _Complex );
     113
     114//---------------------------------------
     115
     116float floor( float );
     117extern "C" {
     118double floor( double );                                                                 // use C routine for double
     119} // extern "C"
     120long double floor( long double );
     121
     122float ceil( float );
     123extern "C" {
     124double ceil( double );                                                                  // use C routine for double
     125} // extern "C"
     126long double ceil( long double );
    92127
    93128//---------------------------------------
Note: See TracChangeset for help on using the changeset viewer.