3 .\" Manual for universal hashing table generator
5 .\" (c) 2003, 2005, 2007, 2009, 2019, 2024 Straylight/Edgeware
8 .\"----- Licensing notice ---------------------------------------------------
10 .\" This file is part of the mLib utilities library.
12 .\" mLib is free software: you can redistribute it and/or modify it under
13 .\" the terms of the GNU Library General Public License as published by
14 .\" the Free Software Foundation; either version 2 of the License, or (at
15 .\" your option) any later version.
17 .\" mLib is distributed in the hope that it will be useful, but WITHOUT
18 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
20 .\" License for more details.
22 .\" You should have received a copy of the GNU Library General Public
23 .\" License along with mLib. If not, write to the Free Software
24 .\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
27 .\"--------------------------------------------------------------------------
28 .so ../defs.man \" @@@PRE@@@
30 .\"--------------------------------------------------------------------------
31 .TH unihash-mkstatic 1 "14 December 2003" "Straylight/Edgeware" "mLib utilities library"
33 .\"--------------------------------------------------------------------------
35 unihash-mkstatic \- construct tables for universal hashing
37 .\"--------------------------------------------------------------------------
55 .\"--------------------------------------------------------------------------
60 program constructs tables for efficient universal hashing (see
62 It will produce the table as either an array defined in a C source file
63 or as an initializer macro defined in a C header file.
66 The program accepts no non-option arguments. The options are as
70 Print a help message to standard output and exit successfully.
73 Print the program's version number to standard output and exit
77 Print a one-line usage summary to standard output and exit successfully.
80 When producing C source (the
82 option), rather than a header, define the table to be
85 .B "\-c, \-\-c-source"
86 Produce a C source file which exports a symbol naming the array, instead
89 .BI "\-s, \-\-symbol=" symbol
92 This is the name of the macro defined by a header file, or the array
93 exported by a C source. The default macro name is
95 the default array name is
98 .BI "\-i, \-\-include=" header
100 Request that generated C source include the named
105 .BI "#include """ header """"
107 at the top of the generated C source. The default is not to include
108 .BR <mLib/unihash.h> ,
109 which is necessary to declare the
111 type. This option does nothing without the
116 .BI "\-g, \-\-guard=" macro
120 as a guard against multiple inclusion of the generated header file.
121 Inserts a pair of lines of the form
128 at the top of the generated header, and a line
132 at the end. The default guard macro name is built from the output file
135 by uppercasing all alphabetic characters in the name and replacing
136 nonalphanumeric characters by underscores
138 This option does nothing with the
143 .BI "\-k, \-\-key=" key
144 Specifies the hashing key as an integer. Note that if you want to
145 specify the key in hexadecimal, you must prefix it with
149 which is, as far as the author knows, as good as any other fixed value.
151 .\"--------------------------------------------------------------------------
157 .\"--------------------------------------------------------------------------
160 Mark Wooding, <mdw@distorted.org.uk>
162 .\"----- That's all, folks --------------------------------------------------