Changeset 58e97d9 for libcfa/src/stdlib.hfa
- Timestamp:
- Apr 24, 2022, 10:45:07 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 19e5d65d
- Parents:
- 31a5f418
- git-author:
- Peter A. Buhr <pabuhr@…> (04/24/22 10:44:01)
- git-committer:
- Peter A. Buhr <pabuhr@…> (04/24/22 10:45:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/stdlib.hfa
r31a5f418 r58e97d9 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Feb 12 17:22:25202213 // Update Count : 64 312 // Last Modified On : Mon Apr 18 17:57:36 2022 13 // Update Count : 644 14 14 // 15 15 … … 209 209 210 210 forall( TT... | { T * alloc_internal$( void *, T *, size_t, size_t, S_fill(T), TT ); } ) { 211 T * alloc_internal$( void * , T * , size_t Align, size_t Dim, S_fill(T) Fill, T_resize Resize, TT rest) {211 T * alloc_internal$( void *, T *, size_t Align, size_t Dim, S_fill(T) Fill, T_resize Resize, TT rest ) { 212 212 return alloc_internal$( Resize, (T*)0p, Align, Dim, Fill, rest); 213 213 } 214 214 215 T * alloc_internal$( void * , T * , size_t Align, size_t Dim, S_fill(T) Fill, S_realloc(T) Realloc, TT rest) {215 T * alloc_internal$( void *, T *, size_t Align, size_t Dim, S_fill(T) Fill, S_realloc(T) Realloc, TT rest ) { 216 216 return alloc_internal$( (void*)0p, Realloc, Align, Dim, Fill, rest); 217 217 } 218 218 219 T * alloc_internal$( void * Resize, T * Realloc, size_t , size_t Dim, S_fill(T) Fill, T_align Align, TT rest) {219 T * alloc_internal$( void * Resize, T * Realloc, size_t, size_t Dim, S_fill(T) Fill, T_align Align, TT rest ) { 220 220 return alloc_internal$( Resize, Realloc, Align, Dim, Fill, rest); 221 221 } 222 222 223 T * alloc_internal$( void * Resize, T * Realloc, size_t Align, size_t Dim, S_fill(T) , S_fill(T) Fill, TT rest) {224 return alloc_internal$( Resize, Realloc, Align, Dim, Fill, rest );223 T * alloc_internal$( void * Resize, T * Realloc, size_t Align, size_t Dim, S_fill(T), S_fill(T) Fill, TT rest ) { 224 return alloc_internal$( Resize, Realloc, Align, Dim, Fill, rest ); 225 225 } 226 226 227 227 T * alloc( TT all ) { 228 return alloc_internal$( (void*)0p, (T*)0p, (_Alignof(T) > libAlign() ? _Alignof(T) : libAlign()), (size_t)1, (S_fill(T)){'0'}, all );228 return alloc_internal$( (void*)0p, (T*)0p, (_Alignof(T) > libAlign() ? _Alignof(T) : libAlign()), (size_t)1, (S_fill(T)){'0'}, all ); 229 229 } 230 230 231 231 T * alloc( size_t dim, TT all ) { 232 return alloc_internal$( (void*)0p, (T*)0p, (_Alignof(T) > libAlign() ? _Alignof(T) : libAlign()), dim, (S_fill(T)){'0'}, all );232 return alloc_internal$( (void*)0p, (T*)0p, (_Alignof(T) > libAlign() ? _Alignof(T) : libAlign()), dim, (S_fill(T)){'0'}, all ); 233 233 } 234 234 } // distribution TT
Note: See TracChangeset
for help on using the changeset viewer.