forked from igraph/python-igraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyhelpers.h
More file actions
40 lines (31 loc) · 1.46 KB
/
Copy pathpyhelpers.h
File metadata and controls
40 lines (31 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* vim:set ts=4 sw=2 sts=2 et: */
/*
IGraph library - Python interface.
Copyright (C) 2006-2011 Tamas Nepusz <ntamas@gmail.com>
5 Avenue Road, Staines, Middlesex, TW18 3AW, United Kingdom
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
*/
#ifndef PYTHON_HELPERS_H
#define PYTHON_HELPERS_H
#include <Python.h>
PyObject* igraphmodule_PyList_NewFill(Py_ssize_t len, PyObject* item);
PyObject* igraphmodule_PyList_Zeroes(Py_ssize_t len);
char* igraphmodule_PyObject_ConvertToCString(PyObject* string);
PyObject* igraphmodule_PyRange_create(Py_ssize_t start, Py_ssize_t stop, Py_ssize_t step);
long igraphmodule_Py_HashPointer(void *p);
#define PY_IGRAPH_DEPRECATED(msg) \
PyErr_WarnEx(PyExc_DeprecationWarning, (msg), 1)
#define PY_IGRAPH_WARN(msg) \
PyErr_WarnEx(PyExc_RuntimeWarning, (msg), 1)
#endif