Next: makefile-script - create makefile script, Previous: license-name - Emit the name of the license, Up: Common Scheme Functions [Contents][Index]
Usage: (make-gperf name strings ...)
Build a program to perform perfect hashes of a known list of input
strings. This function produces no output, but prepares a program
named, gperf_<name> for use by the gperf function
See gperf - perform a perfect hash function.
This program will be obliterated as AutoGen exits. However, you may incorporate the generated hashing function into your C program with commands something like the following:
[+ (shellf "sed '/^int main(/,$d;/^#line/d' ${gpdir}/%s.c" name ) +]
where name
matches the name provided to this make-perf
function. gpdir
is the variable used to store the name of the
temporary directory used to stash all the files.
Arguments:
name - name of hash list
strings - list of strings to hash