@@ -49,7 +49,6 @@ import_pygame_surface(void)
4949{
5050}
5151
52-
5352void
5453import_pygame_window (void )
5554{
@@ -75,7 +74,6 @@ import_pygame_freetype(void)
7574{
7675}
7776
78-
7977void
8078import_pygame_bufferproxy (void )
8179{
@@ -115,8 +113,6 @@ import_pygame_pixelarray(void)
115113{
116114}
117115
118-
119-
120116PyMODINIT_FUNC
121117PyInit_base (void );
122118PyMODINIT_FUNC
@@ -232,7 +228,8 @@ load_submodule(const char *parent, PyObject *mod, const char *alias)
232228{
233229 char fqn [1024 ];
234230 if (!mod ) {
235- snprintf (fqn , sizeof (fqn ), "ERROR: PyInit_%s failed for %s.%s" , alias , parent , alias );
231+ snprintf (fqn , sizeof (fqn ), "ERROR: PyInit_%s failed for %s.%s" , alias ,
232+ parent , alias );
236233 puts (fqn );
237234 PyErr_Print ();
238235 PyErr_Clear ();
@@ -244,9 +241,11 @@ load_submodule(const char *parent, PyObject *mod, const char *alias)
244241
245242 PyObject * pmod = PyDict_GetItemString (modules , parent );
246243 if (!pmod ) {
247- snprintf (fqn , sizeof (fqn ), "ERROR: Parent %s not found for %s.%s" , parent , parent , alias );
244+ snprintf (fqn , sizeof (fqn ), "ERROR: Parent %s not found for %s.%s" ,
245+ parent , parent , alias );
248246 puts (fqn );
249- } else {
247+ }
248+ else {
250249 PyDict_SetItemString (modules , fqn , mod );
251250 PyDict_SetItemString (PyModule_GetDict (mod ), "__name__" ,
252251 PyUnicode_FromString (fqn ));
@@ -262,7 +261,7 @@ load_submodule_mphase(const char *parent, PyObject *mdef, PyObject *spec,
262261{
263262 char fqn [1024 ];
264263 snprintf (fqn , sizeof (fqn ), "%s.%s" , parent , alias );
265- puts (fqn );
264+ puts (fqn );
266265 PyObject * modules = PyImport_GetModuleDict ();
267266
268267 Py_DECREF (PyObject_GetAttrString (spec , "name" ));
@@ -293,7 +292,7 @@ puts(fqn);
293292static PyObject *
294293mod_pygame_import_cython (PyObject * self , PyObject * spec )
295294{
296- #if 1 // PY_VERSION_HEX <= 0x030C0000
295+ #if 1 // PY_VERSION_HEX <= 0x030C0000
297296
298297 load_submodule_mphase ("pygame._sdl2" , PyInit_sdl2 (), spec , "sdl2" );
299298
@@ -372,14 +371,12 @@ PyInit_pygame_static()
372371 // base, event
373372 load_submodule ("pygame" , PyInit_pg_time (), "time" );
374373
375-
376374 load_submodule ("pygame" , PyInit_transform (), "transform" );
377375 load_submodule ("pygame" , PyInit_draw (), "draw" );
378376
379377 load_submodule ("pygame" , PyInit_mask (), "mask" );
380378 load_submodule ("pygame" , PyInit_mouse (), "mouse" );
381379
382-
383380 load_submodule ("pygame" , PyInit_pg_mixer (), "mixer" );
384381 load_submodule ("pygame.mixer" , PyInit_mixer_music (), "music" );
385382
@@ -395,7 +392,7 @@ PyInit_pygame_static()
395392 // base, color, rect, bufferproxy, surflock, surface
396393 load_submodule ("pygame" , PyInit_gfxdraw (), "gfxdraw" );
397394
398- //load_submodule("pygame", PyInit_system(), "system");
395+ // load_submodule("pygame", PyInit_system(), "system");
399396
400397 return PyModule_Create (& mod_pygame_static );
401398}
0 commit comments