2003-04-22 21:02:15 +02:00
|
|
|
#ifndef STDLIB_H
|
|
|
|
#define STDLIB_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2007-10-27 22:05:21 +02:00
|
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
|
|
|
|
2007-11-07 20:02:35 +01:00
|
|
|
#ifndef __ROMCC__
|
2003-04-22 21:02:15 +02:00
|
|
|
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);
|
2007-11-07 20:02:35 +01:00
|
|
|
#endif
|
2003-04-22 21:02:15 +02:00
|
|
|
|
|
|
|
#endif /* STDLIB_H */
|