(mod, f)
| 2391 | |
| 2392 | |
| 2393 | def write_internal_h_header(mod, f): |
| 2394 | print(textwrap.dedent(""" |
| 2395 | #ifndef Py_INTERNAL_AST_STATE_H |
| 2396 | #define Py_INTERNAL_AST_STATE_H |
| 2397 | |
| 2398 | #include "pycore_lock.h" // _PyOnceFlag |
| 2399 | |
| 2400 | #ifdef __cplusplus |
| 2401 | extern "C" { |
| 2402 | #endif |
| 2403 | |
| 2404 | #ifndef Py_BUILD_CORE |
| 2405 | # error "this header requires Py_BUILD_CORE define" |
| 2406 | #endif |
| 2407 | """).lstrip(), file=f) |
| 2408 | |
| 2409 | |
| 2410 | def write_internal_h_footer(mod, f): |