diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-06-25 06:46:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-06-25 06:46:04 (GMT) |
commit | 3bf12eda58a8d04ac3d2d6754a480de4c262570d (patch) | |
tree | 010fc97ad481adc00ac4722d77093f469096638b /plugins/pychrysa/pychrysa.h | |
parent | 11395d684736467fb010b93b0eaeefcc06bf0f5e (diff) |
Built the first steps to upgrade to Python3.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@379 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/pychrysa.h')
-rw-r--r-- | plugins/pychrysa/pychrysa.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/plugins/pychrysa/pychrysa.h b/plugins/pychrysa/pychrysa.h index 5897abe..0fdc074 100644 --- a/plugins/pychrysa/pychrysa.h +++ b/plugins/pychrysa/pychrysa.h @@ -25,7 +25,23 @@ #define _PLUGINS_PYCHRYSA_H +/** + * Note: + * Since Python may define some pre-processor definitions which affect the standard headers + * on some systems, you must include Python.h before any standard headers are included. + * + * cf. https://docs.python.org/3.4/c-api/intro.html + */ #include <Python.h> + + + + + + +#if 0 + + #include <glib-object.h> #include <stdbool.h> @@ -50,7 +66,8 @@ PluginAction get_plugin_action(const GPluginModule *); #if PY_VERSION_HEX >= 0x03000000 /* Point d'entrée pour l'initialisation de Python. */ -PyMODINIT_FUNC PyInit_pychrysa(void); +//PyMODINIT_FUNC PyInit_pychrysa(void); +PyMODINIT_FUNC initpychrysa(void); #else @@ -59,6 +76,14 @@ PyMODINIT_FUNC initpychrysa(void); #endif +#endif + + + + +/* Point d'entrée pour l'initialisation de Python. */ +PyMODINIT_FUNC PyInit_pychrysalide(void); + #endif /* _PLUGINS_PYCHRYSA_H */ |