~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*.c: Split the constant definitions into the various submodules.
[catacomb-python]
/
mp.c
diff --git
a/mp.c
b/mp.c
index
fbafcee
..
2f8594d
100644
(file)
--- a/
mp.c
+++ b/
mp.c
@@
-2504,6
+2504,11
@@
static const PyTypeObject gfn_pytype_skel = {
/*----- Glue --------------------------------------------------------------*/
/*----- Glue --------------------------------------------------------------*/
+static const struct nameval consts[] = {
+ CONST(MPW_MAX),
+ { 0 }
+};
+
void mp_pyinit(void)
{
INITTYPE(mp, root);
void mp_pyinit(void)
{
INITTYPE(mp, root);
@@
-2528,6
+2533,7
@@
void mp_pyinsert(PyObject *mod)
INSERT("GF", gf_pytype);
INSERT("GFReduce", gfreduce_pytype);
INSERT("GFN", gfn_pytype);
INSERT("GF", gf_pytype);
INSERT("GFReduce", gfreduce_pytype);
INSERT("GFN", gfn_pytype);
+ setconstants(mod, consts);
}
/*----- That's all, folks -------------------------------------------------*/
}
/*----- That's all, folks -------------------------------------------------*/