~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]
/
rand.c
diff --git
a/rand.c
b/rand.c
index
ef4418d
..
2f69336
100644
(file)
--- a/
rand.c
+++ b/
rand.c
@@
-1489,6
+1489,11
@@
static const PyTypeObject bbspriv_pytype_skel = {
/*----- Global stuff ------------------------------------------------------*/
/*----- Global stuff ------------------------------------------------------*/
+static const struct nameval consts[] = {
+ CONST(RAND_IBITS),
+ { 0 }
+};
+
void rand_pyinit(void)
{
INITTYPE(grand, root);
void rand_pyinit(void)
{
INITTYPE(grand, root);
@@
-1530,6
+1535,7
@@
void rand_pyinsert(PyObject *mod)
gccrands_dict = gccrands(); Py_INCREF(gccrands_dict);
INSERT("gccrands", gccrands_dict);
INSERT("rand", rand_pyobj);
gccrands_dict = gccrands(); Py_INCREF(gccrands_dict);
INSERT("gccrands", gccrands_dict);
INSERT("rand", rand_pyobj);
+ setconstants(mod, consts);
}
/*----- That's all, folks -------------------------------------------------*/
}
/*----- That's all, folks -------------------------------------------------*/