Skip to content

Commit

Permalink
More MSVC fixes; must explicitly name even leading members once you n…
Browse files Browse the repository at this point in the history
…ame one.
  • Loading branch information
jamadden committed Sep 12, 2024
1 parent 5d79b73 commit 071e8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/greenlet/PyGreenlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ static PyNumberMethods green_as_number = {


PyTypeObject PyGreenlet_Type = {
PyVarObject_HEAD_INIT(NULL, 0)
.ob_base=PyVarObject_HEAD_INIT(NULL, 0)
.tp_name="greenlet.greenlet", /* tp_name */
.tp_basicsize=sizeof(PyGreenlet), /* tp_basicsize */
/* methods */
Expand Down
4 changes: 2 additions & 2 deletions src/greenlet/PyGreenletUnswitchable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ static PyGetSetDef green_unswitchable_getsets[] = {
};

PyTypeObject PyGreenletUnswitchable_Type = {
PyVarObject_HEAD_INIT(NULL, 0)
"greenlet._greenlet.UnswitchableGreenlet",
.ob_base=PyVarObject_HEAD_INIT(NULL, 0)
.tp_name="greenlet._greenlet.UnswitchableGreenlet",
.tp_dealloc= (destructor)green_dealloc, /* tp_dealloc */
.tp_flags=G_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
.tp_doc="Undocumented internal class", /* tp_doc */
Expand Down

0 comments on commit 071e8a6

Please sign in to comment.