X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..e5b61a8dec3586f96d25bd3ef454176526ff0f69:/symm/mars-mktab.c diff --git a/symm/mars-mktab.c b/symm/mars-mktab.c index 750f727a..d43f7c07 100644 --- a/symm/mars-mktab.c +++ b/symm/mars-mktab.c @@ -283,27 +283,24 @@ int main(void) * MARS tables [generated]\n\ */\n\ \n\ -#ifndef CATACOMB_MARS_TAB_H\n\ -#define CATACOMB_MARS_TAB_H\n\ +#include \n\ "); fputs("\ /* --- The S-box --- */\n\ \n\ -#define MARS_S { \\\n\ +const uint32 mars_s[] = {\n\ ", stdout); for (i = 0; i < 512; i++) { printf("0x%08lx", (unsigned long)s[i]); if (i == 511) - fputs(" \\\n}\n\n", stdout); + fputs("\n};\n", stdout); else if (i % 4 == 3) - fputs(", \\\n ", stdout); + fputs(",\n ", stdout); else fputs(", ", stdout); } - puts("#endif"); - if (fclose(stdout)) { fprintf(stderr, "error writing data\n"); exit(EXIT_FAILURE);