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.
79 lines
1.5 KiB
YAML
79 lines
1.5 KiB
YAML
header: sys/stat.h
|
|
header_template: stat.h.def
|
|
macros: []
|
|
types:
|
|
- type_name: blkcnt_t
|
|
- type_name: blksize_t
|
|
- type_name: off_t
|
|
- type_name: struct_timeval
|
|
- type_name: gid_t
|
|
- type_name: struct_stat
|
|
- type_name: uid_t
|
|
- type_name: nlink_t
|
|
- type_name: dev_t
|
|
- type_name: struct_timespec
|
|
- type_name: ino_t
|
|
- type_name: mode_t
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: chmod
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: mode_t
|
|
- name: fchmod
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: mode_t
|
|
- name: fchmodat
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: const char *
|
|
- type: mode_t
|
|
- type: int
|
|
- name: fstat
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: struct stat *
|
|
- name: lstat
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *__restrict
|
|
- type: struct stat *__restrict
|
|
- name: mkdir
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *
|
|
- type: mode_t
|
|
- name: mkdirat
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: const char *
|
|
- type: mode_t
|
|
- name: stat
|
|
standards:
|
|
- POSIX
|
|
return_type: int
|
|
arguments:
|
|
- type: const char *__restrict
|
|
- type: struct stat *__restrict
|