This uses the new merge_yaml_files feature in hdrgen to share the source of truth for the malloc suite of functions declared in both stdlib.h and in malloc.h (without either header including the other). It also modernizes the malloc.yaml definition a bit, including dropping the custom template malloc.h.def file in favor of using the explicit macros list to generate the includes.
19 lines
333 B
YAML
19 lines
333 B
YAML
header: malloc.h
|
|
standards:
|
|
- gnu
|
|
merge_yaml_files:
|
|
- stdlib-malloc.yaml
|
|
macros:
|
|
- macro_name: M_PURGE
|
|
macro_header: malloc-macros.h
|
|
- macro_name: M_PURGE_ALL
|
|
macro_header: malloc-macros.h
|
|
functions:
|
|
- name: mallopt
|
|
standards:
|
|
- gnu
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|