X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/0521f473fe8624322a4956516fcb5335b34fa080..9b5ac6ff2ef1b71e7ec53c756cad37b1844b9d1e:/crc-mktab.c diff --git a/crc-mktab.c b/crc-mktab.c index 2439e20..9b61ac8 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.6 2004/04/08 01:36:11 mdw Exp $ * * Build CRC tables * @@ -27,26 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: crc-mktab.c,v $ - * 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 - * to fill a line. - * - * Revision 1.3 2001/01/20 12:06:01 mdw - * Define flags with macros, to ensure unsignedness. - * - * Revision 1.2 2000/10/08 11:07:21 mdw - * With no arguments, give an error rather than spewing a big table at the - * user. - * - * Revision 1.1 2000/07/21 19:01:33 mdw - * Generate the CRC table rather than hardcoding it. - * - */ - /*----- Header files ------------------------------------------------------*/ #include @@ -99,7 +79,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 +102,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);