chiark / gitweb /
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 ad41f69b6d42470c6511640d39db85e1d2aa494d..320d060f308e4ad7caa24bb5a4be89ca11aafcc3 100644 (file)
@@ -59,8 +59,6 @@ print '#define PRPS(_) \\'
 for i in prps:
   print '\t_(%s, %s) \\' % (i.upper(), i)
 print '\t/* end */'
 for i in prps:
   print '\t_(%s, %s) \\' % (i.upper(), i)
 print '\t/* end */'
-
-print '#define RNGF_INT 1u'
 print
 
 print '#define RNGS(_) \\'
 print
 
 print '#define RNGS(_) \\'
diff --git a/rand.c b/rand.c
index 6e7d03ef19c2293a75dff51da21510a8eec56898..1c008b726aac434448c218d782643cd2bc250ff9 100644 (file)
--- a/rand.c
+++ b/rand.c
@@ -588,6 +588,8 @@ typedef struct gccrand_info {
   gcrand_func *func;
 } gccrand_info;
 
   gcrand_func *func;
 } gccrand_info;
 
+#define RNGF_INT 1u
+
 typedef struct gccrand_pyobj {
   PyHeapTypeObject ty;
   const gccrand_info *info;
 typedef struct gccrand_pyobj {
   PyHeapTypeObject ty;
   const gccrand_info *info;