projects
/
coreboot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move ARRAY_SIZE to stdlib.h to make it available to all code (trivial).
[coreboot.git]
/
src
/
include
/
stdlib.h
1
#ifndef STDLIB_H
2
#define STDLIB_H
3
4
#include <stddef.h>
5
6
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
7
8
extern void *malloc(size_t size);
9
void free(void *ptr);
10
11
/* Extensions to malloc... */
12
typedef size_t malloc_mark_t;
13
void malloc_mark(malloc_mark_t *place);
14
void malloc_release(malloc_mark_t *place);
15
16
#endif /* STDLIB_H */