Moved modules methods declarations into foo-mod.c: pygtk breaks it in 2.10
parent
10106bfe91
commit
105a9e4077
|
@ -19,10 +19,6 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
extern PyMethodDef _moo_utils_functions[];
|
||||
extern PyMethodDef _moo_term_functions[];
|
||||
extern PyMethodDef _moo_edit_functions[];
|
||||
extern PyMethodDef _moo_app_functions[];
|
||||
|
||||
gboolean _moo_pygtk_init (void);
|
||||
|
||||
|
@ -31,19 +27,6 @@ gboolean _moo_edit_mod_init (void);
|
|||
gboolean _moo_term_mod_init (void);
|
||||
gboolean _moo_app_mod_init (void);
|
||||
|
||||
void _moo_utils_register_classes (PyObject *dict);
|
||||
void _moo_utils_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
void _moo_edit_register_classes (PyObject *dict);
|
||||
void _moo_edit_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
void _moo_term_register_classes (PyObject *dict);
|
||||
void _moo_term_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
void _moo_app_register_classes (PyObject *dict);
|
||||
void _moo_app_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
@ -19,6 +19,11 @@
|
|||
#include "moopython/pygtk/mooapp-mod.h"
|
||||
|
||||
|
||||
void _moo_app_register_classes (PyObject *dict);
|
||||
void _moo_app_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
|
||||
extern PyMethodDef _moo_app_functions[];
|
||||
static char *moo_app_module_doc = (char*) "_moo_app module.";
|
||||
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#include "mooedit/mooplugin.h"
|
||||
|
||||
|
||||
void _moo_edit_register_classes (PyObject *dict);
|
||||
void _moo_edit_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
|
||||
extern PyMethodDef _moo_edit_functions[];
|
||||
static char *moo_edit_module_doc = (char*) "_moo_edit module.";
|
||||
|
||||
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#include "moopython/moopython-utils.h"
|
||||
|
||||
|
||||
void _moo_term_register_classes (PyObject *dict);
|
||||
void _moo_term_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
|
||||
extern PyMethodDef _moo_term_functions[];
|
||||
static char *moo_term_module_doc = (char*)"_moo_term module.";
|
||||
|
||||
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
#include "mooutils/moostock.h"
|
||||
|
||||
|
||||
void _moo_utils_register_classes (PyObject *dict);
|
||||
void _moo_utils_add_constants (PyObject *module,
|
||||
const char *strip_prefix);
|
||||
|
||||
extern PyMethodDef _moo_utils_functions[];
|
||||
static char *moo_utils_module_doc = (char*)"_moo_utils module.";
|
||||
|
||||
#define add_constant(mod_,name_,val_) PyModule_AddStringConstant (mod, (char*) name_, (char*) val_)
|
||||
|
|
Loading…
Reference in New Issue