math/mpreduce.h: Missing include files.
[u/mdw/catacomb] / symm / blowfish-mktab.c
index 752fb32..72b4fc7 100644 (file)
@@ -145,20 +145,17 @@ int main(void)
  * Blowfish initial key table [generated]\n\
  */\n\
 \n\
-#ifndef CATACOMB_BLOWFISH_TAB_H\n\
-#define CATACOMB_BLOWFISH_TAB_H\n\
+#include \"blowfish.h\"\n\
 \n\
-#define BLOWFISH_IKEY {                                                        \\\n\
+const blowfish_ctx blowfish_ikey = {\n\
   { ", stdout);
 
   for (i = 0; i < 18; i++) {
     printf("0x%08x", *d++);
     if (i == 17)
-      fputs(" },                                               \\\n\
-                                                                       \\\n\
-  { ", stdout);
+      fputs(" },\n\n  { ", stdout);
     else if (i % 4 == 3)
-      fputs(",                 \\\n    ", stdout);
+      fputs(",\n    ", stdout);
     else
       fputs(", ", stdout);
   }
@@ -168,13 +165,11 @@ int main(void)
     printf("0x%08x", *d++);
     if (i == 255) {
       if (j == 3)
-       fputs(" }                       \\\n}\n\n#endif\n", stdout);
+       fputs(" }\n};\n", stdout);
       else
-       fputs(" },                      \\\n\
-                                                                       \\\n\
-  { ", stdout);
+       fputs(" },\n\n  { ", stdout);
     } else if (i % 4 == 3)
-      fputs(",                 \\\n    ", stdout);
+      fputs(",\n    ", stdout);
     else
       fputs(", ", stdout);
     }