Moved modules methods declarations into foo-mod.c: pygtk breaks it in 2.10

master
Yevgen Muntyan 2006-05-13 16:07:08 -05:00
parent 10106bfe91
commit 105a9e4077
5 changed files with 20 additions and 17 deletions

View File

@ -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

View File

@ -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.";

View File

@ -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.";

View File

@ -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.";

View File

@ -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_)