From 78f06cd383e93224abc93b41e76e79d4fdc1286c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 26 May 2015 14:06:36 +0100 Subject: [PATCH] algorithms.py, rand.c: Move constant definitions and so on to `rand.c'. --- algorithms.py | 2 -- rand.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithms.py b/algorithms.py index ad41f69..320d060 100644 --- a/algorithms.py +++ b/algorithms.py @@ -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 --- 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; -- 2.11.0