~vcs-imports-ii/gnubg/trunk

2279 by thyssen
python support
1
/*
5158 by plm
Fix bug #36201
2
 * gnubgmodule.h
2279 by thyssen
python support
3
 *
4
 * by Joern Thyssen <jth@gnubg.org>, 2003
5
 *
6
 * This program is free software; you can redistribute it and/or modify
3944 by ace
*** empty log message ***
7
 * it under the terms of version 3 or later of the GNU General Public License as
2279 by thyssen
python support
8
 * published by the Free Software Foundation.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 *
5792 by mdpetch
Support compiling with Python 3.x and modify Python modules to support 2.x and 3.x
19
 * $Id: gnubgmodule.h,v 1.31 2014/08/07 21:51:48 mdpetch Exp $
2279 by thyssen
python support
20
 */
21
5158 by plm
Fix bug #36201
22
#ifndef GNUBGMODULE_H
23
#define GNUBGMODULE_H
2279 by thyssen
python support
24
4364 by c_anthon
move database funktions to dbprovider.c
25
#if USE_PYTHON
5477 by mdpetch
Cleanup warnings
26
4364 by c_anthon
move database funktions to dbprovider.c
27
#ifdef WIN32
28
/* needed for mingw inclusion of Python.h */
29
#include <stdint.h>
30
#endif
5571 by plm
Remove duplicate prototype
31
4364 by c_anthon
move database funktions to dbprovider.c
32
#include <Python.h>
5792 by mdpetch
Support compiling with Python 3.x and modify Python modules to support 2.x and 3.x
33
#include "pylocdefs.h"
5791 by mdpetch
Support compiling with Python 3.x and modify Python modules to support 2.x and 3.x
34
5477 by mdpetch
Cleanup warnings
35
extern PyObject *PythonGnubgModule(void);
36
5490 by mdpetch
Fix stack issues that cause AVX Win32 builds to segfault when optimizations are used
37
#include "lib/simd.h"
5357 by mdpetch
Cleanup Python prototypes, header files, and ifdefs
38
39
#include <glib.h>
5193 by mdpetch
Stack alignment issue with Win32/GCC builds when Python calls functions
40
4382 by c_anthon
fix minor problems detected by valgrind
41
extern void PythonInitialise(char *argv0);
3985 by c_anthon
make sure that files are either static or declared in some header
42
extern void PythonShutdown(void);
4090 by Superfly_Jon
Move relational code out of database.py and into relational.c
43
extern void PythonRun(const char *sz);
5441 by mdpetch
Allow a user Python startup script (gnubg_user.py) to be loaded at startup AFTER gnubg.py.
44
extern int LoadPythonFile(const char *sz, int fQuiet);
5379 by mdpetch
Standardized the code formatting with indent -kr -l120 -fc1 -sc -nut -psl
45
extern gint python_run_file(gpointer file);
5791 by mdpetch
Support compiling with Python 3.x and modify Python modules to support 2.x and 3.x
46
extern MOD_INIT(gnubg);
47
48
#endif                          /* USE_PYTHON */
2301 by hb
if-guard python extensions
49
5379 by mdpetch
Standardized the code formatting with indent -kr -l120 -fc1 -sc -nut -psl
50
#endif                          /* GNUBGMODULE_H */