MCPcopy Index your code
hub / github.com/python/cpython / write_internal_h_header

Function write_internal_h_header

Parser/asdl_c.py:2393–2407  ·  view source on GitHub ↗
(mod, f)

Source from the content-addressed store, hash-verified

2391
2392
2393def 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
2410def write_internal_h_footer(mod, f):

Callers 1

mainFunction · 0.85

Calls 2

lstripMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…