summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f40fe7f)
raw | patch | inline | side by side (parent: f40fe7f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 10 May 2005 20:19:55 +0000 (20:19 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 10 May 2005 20:19:55 +0000 (20:19 +0000) |
program/bindings/python/rrdtoolmodule.c | patch | blob | history |
index 3413be7e8a349825ed86433f24f5b83fd3bb6312..c1ff42f8b3ec6cb2bc36df028b225b6211028471 100644 (file)
#include "rrd_extra.h"
static PyObject *ErrorObject;
-extern int optind, opterr;
+extern int optind;
+extern int opterr;
+
+/* forward declaration to keep compiler happy */
+void initrrdtool(void);
static int
create_args(char *command, PyObject *args, int *argc, char ***argv)
/* Return :
((start, end, step), (name1, name2, ...), [(data1, data2, ..), ...]) */
PyObject *range_tup, *dsnam_tup, *data_list, *t;
- int i, j, row;
+ unsigned long i, j, row;
rrd_value_t dv;
row = ((end - start) / step + 1);
rrd_t rrd;
FILE *in_file;
char *filename;
- int i, j;
+ unsigned long i, j;
if (! PyArg_ParseTuple(args, "s:info", &filename))
return NULL;
/* List of methods defined in the module */
#define meth(name, func, doc) {name, (PyCFunction)func, METH_VARARGS, doc}
-static struct PyMethodDef _rrdtool_methods[] = {
+static PyMethodDef _rrdtool_methods[] = {
meth("create", PyRRD_create, PyRRD_create__doc__),
meth("update", PyRRD_update, PyRRD_update__doc__),
meth("fetch", PyRRD_fetch, PyRRD_fetch__doc__),
meth("last", PyRRD_last, PyRRD_last__doc__),
meth("resize", PyRRD_resize, PyRRD_resize__doc__),
meth("info", PyRRD_info, PyRRD_info__doc__),
- {NULL, NULL},
+ {NULL, NULL}
};
#define SET_INTCONSTANT(dict, value) \