This adds a new main command-line entry point for hdrgen, in the new main.py. This new interface is used for generating a header. The old ways of invoking yaml_to_classes.py for other purposes are left there for now, but `--e` is renamed to `--entry-point` for consistency with the new CLI. The YAML schema is expanded with the `header_template` key where the corresponding `.h.def` file's path is given relative to where the YAML file is found. The build integration no longer gives the `.h.def` path on the command line. Instead, the script now emits a depfile that's used by the cmake rules to track that. The output file is always explicit in the script command line rather than sometimes being derived from a directory path.
109 lines
1.9 KiB
YAML
109 lines
1.9 KiB
YAML
header: fenv.h
|
|
header_template: fenv.h.def
|
|
macros: []
|
|
types:
|
|
- type_name: fenv_t
|
|
- type_name: fexcept_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: feclearexcept
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: fedisableexcept
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
guard: null
|
|
- name: feenableexcept
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
attributes: []
|
|
- name: fegetenv
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: fenv_t *
|
|
- name: fegetexcept
|
|
standards:
|
|
- GNUExtensions
|
|
return_type: int
|
|
arguments: []
|
|
- name: fegetexceptflag
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: fexcept_t *
|
|
- type: int
|
|
- name: fegetround
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments: []
|
|
- name: feholdexcept
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: fenv_t *
|
|
- name: feraiseexcept
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: fesetenv
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const fenv_t *
|
|
- name: fesetexcept
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: fesetexceptflag
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const fexcept_t *
|
|
- type: int
|
|
- name: fesetround
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: fetestexcept
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- name: fetestexceptflag
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const fexcept_t *
|
|
- type: int
|
|
- name: feupdateenv
|
|
standards:
|
|
- stdc
|
|
return_type: int
|
|
arguments:
|
|
- type: const fenv_t *
|