X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/0521f473fe8624322a4956516fcb5335b34fa080..6f444bda1b7deb31cf7fb2395cb0993c3e3b8c42:/crc-mktab.c diff --git a/crc-mktab.c b/crc-mktab.c index 2439e20..1833e0e 100644 --- a/crc-mktab.c +++ b/crc-mktab.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: crc-mktab.c,v 1.4 2001/03/10 10:59:21 mdw Exp $ + * $Id: crc-mktab.c,v 1.5 2003/12/15 20:53:47 mdw Exp $ * * Build CRC tables * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: crc-mktab.c,v $ + * Revision 1.5 2003/12/15 20:53:47 mdw + * Add global unihash table; use universal hashing instead of CRC. + * * Revision 1.4 2001/03/10 10:59:21 mdw * Fix generating tables where the chunk size is longer than the * polynomial. Also fix output formatting when there aren't enough entries @@ -99,7 +102,8 @@ static void version(FILE *fp) static void usage(FILE *fp) { - pquis(fp, "Usage: $ [-cr] [-g guard] [-o file] [-b bits] [-p poly]\n"); + pquis(fp, "Usage: $ [-cr] [-o FILE] [-g GUARD] [-s SYM] [-i HEADER]\n\ + [-t TYPE] [-b BITS] [-B BITS] [-p POLY]\n"); } static void help(FILE *fp) @@ -121,7 +125,8 @@ of options are provided:\n\ -p, --polynomial=POLY Use the POLY as the dividing polynomial.\n\ -r, --reverse Create a `reversed' CRC table.\n\ -g, --guard=GUARD Use GUARD as a multiple-inclusion guard constant.\n\ --s, --symbol=SYM Name the generated table SYM\n\ +-i, --include=HEADER Include HEADER at top of C source file.\n\ +-s, --symbol=SYM Name the generated table SYM.\n\ -t, --type=TYPE Give the table entries type TYPE in C source.\n\ -o, --output=FILE Write the output to FILE.\n\ ", stdout);