Commits

illume committed 94e2484

symbian branch merging

  • Participants
  • Parent commits e4bef2f

Comments (0)

Files changed (2)

 #if PY3
     module = PyModule_Create (&_module);
 #else
-    module = Py_InitModule3 (MIDOREFIX "base", _base_methods, DOC_PYGAME);
+    module = Py_InitModule3 (MODPREFIX "base", _base_methods, DOC_PYGAME);
 #endif
     if (module == NULL) {
         MODINIT_ERROR;

File src/fastevent.c

     PyObject *module, *eventmodule, *dict;
     int ecode;
 
-
 #if PY3
     static struct PyModuleDef _module = {
         PyModuleDef_HEAD_INIT,
     */
     import_pygame_base ();
     if (PyErr_Occurred ()) {
-	return;
+	MODINIT_ERROR;
     }
     import_pygame_event ();
     if (PyErr_Occurred ()) {
-	return;
+	MODINIT_ERROR;
     }
 
     /* create the module */
 #if PY3
     module = PyModule_Create (&_module);
 #else
-    module = Py_InitModule3 ( MODPREFIX "fastevent", fastevent_builtins,
+    module = Py_InitModule3 (MODPREFIX "fastevent", 
+                             _fastevent_methods,
                              doc_fastevent_MODULE);
 #endif
     if (module == NULL) {
     dict = PyModule_GetDict (module);
 
     /* add the event module functions if available */
-    eventmodule = PyImport_ImportModule (IMPPREFIX "event");
+    eventmodule = PyImport_ImportModule (IMPPREFIX "pygame.event");
     if (eventmodule)
     {
         char *NAMES[] = {"Event", "event_name", NULL};