mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
gh-125667: Statically Initialize the Arg Converter Data Values in _interpqueuesmodule.c (gh-125668)
This commit is contained in:
parent
c3164ae3cf
commit
7cf2dbc3cb
@ -1518,7 +1518,7 @@ static PyObject *
|
|||||||
queuesmod_destroy(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_destroy(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:destroy", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:destroy", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1579,7 +1579,7 @@ static PyObject *
|
|||||||
queuesmod_put(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_put(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", "obj", "fmt", "unboundop", NULL};
|
static char *kwlist[] = {"qid", "obj", "fmt", "unboundop", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
int fmt;
|
int fmt;
|
||||||
int unboundop;
|
int unboundop;
|
||||||
@ -1615,7 +1615,7 @@ static PyObject *
|
|||||||
queuesmod_get(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_get(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:get", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:get", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1651,7 +1651,7 @@ static PyObject *
|
|||||||
queuesmod_bind(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_bind(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:bind", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:bind", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1681,7 +1681,7 @@ queuesmod_release(PyObject *self, PyObject *args, PyObject *kwds)
|
|||||||
{
|
{
|
||||||
// Note that only the current interpreter is affected.
|
// Note that only the current interpreter is affected.
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||||
"O&:release", kwlist,
|
"O&:release", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
@ -1710,7 +1710,7 @@ static PyObject *
|
|||||||
queuesmod_get_maxsize(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_get_maxsize(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||||
"O&:get_maxsize", kwlist,
|
"O&:get_maxsize", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
@ -1735,7 +1735,7 @@ static PyObject *
|
|||||||
queuesmod_get_queue_defaults(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_get_queue_defaults(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||||
"O&:get_queue_defaults", kwlist,
|
"O&:get_queue_defaults", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
@ -1765,7 +1765,7 @@ static PyObject *
|
|||||||
queuesmod_is_full(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_is_full(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||||
"O&:is_full", kwlist,
|
"O&:is_full", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
@ -1793,7 +1793,7 @@ static PyObject *
|
|||||||
queuesmod_get_count(PyObject *self, PyObject *args, PyObject *kwds)
|
queuesmod_get_count(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = {"qid", NULL};
|
static char *kwlist[] = {"qid", NULL};
|
||||||
qidarg_converter_data qidarg;
|
qidarg_converter_data qidarg = {0};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
if (!PyArg_ParseTupleAndKeywords(args, kwds,
|
||||||
"O&:get_count", kwlist,
|
"O&:get_count", kwlist,
|
||||||
qidarg_converter, &qidarg)) {
|
qidarg_converter, &qidarg)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user