2006-08-02 14:43:17 +00:00
|
|
|
diff -ur rrdtool-1.2.15.orig/bindings/python/rrdtoolmodule.c rrdtool-1.2.15/bindings/python/rrdtoolmodule.c
|
|
|
|
--- rrdtool-1.2.15.orig/bindings/python/rrdtoolmodule.c 2006-07-14 08:11:26.000000000 -0400
|
|
|
|
+++ rrdtool-1.2.15/bindings/python/rrdtoolmodule.c 2006-08-02 10:20:38.000000000 -0400
|
|
|
|
@@ -48,8 +48,7 @@
|
2006-08-01 19:43:49 +00:00
|
|
|
extern int opterr;
|
|
|
|
|
|
|
|
/* forward declaration to keep compiler happy */
|
|
|
|
-/*void initrrdtool(void);*/
|
|
|
|
-void initrrdtoolmodule(void);
|
|
|
|
+void initrrdtool(void);
|
|
|
|
|
|
|
|
static int
|
|
|
|
create_args(char *command, PyObject *args, int *argc, char ***argv)
|
2006-08-02 14:43:17 +00:00
|
|
|
@@ -518,19 +517,18 @@
|
2006-08-01 19:43:49 +00:00
|
|
|
|
|
|
|
/* Initialization function for the module */
|
|
|
|
void
|
|
|
|
-/*initrrdtool(void)*/
|
|
|
|
-initrrdtoolmodule(void)
|
|
|
|
+initrrdtool(void)
|
|
|
|
{
|
|
|
|
PyObject *m, *d, *t;
|
|
|
|
|
|
|
|
/* Create the module and add the functions */
|
|
|
|
- m = Py_InitModule("rrdtoolmodule", _rrdtool_methods);
|
|
|
|
+ m = Py_InitModule("rrdtool", _rrdtool_methods);
|
|
|
|
|
|
|
|
/* Add some symbolic constants to the module */
|
|
|
|
d = PyModule_GetDict(m);
|
2006-08-02 14:43:17 +00:00
|
|
|
|
|
|
|
SET_STRCONSTANT(d, __version__);
|
|
|
|
- ErrorObject = PyErr_NewException("rrdtoolmodule.error", NULL, NULL);
|
|
|
|
+ ErrorObject = PyErr_NewException("rrdtool.error", NULL, NULL);
|
|
|
|
PyDict_SetItemString(d, "error", ErrorObject);
|
|
|
|
|
|
|
|
/* Check for errors */
|