X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..23bbea75793621e6b21fbb13c00d8223113cf7b5:/symm/mars-mktab.c diff --git a/symm/mars-mktab.c b/symm/mars-mktab.c index 750f727..d43f7c0 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);