Lines Matching full:header
17 from header import Header
24 def check_api(header: Header, api: Dict):
64 if not header.macro_file_exists():
66 f"warning: Macro definitions are listed for {header.name}, but no macro file can be found in the directory tree rooted at {header.macros_dir}. All macros will be listed as not implemented.",
79 if not header.fns_dir_exists():
81 f"warning: Function definitions are listed for {header.name}, but no function implementation directory exists at {header.fns_dir}. All functions will be listed as not implemented.",
95 def load_api(header: Header) -> Dict:
96 api = header.docgen_yaml.read_text(encoding="utf-8")
106 :header-rows: 1
115 def print_functions_rst(header: Header, functions: Dict):
125 if header.fns_dir_exists() and header.implements_fn(name):
147 def print_macros_rst(header: Header, macros: Dict):
157 if header.macro_file_exists() and header.implements_macro(name):
169 f" - `POSIX.1-2024 <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/{header.name}.html>`__"
176 def print_impl_status_rst(header: Header, api: Dict):
177 if os.sep in header.name:
182 print("=" * len(header.name))
183 print(header.name)
184 print("=" * len(header.name))
189 print_macros_rst(header, api["macros"])
192 print_functions_rst(header, api["functions"])
216 header = Header(args.header_name)
217 api = load_api(header)
218 check_api(header, api)
220 print_impl_status_rst(header, api)