Ignore:
Timestamp:
Apr 13, 2016, 5:40:32 PM (9 years ago)
Author:
Aaron Moss <a3moss@…>
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:
02af22de
Parents:
02ad3f5 (diff), 45161b4d (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' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib.c

    r02ad3f5 rb11fac4  
    1010// Created On       : Thu Jan 28 17:10:29 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Apr 12 18:19:22 2016
    13 // Update Count     : 151
     12// Last Modified On : Wed Apr 13 14:49:58 2016
     13// Update Count     : 155
    1414//
    1515
     
    3131    return (T *)malloc( sizeof(T) );
    3232} // malloc
    33 forall( otype T ) T * malloc( size_t size ) {
    34         //printf( "malloc2\n" );
    35     return (T *)(void *)malloc( size );
    36 } // malloc
    3733forall( otype T ) T * malloc( char fill ) {
    3834        //printf( "malloc3\n" );
     
    4137} // malloc
    4238
    43 forall( otype T ) T * calloc( size_t size ) {
     39forall( otype T ) T * calloc( size_t nmemb ) {
    4440        //printf( "calloc\n" );
    45     return (T *)calloc( size, sizeof(T) );
     41    return (T *)calloc( nmemb, sizeof(T) );
    4642} // calloc
    4743
Note: See TracChangeset for help on using the changeset viewer.