Changeset b11fac4 for src/libcfa/stdlib.c
- Timestamp:
- Apr 13, 2016, 5:40:32 PM (9 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/stdlib.c
r02ad3f5 rb11fac4 10 10 // Created On : Thu Jan 28 17:10:29 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Apr 12 18:19:22201613 // Update Count : 15 112 // Last Modified On : Wed Apr 13 14:49:58 2016 13 // Update Count : 155 14 14 // 15 15 … … 31 31 return (T *)malloc( sizeof(T) ); 32 32 } // malloc 33 forall( otype T ) T * malloc( size_t size ) {34 //printf( "malloc2\n" );35 return (T *)(void *)malloc( size );36 } // malloc37 33 forall( otype T ) T * malloc( char fill ) { 38 34 //printf( "malloc3\n" ); … … 41 37 } // malloc 42 38 43 forall( otype T ) T * calloc( size_t size) {39 forall( otype T ) T * calloc( size_t nmemb ) { 44 40 //printf( "calloc\n" ); 45 return (T *)calloc( size, sizeof(T) );41 return (T *)calloc( nmemb, sizeof(T) ); 46 42 } // calloc 47 43
Note:
See TracChangeset
for help on using the changeset viewer.