algorithms.py, rand.c: Move constant definitions and so on to `rand.c'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 26 May 2015 13:06:36 +0000 (14:06 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 26 May 2015 15:04:46 +0000 (16:04 +0100)
algorithms.py
rand.c

index ad41f69..320d060 100644 (file)
@@ -59,8 +59,6 @@ print '#define PRPS(_) \\'
 for i in prps:
   print '\t_(%s, %s) \\' % (i.upper(), i)
 print '\t/* end */'
-
-print '#define RNGF_INT 1u'
 print
 
 print '#define RNGS(_) \\'
diff --git a/rand.c b/rand.c
index 6e7d03e..1c008b7 100644 (file)
--- a/rand.c
+++ b/rand.c
@@ -588,6 +588,8 @@ typedef struct gccrand_info {
   gcrand_func *func;
 } gccrand_info;
 
+#define RNGF_INT 1u
+
 typedef struct gccrand_pyobj {
   PyHeapTypeObject ty;
   const gccrand_info *info;