| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -478,17 +478,12 @@ static PyTypeObject* PyTrapezoidMapTriFinder_init_type(PyObject* m, PyTypeObject | |||
| 478 | 478 | ||
| 479 | 479 | extern "C" { | |
| 480 | 480 | ||
| 481 | - struct module_state | ||
| 482 | - { | ||
| 483 | - int _dummy; | ||
| 484 | - }; | ||
| 485 | - | ||
| 486 | 481 | #if PY3K | |
| 487 | 482 | static struct PyModuleDef moduledef = { | |
| 488 | 483 | PyModuleDef_HEAD_INIT, | |
| 489 | 484 | "_tri", | |
| 490 | 485 | NULL, | |
| 491 | - sizeof(struct module_state), | ||
| 486 | + 0, | ||
| 492 | 487 | NULL, | |
| 493 | 488 | NULL, | |
| 494 | 489 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -725,17 +725,12 @@ static PyTypeObject *PyRendererAgg_init_type(PyObject *m, PyTypeObject *type) | |||
| 725 | 725 | ||
| 726 | 726 | extern "C" { | |
| 727 | 727 | ||
| 728 | - struct module_state | ||
| 729 | - { | ||
| 730 | - int _dummy; | ||
| 731 | - }; | ||
| 732 | - | ||
| 733 | 728 | #if PY3K | |
| 734 | 729 | static struct PyModuleDef moduledef = { | |
| 735 | 730 | PyModuleDef_HEAD_INIT, | |
| 736 | 731 | "_backend_agg", | |
| 737 | 732 | NULL, | |
| 738 | - sizeof(struct module_state), | ||
| 733 | + 0, | ||
| 739 | 734 | NULL, | |
| 740 | 735 | NULL, | |
| 741 | 736 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,17 +138,12 @@ static PyTypeObject* PyQuadContourGenerator_init_type(PyObject* m, PyTypeObject* | |||
| 138 | 138 | ||
| 139 | 139 | extern "C" { | |
| 140 | 140 | ||
| 141 | - struct module_state | ||
| 142 | - { | ||
| 143 | - int _dummy; | ||
| 144 | - }; | ||
| 145 | - | ||
| 146 | 141 | #if PY3K | |
| 147 | 142 | static struct PyModuleDef moduledef = { | |
| 148 | 143 | PyModuleDef_HEAD_INIT, | |
| 149 | 144 | "_contour", | |
| 150 | 145 | NULL, | |
| 151 | - sizeof(struct module_state), | ||
| 146 | + 0, | ||
| 152 | 147 | NULL, | |
| 153 | 148 | NULL, | |
| 154 | 149 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,17 +108,12 @@ static PyMethodDef module_methods[] = { | |||
| 108 | 108 | ||
| 109 | 109 | extern "C" { | |
| 110 | 110 | ||
| 111 | - struct module_state | ||
| 112 | - { | ||
| 113 | - int _dummy; | ||
| 114 | - }; | ||
| 115 | - | ||
| 116 | 111 | #if PY3K | |
| 117 | 112 | static struct PyModuleDef moduledef = { | |
| 118 | 113 | PyModuleDef_HEAD_INIT, | |
| 119 | 114 | "_gtkagg", | |
| 120 | 115 | NULL, | |
| 121 | - sizeof(struct module_state), | ||
| 116 | + 0, | ||
| 122 | 117 | module_methods, | |
| 123 | 118 | NULL, | |
| 124 | 119 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -728,17 +728,12 @@ static PyMethodDef module_functions[] = { | |||
| 728 | 728 | ||
| 729 | 729 | extern "C" { | |
| 730 | 730 | ||
| 731 | - struct module_state | ||
| 732 | - { | ||
| 733 | - int _dummy; | ||
| 734 | - }; | ||
| 735 | - | ||
| 736 | 731 | #if PY3K | |
| 737 | 732 | static struct PyModuleDef moduledef = { | |
| 738 | 733 | PyModuleDef_HEAD_INIT, | |
| 739 | 734 | "_image", | |
| 740 | 735 | NULL, | |
| 741 | - sizeof(struct module_state), | ||
| 736 | + 0, | ||
| 742 | 737 | module_functions, | |
| 743 | 738 | NULL, | |
| 744 | 739 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -730,17 +730,12 @@ extern "C" { | |||
| 730 | 730 | {NULL} | |
| 731 | 731 | }; | |
| 732 | 732 | ||
| 733 | - struct module_state | ||
| 734 | - { | ||
| 735 | - int _dummy; | ||
| 736 | - }; | ||
| 737 | - | ||
| 738 | 733 | #if PY3K | |
| 739 | 734 | static struct PyModuleDef moduledef = { | |
| 740 | 735 | PyModuleDef_HEAD_INIT, | |
| 741 | 736 | "_path", | |
| 742 | 737 | NULL, | |
| 743 | - sizeof(struct module_state), | ||
| 738 | + 0, | ||
| 744 | 739 | module_functions, | |
| 745 | 740 | NULL, | |
| 746 | 741 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -520,17 +520,12 @@ static PyMethodDef module_methods[] = { | |||
| 520 | 520 | ||
| 521 | 521 | extern "C" { | |
| 522 | 522 | ||
| 523 | - struct module_state | ||
| 524 | - { | ||
| 525 | - int _dummy; | ||
| 526 | - }; | ||
| 527 | - | ||
| 528 | 523 | #if PY3K | |
| 529 | 524 | static struct PyModuleDef moduledef = { | |
| 530 | 525 | PyModuleDef_HEAD_INIT, | |
| 531 | 526 | "_png", | |
| 532 | 527 | NULL, | |
| 533 | - sizeof(struct module_state), | ||
| 528 | + 0, | ||
| 534 | 529 | module_methods, | |
| 535 | 530 | NULL, | |
| 536 | 531 | NULL, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1640,15 +1640,18 @@ static PyTypeObject *PyFT2Font_init_type(PyObject *m, PyTypeObject *type) | |||
| 1640 | 1640 | ||
| 1641 | 1641 | extern "C" { | |
| 1642 | 1642 | ||
| 1643 | - struct module_state | ||
| 1644 | - { | ||
| 1645 | - int _dummy; | ||
| 1646 | - }; | ||
| 1647 | - | ||
| 1648 | 1643 | #if PY3K | |
| 1649 | - static struct PyModuleDef moduledef = { PyModuleDef_HEAD_INIT, "ft2font", NULL, | ||
| 1650 | - sizeof(struct module_state), NULL, NULL, | ||
| 1651 | - NULL, NULL, NULL }; | ||
| 1644 | + static struct PyModuleDef moduledef = { | ||
| 1645 | + PyModuleDef_HEAD_INIT, | ||
| 1646 | + "ft2font", | ||
| 1647 | + NULL, | ||
| 1648 | + 0, | ||
| 1649 | + NULL, | ||
| 1650 | + NULL, | ||
| 1651 | + NULL, | ||
| 1652 | + NULL, | ||
| 1653 | + NULL | ||
| 1654 | + }; | ||
| 1652 | 1655 | ||
| 1653 | 1656 | #define INITERROR return NULL | |
| 1654 | 1657 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments