Since we'll be including ks_tables.h in a single file, we don't need to
make parts conditional. A header guard has been added just to be safe.
}
z = best_z;
- printf("#ifdef NEEDKTABLE\n");
+ printf("#ifndef KS_TABLES_H\n");
+ printf("#define KS_TABLES_H\n\n");
printf("const unsigned char _XkeyTable[] = {\n");
printf("0,\n");
k = 1;
}
printf("\n");
printf("};\n");
- printf("#endif /* NEEDKTABLE */\n");
best_max_rehash = ksnum;
num_found = 0;
skip2: ;
}
printf("\n");
- printf("#ifdef NEEDVTABLE\n");
printf("#define VTABLESIZE %d\n", z);
printf("#define VMAXHASH %d\n", best_max_rehash + 1);
printf("\n");
}
printf("\n");
printf("};\n");
- printf("#endif /* NEEDVTABLE */\n");
+ printf("\n#endif /* KS_TABLES_H */\n");
exit(0);
}