Use @DA_LAST@ to determine @MAXPRIME@, now that it exists.
authormdw <mdw>
Sun, 4 Mar 2001 13:08:10 +0000 (13:08 +0000)
committermdw <mdw>
Sun, 4 Mar 2001 13:08:10 +0000 (13:08 +0000)
genprimes.c

index 37e788c..2961621 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: genprimes.c,v 1.3 2000/08/15 21:41:58 mdw Exp $
+ * $Id: genprimes.c,v 1.4 2001/03/04 13:08:10 mdw Exp $
  *
  * Generate prime number table
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: genprimes.c,v $
+ * Revision 1.4  2001/03/04 13:08:10  mdw
+ * Use @DA_LAST@ to determine @MAXPRIME@, now that it exists.
+ *
  * Revision 1.3  2000/08/15 21:41:58  mdw
  * Create a new type for the small primes table elements.
  *
@@ -156,7 +159,7 @@ extern smallprime %s[];\n\
 ",
            d.buf, d.buf,
            (unsigned long)DA_LEN(&p),
-           DA(&p)[DA_LEN(&p) - 1],
+           DA_LAST(&p),
            type, name);
     dstr_destroy(&d);
     if (fclose(fp) == EOF) {