Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-19 09:50:41

0001 #ifndef Py_CPYTHON_MODSUPPORT_H
0002 #  error "this header file must not be included directly"
0003 #endif
0004 
0005 // A data structure that can be used to run initialization code once in a
0006 // thread-safe manner. The C++11 equivalent is std::call_once.
0007 typedef struct {
0008     uint8_t v;
0009 } _PyOnceFlag;
0010 
0011 typedef struct _PyArg_Parser {
0012     const char *format;
0013     const char * const *keywords;
0014     const char *fname;
0015     const char *custom_msg;
0016     _PyOnceFlag once;       /* atomic one-time initialization flag */
0017     int is_kwtuple_owned;   /* does this parser own the kwtuple object? */
0018     int pos;                /* number of positional-only arguments */
0019     int min;                /* minimal number of arguments */
0020     int max;                /* maximal number of positional arguments */
0021     PyObject *kwtuple;      /* tuple of keyword parameter names */
0022     struct _PyArg_Parser *next;
0023 } _PyArg_Parser;
0024 
0025 PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *,
0026                                                  struct _PyArg_Parser *, ...);