Difference for plugins/cfpython/cfpython.c from version 1.15 to 1.16


version 1.15 version 1.16
Line 670
 
Line 670
     Crossfire_MapType.tp_new    = PyType_GenericNew;      Crossfire_MapType.tp_new    = PyType_GenericNew;
     Crossfire_PlayerType.tp_new = PyType_GenericNew;      Crossfire_PlayerType.tp_new = PyType_GenericNew;
  Crossfire_ArchetypeType.tp_new = PyType_GenericNew;   Crossfire_ArchetypeType.tp_new = PyType_GenericNew;
    Crossfire_PartyType.tp_new = PyType_GenericNew;
     PyType_Ready(&Crossfire_ObjectType);      PyType_Ready(&Crossfire_ObjectType);
     PyType_Ready(&Crossfire_MapType);      PyType_Ready(&Crossfire_MapType);
     PyType_Ready(&Crossfire_PlayerType);      PyType_Ready(&Crossfire_PlayerType);
  PyType_Ready(&Crossfire_ArchetypeType);   PyType_Ready(&Crossfire_ArchetypeType);
    PyType_Ready(&Crossfire_PartyType);
   
     m = Py_InitModule("Crossfire", CFPythonMethods);      m = Py_InitModule("Crossfire", CFPythonMethods);
     d = PyModule_GetDict(m);      d = PyModule_GetDict(m);
Line 681
 
Line 683
     Py_INCREF(&Crossfire_MapType);      Py_INCREF(&Crossfire_MapType);
     Py_INCREF(&Crossfire_PlayerType);      Py_INCREF(&Crossfire_PlayerType);
  Py_INCREF(&Crossfire_ArchetypeType);   Py_INCREF(&Crossfire_ArchetypeType);
    Py_INCREF(&Crossfire_PartyType);
   
     PyModule_AddObject(m, "Object", (PyObject*)&Crossfire_ObjectType);      PyModule_AddObject(m, "Object", (PyObject*)&Crossfire_ObjectType);
     PyModule_AddObject(m, "Map", (PyObject*)&Crossfire_MapType);      PyModule_AddObject(m, "Map", (PyObject*)&Crossfire_MapType);
     PyModule_AddObject(m, "Player", (PyObject*)&Crossfire_PlayerType);      PyModule_AddObject(m, "Player", (PyObject*)&Crossfire_PlayerType);
  PyModule_AddObject(m, "Archetype", (PyObject*)&Crossfire_ArchetypeType);   PyModule_AddObject(m, "Archetype", (PyObject*)&Crossfire_ArchetypeType);
    PyModule_AddObject(m, "Party", (PyObject*)&Crossfire_PartyType);
   
     CFPythonError = PyErr_NewException("Crossfire.error",NULL,NULL);      CFPythonError = PyErr_NewException("Crossfire.error",NULL,NULL);
     PyDict_SetItemString(d,"error",CFPythonError);      PyDict_SetItemString(d,"error",CFPythonError);


Legend:
line(s) removed in v.1.15 
line(s) changed
 line(s) added in v.1.16

File made using version 1.98 of cvs2html by leaf at 2011-07-21 16:59