From: Mark Wooding Date: Tue, 26 May 2015 13:06:36 +0000 (+0100) Subject: algorithms.py, rand.c: Move constant definitions and so on to `rand.c'. X-Git-Tag: 1.1.0~2^2~4 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/78f06cd383e93224abc93b41e76e79d4fdc1286c algorithms.py, rand.c: Move constant definitions and so on to `rand.c'. --- 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;