The names of the inline functions declared in the CPython headers and in pythoncapi_compat.h.
(root, include)
| 374 | |
| 375 | |
| 376 | def cpython_inlines(root, include): |
| 377 | """The names of the inline functions declared in the CPython headers |
| 378 | and in pythoncapi_compat.h.""" |
| 379 | names = set() |
| 380 | for path in [*include.rglob("*.h"), root / COMPAT_HEADER]: |
| 381 | names.update(CPYTHON_INLINE_RE.findall(path.read_text(errors="replace"))) |
| 382 | return names |
| 383 | |
| 384 | |
| 385 | def call_graph(obj): |