- Timestamp:
- Apr 26, 2019, 4:59:48 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5b11c25
- Parents:
- ffe2fad (diff), 1bc5975 (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. - Location:
- libcfa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/configure
rffe2fad r673cd63 2959 2959 case $CONFIGURATION in 2960 2960 "debug" ) 2961 CONFIG_CFLAGS="-O 0-g"2961 CONFIG_CFLAGS="-Og -g" 2962 2962 CONFIG_CFAFLAGS="-debug" 2963 2963 CONFIG_BUILDLIB="yes" 2964 2964 ;; 2965 2965 "nodebug" ) 2966 CONFIG_CFLAGS="-O 2-s"2966 CONFIG_CFLAGS="-O3 -s" 2967 2967 CONFIG_CFAFLAGS="-nodebug" 2968 2968 CONFIG_BUILDLIB="yes" 2969 2969 ;; 2970 2970 "nolib" ) 2971 CONFIG_CFLAGS="-O 2-s"2971 CONFIG_CFLAGS="-O3 -s" 2972 2972 CONFIG_CFAFLAGS="-nolib" 2973 2973 CONFIG_BUILDLIB="no" 2974 ;; 2975 "profile" ) 2976 CONFIG_CFLAGS="-O3 -g -fno-omit-frame-pointer" 2977 CONFIG_CFAFLAGS="-nodebug" 2978 CONFIG_BUILDLIB="yes" 2974 2979 ;; 2975 2980 *) -
libcfa/configure.ac
rffe2fad r673cd63 45 45 case $CONFIGURATION in 46 46 "debug" ) 47 CONFIG_CFLAGS="-O 0-g"47 CONFIG_CFLAGS="-Og -g" 48 48 CONFIG_CFAFLAGS="-debug" 49 49 CONFIG_BUILDLIB="yes" 50 50 ;; 51 51 "nodebug" ) 52 CONFIG_CFLAGS="-O 2-s"52 CONFIG_CFLAGS="-O3 -s" 53 53 CONFIG_CFAFLAGS="-nodebug" 54 54 CONFIG_BUILDLIB="yes" 55 55 ;; 56 56 "nolib" ) 57 CONFIG_CFLAGS="-O 2-s"57 CONFIG_CFLAGS="-O3 -s" 58 58 CONFIG_CFAFLAGS="-nolib" 59 59 CONFIG_BUILDLIB="no" 60 ;; 61 "profile" ) 62 CONFIG_CFLAGS="-O3 -g -fno-omit-frame-pointer" 63 CONFIG_CFAFLAGS="-nodebug" 64 CONFIG_BUILDLIB="yes" 60 65 ;; 61 66 *) -
libcfa/src/stdlib.hfa
rffe2fad r673cd63 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 17 15:37:45 201813 // Update Count : 3 4612 // Last Modified On : Wed Apr 24 17:35:43 2019 13 // Update Count : 352 14 14 // 15 15 … … 40 40 } // malloc 41 41 42 // T & malloc( void ) {43 // int & p = *(T *)(void *)malloc( (size_t)sizeof(T) ); // C malloc44 // printf( "& malloc %p\n", &p );45 // return p;46 // // return (T &)*(T *)(void *)malloc( (size_t)sizeof(T) ); // C malloc47 // } // malloc48 49 42 T * calloc( size_t dim ) { 50 43 return (T *)(void *)calloc( dim, sizeof(T) ); // C calloc … … 76 69 T * alloc( char fill ) { 77 70 T * ptr = (T *)(void *)malloc( (size_t)sizeof(T) ); // C malloc 78 return (T *)memset( ptr, (int)fill, sizeof(T) ); // initialwith fill value71 return (T *)memset( ptr, (int)fill, sizeof(T) ); // initialize with fill value 79 72 } // alloc 80 73 … … 84 77 85 78 T * alloc( size_t dim, char fill ) { 86 T * ptr = (T *)(void *)malloc( dim * (size_t)sizeof(T) ); // C malloc87 return (T *)memset( ptr, (int)fill, dim * sizeof(T) ); // initialwith fill value79 T * ptr = (T *)(void *)malloc( dim * (size_t)sizeof(T) ); // C calloc 80 return (T *)memset( ptr, (int)fill, dim * sizeof(T) ); // initialize with fill value 88 81 } // alloc 89 82
Note:
See TracChangeset
for help on using the changeset viewer.