Commits

Anonymous committed dfabe36

The rest of the symbian ported sources

Comments (0)

Files changed (6)

     static void* c_api[PYGAMEAPI_RWOBJECT_NUMSLOTS];
 
     /* Create the module and add the functions */
-    module = Py_InitModule3 ("rwobject", rwobject__builtins__,
+    module = Py_InitModule3 (MODPREFIX "rwobject", rwobject__builtins__,
                              "SDL_RWops support");
     dict = PyModule_GetDict (module);
 
     PyObject *mod;
 
     /* create the module */
-    mod = Py_InitModule3 ("scrap", scrap_builtins, NULL);
+    mod = Py_InitModule3 ( MODPREFIX "scrap", scrap_builtins, NULL);
 
     /*imported needed apis*/
     import_pygame_base ();
         return;
     
     /* create the module */
-    module = Py_InitModule3 ("surface", surface_builtins, DOC_PYGAMESURFACE);
+    module = Py_InitModule3 (MODPREFIX "surface", surface_builtins, DOC_PYGAMESURFACE);
     dict = PyModule_GetDict (module);
 
     PyDict_SetItemString (dict, "SurfaceType", (PyObject *) &PySurface_Type);
     import_pygame_bufferproxy();
 
     /* import the surflock module manually */
-    lockmodule = PyImport_ImportModule ("pygame.surflock");
+    lockmodule = PyImport_ImportModule (MODPREFIX "surflock");
     if (lockmodule != NULL)
     {
         PyObject *_dict = PyModule_GetDict (lockmodule);
     0,                          /* tp_init */
     0,                          /* tp_alloc */
     0,                          /* tp_new */
+#ifndef __SYMBIAN32__
     0,                          /* tp_free */
     0,                          /* tp_is_gc */
     0,                          /* tp_bases */
     0,                          /* tp_subclasses */
     0,                          /* tp_weaklist */
     0                           /* tp_del */
+#endif    
 };
 
 /* lifetimelock object internals */
     PyType_Init (PyLifetimeLock_Type);
 
     /* Create the module and add the functions */
-    module = Py_InitModule3 ("surflock", surflock__builtins__,
+    module = Py_InitModule3 (MODPREFIX "surflock", surflock__builtins__,
                              "Surface locking support");
     dict = PyModule_GetDict (module);
     
 };
 
 PYGAME_EXPORT
-void inittime (void)
+#ifdef __SYMBIAN32__
+void initpygame_time (void)
+#else
+void inittime (void)    
+#endif    
 {
     PyObject *module;
     
     PyType_Init (PyClock_Type);
     
     /* create the module */
-    module = Py_InitModule3 ("time", time_builtins, DOC_PYGAMETIME);
+    module = Py_InitModule3 (MODPREFIX "time", time_builtins, DOC_PYGAMETIME);
     
     /*need to import base module, just so SDL is happy*/
     import_pygame_base ();
 void inittransform (void)
 {
     PyObject *module;
-    module = Py_InitModule3 ("transform", transform_builtins,
+    module = Py_InitModule3 (MODPREFIX "transform", transform_builtins,
                              DOC_PYGAMETRANSFORM);
 
     /*imported needed apis*/