]> mj.ucw.cz Git - libucw.git/blobdiff - lib/prime.c
dmalloc and efence work again (ported from rel-2.1 branch).
[libucw.git] / lib / prime.c
index fe47ecd3472290ab87203f496e9adcd049e65698..56bcc87ef050573467861b416523a150718fdc3c 100644 (file)
@@ -1,13 +1,10 @@
 /*
  *     Sherlock Library -- Prime Number Tests
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997 Martin Mares <mj@ucw.cz>
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "lib.h"
+#include "lib/lib.h"
 
 static int                             /* Sequential search */
 __isprime(uns x)                       /* We know x != 2 && x != 3 */
@@ -61,7 +58,9 @@ nextprime(uns x)                      /* Returns some prime greater than X, usually the next one or
     }
 }
 
-#ifdef PRIME_DEBUG
+#ifdef TEST
+
+#include <stdio.h>
 
 int
 main(int argc, char **argv)