File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,8 @@ static inline size_t grow_x_2(size_t capacity, size_t elem_size) {
9696 return capacity * 2 ;
9797}
9898
99- // TODO: How do I want to deal with system headers? I'd rather not #include string.h here.
100- // string.h
101- extern void * memcpy (void * __restrict __dest , const void * __restrict __src ,
102- size_t __n ) __THROW __nonnull ((1 , 2 ));
103- // stdlib.h
104- extern void * malloc (size_t __size ) __THROW __attribute_malloc__
105- __attribute_alloc_size__ ((1 )) __wur ;
106- extern void * realloc (void * __ptr , size_t __size )
107- __THROW __attribute_warn_unused_result__ __attribute_alloc_size__ ((2 ));
108- extern void free (void * __ptr ) __THROW ;
99+ #include <string.h>
100+ #include <stdlib.h>
109101
110102#define v_arr_def (T ) \
111103 struct T##_arr { \
You can’t perform that action at this time.
0 commit comments