blob: 2cb6587d4c0d1f6420681d06858f5945bea66d6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef BASIC_CHILLMODULE_HH
#define BASIC_CHILLMODULE_HH
// TODO Python.h defines these and something else does too
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
#include <Python.h>
// a C routine that will be called from python
//static PyObject * chill_print_code(PyObject *self, PyObject *args);
//static PyMethodDef ChillMethods[] ;
void finalize_loop(int loop_num_start, int loop_num_end);
int get_loop_num_start();
int get_loop_num_end();
PyMODINIT_FUNC initchill() ; // pass C methods to python
#endif
|