FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/cpython/modsupport.h at main · python/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.9k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
cpython
/
modsupport.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (40 loc) · 1.54 KB
Breadcrumbs
cpython
/
Include
/
cpython
/
modsupport.h
Copy path
File metadata and controls
45 lines (40 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
ifndef
Py_CPYTHON_MODSUPPORT_H
#
error
"this header file must not be included directly"
#
endif
PyAPI_FUNC
(
int
) PyArg_ParseArray(
PyObject *
const
*args,
Py_ssize_t nargs,
const
char
*format,
...);
PyAPI_FUNC
(
int
) PyArg_ParseArrayAndKeywords(
PyObject *
const
*args,
Py_ssize_t nargs,
PyObject *kwnames,
const
char
*format,
const
char
*
const
*kwlist,
...);
//
A data structure that can be used to run initialization code once in a
//
thread-safe manner. The C++11 equivalent is std::call_once.
typedef
struct
{
uint8_t
v;
} _PyOnceFlag;
typedef
struct
_PyArg_Parser
{
const
char
*format;
const
char
*
const
*keywords;
const
char
*fname;
const
char
*custom_msg;
_PyOnceFlag once;
/*
atomic one-time initialization flag
*/
int
is_kwtuple_owned;
/*
does this parser own the kwtuple object?
*/
int
pos;
/*
number of positional-only arguments
*/
int
min;
/*
minimal number of arguments
*/
int
max;
/*
maximal number of positional arguments
*/
PyObject *kwtuple;
/*
tuple of keyword parameter names
*/
struct
_PyArg_Parser
*next;
} _PyArg_Parser;
PyAPI_FUNC
(
int
) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *,
struct
_PyArg_Parser
*, ...);
#
ifdef
Py_BUILD_CORE
//
For internal use in stdlib. Needs C99 compound literals.
//
Defined here to avoid every stdlib module including pycore_modsupport.h
#
define
_Py_ABI_SLOT
{Py_mod_abi, (
void
*) &(PyABIInfo) _PyABIInfo_DEFAULT}
#
endif
Back
|
FazBrowse Home
|
New Git URL