gh-141376: Fix exported symbols (GH-141377)
* gh-141376: Fix exported symbols * _io module: add "_Py_" prefix to "spec" variables. For example, rename bufferedrandom_spec to _Py_bufferedrandom_spec. * typevarobject.c: add "static" to "spec" and "slots" variables. * import.c: add "static" to "pkgcontext" variable. * No longer export textiowrapper_slots
This commit is contained in:
@@ -251,7 +251,7 @@ static PyType_Slot constevaluator_slots[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
PyType_Spec constevaluator_spec = {
|
||||
static PyType_Spec constevaluator_spec = {
|
||||
.name = "_typing._ConstEvaluator",
|
||||
.basicsize = sizeof(constevaluatorobject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_IMMUTABLETYPE
|
||||
@@ -930,7 +930,7 @@ static PyType_Slot typevar_slots[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
PyType_Spec typevar_spec = {
|
||||
static PyType_Spec typevar_spec = {
|
||||
.name = "typing.TypeVar",
|
||||
.basicsize = sizeof(typevarobject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_IMMUTABLETYPE
|
||||
@@ -1078,7 +1078,7 @@ static PyType_Slot paramspecargs_slots[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
PyType_Spec paramspecargs_spec = {
|
||||
static PyType_Spec paramspecargs_spec = {
|
||||
.name = "typing.ParamSpecArgs",
|
||||
.basicsize = sizeof(paramspecattrobject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_IMMUTABLETYPE
|
||||
@@ -1158,7 +1158,7 @@ static PyType_Slot paramspeckwargs_slots[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
PyType_Spec paramspeckwargs_spec = {
|
||||
static PyType_Spec paramspeckwargs_spec = {
|
||||
.name = "typing.ParamSpecKwargs",
|
||||
.basicsize = sizeof(paramspecattrobject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_IMMUTABLETYPE
|
||||
@@ -1509,7 +1509,7 @@ static PyType_Slot paramspec_slots[] = {
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
PyType_Spec paramspec_spec = {
|
||||
static PyType_Spec paramspec_spec = {
|
||||
.name = "typing.ParamSpec",
|
||||
.basicsize = sizeof(paramspecobject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_IMMUTABLETYPE
|
||||
@@ -1789,7 +1789,7 @@ Note that only TypeVarTuples defined in the global scope can be\n\
|
||||
pickled.\n\
|
||||
");
|
||||
|
||||
PyType_Slot typevartuple_slots[] = {
|
||||
static PyType_Slot typevartuple_slots[] = {
|
||||
{Py_tp_doc, (void *)typevartuple_doc},
|
||||
{Py_tp_members, typevartuple_members},
|
||||
{Py_tp_methods, typevartuple_methods},
|
||||
@@ -1805,7 +1805,7 @@ PyType_Slot typevartuple_slots[] = {
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
PyType_Spec typevartuple_spec = {
|
||||
static PyType_Spec typevartuple_spec = {
|
||||
.name = "typing.TypeVarTuple",
|
||||
.basicsize = sizeof(typevartupleobject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_MANAGED_DICT
|
||||
@@ -2347,7 +2347,7 @@ static PyType_Slot generic_slots[] = {
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
PyType_Spec generic_spec = {
|
||||
static PyType_Spec generic_spec = {
|
||||
.name = "typing.Generic",
|
||||
.basicsize = sizeof(PyObject),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
|
||||
|
||||
Reference in New Issue
Block a user