coreboot-kgpe-d16/src/include/stdlib.h

19 lines
356 B
C
Raw Normal View History

#ifndef STDLIB_H
#define STDLIB_H
#include <stddef.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#ifndef __ROMCC__
extern void *malloc(size_t size);
void free(void *ptr);
/* Extensions to malloc... */
typedef size_t malloc_mark_t;
void malloc_mark(malloc_mark_t *place);
void malloc_release(malloc_mark_t *place);
#endif
#endif /* STDLIB_H */