Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
77133afe3142096cc7ea7755bfc727f59f2282f9
/
.
/
payloads
/
libpayload
/
curses
/
pdcurses-backend
/
nc_alloc.h
blob: 25b5161ec6446823ede3e0b1cdcb012d70816efb [
file
] [
log
] [
blame
]
#define
typeMalloc
(
type
,
elts
)
(
type
*)
malloc
((
elts
)*
sizeof
(
type
))
#define
typeCalloc
(
type
,
elts
)
(
type
*)
calloc
((
elts
),
sizeof
(
type
))
#define
typeRealloc
(
type
,
elts
,
ptr
)
(
type
*)
_nc_doalloc
(
ptr
,
(
elts
)*
sizeof
(
type
))