File: pycairo.patch

package info (click to toggle)
pypy3 7.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 111,848 kB
  • sloc: python: 1,291,746; ansic: 74,281; asm: 5,187; cpp: 3,017; sh: 2,533; makefile: 544; xml: 243; lisp: 45; csh: 21; awk: 4
file content (110 lines) | stat: -rw-r--r-- 4,919 bytes parent folder | download | duplicates (10)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
diff --git a/src/cairomodule.c b/src/cairomodule.c
index 21b7b20..181b420 100644
--- a/src/cairomodule.c
+++ b/src/cairomodule.c
@@ -188,7 +188,8 @@ init_cairo(void)
   if (PyType_Ready(&PycairoPath_Type) < 0)
     return;
   PycairoPathiter_Type.tp_iter=&PyObject_SelfIter;
-
+  if (PyType_Ready(&PycairoPathiter_Type) < 0)
+    return;
   if (PyType_Ready(&PycairoPattern_Type) < 0)
     return;
   if (PyType_Ready(&PycairoSolidPattern_Type) < 0)
diff --git a/src/context.c b/src/context.c
index e2c08b5..93b369f 100644
--- a/src/context.c
+++ b/src/context.c
@@ -1430,7 +1430,7 @@ PyTypeObject PycairoContext_Type = {
   pycairo_methods,                    /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */
diff --git a/src/font.c b/src/font.c
index 97cf1b3..3fcc9e4 100644
--- a/src/font.c
+++ b/src/font.c
@@ -131,7 +131,7 @@ PyTypeObject PycairoFontFace_Type = {
   0,                                  /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */
@@ -410,7 +410,7 @@ PyTypeObject PycairoScaledFont_Type = {
   scaled_font_methods,                /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */
@@ -595,7 +595,7 @@ PyTypeObject PycairoFontOptions_Type = {
   font_options_methods,               /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */
diff --git a/src/matrix.c b/src/matrix.c
index eefeab9..2ec5e2d 100644
--- a/src/matrix.c
+++ b/src/matrix.c
@@ -332,7 +332,7 @@ PyTypeObject PycairoMatrix_Type = {
   matrix_methods,                     /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */
diff --git a/src/path.c b/src/path.c
index 97ca35c..2d1bcf5 100644
--- a/src/path.c
+++ b/src/path.c
@@ -206,7 +206,7 @@ PyTypeObject PycairoPath_Type = {
   0,			        	/* tp_methods */
   0,					/* tp_members */
   0,					/* tp_getset */
-  &PyBaseObject_Type,                   /* tp_base */
+  0,                    /* tp_base */
   0,					/* tp_dict */
   0,					/* tp_descr_get */
   0,					/* tp_descr_set */
diff --git a/src/pattern.c b/src/pattern.c
index 229e218..cebf0c9 100644
--- a/src/pattern.c
+++ b/src/pattern.c
@@ -194,7 +194,7 @@ PyTypeObject PycairoPattern_Type = {
   pattern_methods,                    /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */
diff --git a/src/surface.c b/src/surface.c
index 568aad7..fa11413 100644
--- a/src/surface.c
+++ b/src/surface.c
@@ -370,7 +370,7 @@ PyTypeObject PycairoSurface_Type = {
   surface_methods,                    /* tp_methods */
   0,                                  /* tp_members */
   0,                                  /* tp_getset */
-  &PyBaseObject_Type,                 /* tp_base */
+  0,                                  /* tp_base */
   0,                                  /* tp_dict */
   0,                                  /* tp_descr_get */
   0,                                  /* tp_descr_set */