Difference for plugins/cfpython/cfpython.c from version 1.34 to 1.35


version 1.34 version 1.35
Line 123
 
Line 123
 static PyObject* registerGEvent(PyObject* self, PyObject* args);  static PyObject* registerGEvent(PyObject* self, PyObject* args);
 static PyObject* unregisterGEvent(PyObject* self, PyObject* args);  static PyObject* unregisterGEvent(PyObject* self, PyObject* args);
 static PyObject* CFPythonError;  static PyObject* CFPythonError;
   static PyObject* getTime(PyObject* self, PyObject* args);
   
 /** Set up an Python exception object. */  /** Set up an Python exception object. */
 static void set_exception(const char *fmt, ...)  static void set_exception(const char *fmt, ...)
Line 182
 
Line 183
     {"RegisterCommand",     registerCommand,        METH_VARARGS},      {"RegisterCommand",     registerCommand,        METH_VARARGS},
     {"RegisterGlobalEvent", registerGEvent,         METH_VARARGS},      {"RegisterGlobalEvent", registerGEvent,         METH_VARARGS},
     {"UnregisterGlobalEvent",unregisterGEvent,      METH_VARARGS},      {"UnregisterGlobalEvent",unregisterGEvent,      METH_VARARGS},
       {"GetTime",             getTime,                METH_VARARGS},
     {NULL, NULL, 0}      {NULL, NULL, 0}
 };  };
   
Line 632
 
Line 634
     return Py_None;      return Py_None;
 }  }
   
   static PyObject* getTime(PyObject* self, PyObject* args)
   {
       PyObject* list;
       partylist* party;
       timeofday_t tod;
   
       if (!PyArg_ParseTuple(args, "", NULL))
           return NULL;
   
       cf_get_time(&tod);
   
       list = PyList_New(0);
       PyList_Append(list, Py_BuildValue("i",tod.year));
       PyList_Append(list, Py_BuildValue("i",tod.month));
       PyList_Append(list, Py_BuildValue("i",tod.day));
       PyList_Append(list, Py_BuildValue("i",tod.hour));
       PyList_Append(list, Py_BuildValue("i",tod.minute));
       PyList_Append(list, Py_BuildValue("i",tod.dayofweek));
       PyList_Append(list, Py_BuildValue("i",tod.weekofmonth));
       PyList_Append(list, Py_BuildValue("i",tod.season));
   
       return list;
       }
   
 void initContextStack()  void initContextStack()
 {  {
     current_context = NULL;      current_context = NULL;


Legend:
line(s) removed in v.1.34 
line(s) changed
 line(s) added in v.1.35

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