@@ -819,53 +819,50 @@ static PyObject *Py_is_sorted(PyObject *self, PyObject *obj)
819819}
820820
821821
822- extern " C" {
823-
824- static PyMethodDef module_functions[] = {
825- {" point_in_path" , (PyCFunction)Py_point_in_path, METH_VARARGS, Py_point_in_path__doc__},
826- {" points_in_path" , (PyCFunction)Py_points_in_path, METH_VARARGS, Py_points_in_path__doc__},
827- {" point_on_path" , (PyCFunction)Py_point_on_path, METH_VARARGS, Py_point_on_path__doc__},
828- {" points_on_path" , (PyCFunction)Py_points_on_path, METH_VARARGS, Py_points_on_path__doc__},
829- {" get_path_extents" , (PyCFunction)Py_get_path_extents, METH_VARARGS, Py_get_path_extents__doc__},
830- {" update_path_extents" , (PyCFunction)Py_update_path_extents, METH_VARARGS, Py_update_path_extents__doc__},
831- {" get_path_collection_extents" , (PyCFunction)Py_get_path_collection_extents, METH_VARARGS, Py_get_path_collection_extents__doc__},
832- {" point_in_path_collection" , (PyCFunction)Py_point_in_path_collection, METH_VARARGS, Py_point_in_path_collection__doc__},
833- {" path_in_path" , (PyCFunction)Py_path_in_path, METH_VARARGS, Py_path_in_path__doc__},
834- {" clip_path_to_rect" , (PyCFunction)Py_clip_path_to_rect, METH_VARARGS, Py_clip_path_to_rect__doc__},
835- {" affine_transform" , (PyCFunction)Py_affine_transform, METH_VARARGS, Py_affine_transform__doc__},
836- {" count_bboxes_overlapping_bbox" , (PyCFunction)Py_count_bboxes_overlapping_bbox, METH_VARARGS, Py_count_bboxes_overlapping_bbox__doc__},
837- {" path_intersects_path" , (PyCFunction)Py_path_intersects_path, METH_VARARGS|METH_KEYWORDS, Py_path_intersects_path__doc__},
838- {" path_intersects_rectangle" , (PyCFunction)Py_path_intersects_rectangle, METH_VARARGS|METH_KEYWORDS, Py_path_intersects_rectangle__doc__},
839- {" convert_path_to_polygons" , (PyCFunction)Py_convert_path_to_polygons, METH_VARARGS|METH_KEYWORDS, Py_convert_path_to_polygons__doc__},
840- {" cleanup_path" , (PyCFunction)Py_cleanup_path, METH_VARARGS, Py_cleanup_path__doc__},
841- {" convert_to_string" , (PyCFunction)Py_convert_to_string, METH_VARARGS, Py_convert_to_string__doc__},
842- {" is_sorted" , (PyCFunction)Py_is_sorted, METH_O, Py_is_sorted__doc__},
843- {NULL }
844- };
845-
846- static struct PyModuleDef moduledef = {
847- PyModuleDef_HEAD_INIT,
848- " _path" ,
849- NULL ,
850- 0 ,
851- module_functions,
852- NULL ,
853- NULL ,
854- NULL ,
855- NULL
856- };
857-
858- PyMODINIT_FUNC PyInit__path (void )
859- {
860- PyObject *m;
861- m = PyModule_Create (&moduledef);
822+ static PyMethodDef module_functions[] = {
823+ {" point_in_path" , (PyCFunction)Py_point_in_path, METH_VARARGS, Py_point_in_path__doc__},
824+ {" points_in_path" , (PyCFunction)Py_points_in_path, METH_VARARGS, Py_points_in_path__doc__},
825+ {" point_on_path" , (PyCFunction)Py_point_on_path, METH_VARARGS, Py_point_on_path__doc__},
826+ {" points_on_path" , (PyCFunction)Py_points_on_path, METH_VARARGS, Py_points_on_path__doc__},
827+ {" get_path_extents" , (PyCFunction)Py_get_path_extents, METH_VARARGS, Py_get_path_extents__doc__},
828+ {" update_path_extents" , (PyCFunction)Py_update_path_extents, METH_VARARGS, Py_update_path_extents__doc__},
829+ {" get_path_collection_extents" , (PyCFunction)Py_get_path_collection_extents, METH_VARARGS, Py_get_path_collection_extents__doc__},
830+ {" point_in_path_collection" , (PyCFunction)Py_point_in_path_collection, METH_VARARGS, Py_point_in_path_collection__doc__},
831+ {" path_in_path" , (PyCFunction)Py_path_in_path, METH_VARARGS, Py_path_in_path__doc__},
832+ {" clip_path_to_rect" , (PyCFunction)Py_clip_path_to_rect, METH_VARARGS, Py_clip_path_to_rect__doc__},
833+ {" affine_transform" , (PyCFunction)Py_affine_transform, METH_VARARGS, Py_affine_transform__doc__},
834+ {" count_bboxes_overlapping_bbox" , (PyCFunction)Py_count_bboxes_overlapping_bbox, METH_VARARGS, Py_count_bboxes_overlapping_bbox__doc__},
835+ {" path_intersects_path" , (PyCFunction)Py_path_intersects_path, METH_VARARGS|METH_KEYWORDS, Py_path_intersects_path__doc__},
836+ {" path_intersects_rectangle" , (PyCFunction)Py_path_intersects_rectangle, METH_VARARGS|METH_KEYWORDS, Py_path_intersects_rectangle__doc__},
837+ {" convert_path_to_polygons" , (PyCFunction)Py_convert_path_to_polygons, METH_VARARGS|METH_KEYWORDS, Py_convert_path_to_polygons__doc__},
838+ {" cleanup_path" , (PyCFunction)Py_cleanup_path, METH_VARARGS, Py_cleanup_path__doc__},
839+ {" convert_to_string" , (PyCFunction)Py_convert_to_string, METH_VARARGS, Py_convert_to_string__doc__},
840+ {" is_sorted" , (PyCFunction)Py_is_sorted, METH_O, Py_is_sorted__doc__},
841+ {NULL }
842+ };
843+
844+ static struct PyModuleDef moduledef = {
845+ PyModuleDef_HEAD_INIT,
846+ " _path" ,
847+ NULL ,
848+ 0 ,
849+ module_functions,
850+ NULL ,
851+ NULL ,
852+ NULL ,
853+ NULL
854+ };
855+
856+ PyMODINIT_FUNC PyInit__path (void )
857+ {
858+ PyObject *m;
859+ m = PyModule_Create (&moduledef);
862860
863- if (m == NULL ) {
864- return NULL ;
865- }
861+ if (m == NULL ) {
862+ return NULL ;
863+ }
866864
867- import_array ();
865+ import_array ();
868866
869- return m;
870- }
867+ return m;
871868}
0 commit comments