Module src/hash/gnomedev.c

vim:sw=4:sts=4 Lua binding for the hash functions, so that a Lua script can compute hash values.

Functions

local generate_hash_cmph (key) Compute a hash value for the given key.
local l_generate_hash (cmphfile, datafile, prefix, ofile) Load the given file using the cmph_load function of the cmph library, then write the hash function data; then read the (key,value) file and write that out, too, in the correct order.


Functions

local generate_hash_cmph (key)
Compute a hash value for the given key.

Parameters

  • key: The string to compute the hash value for
In file: src/hash/gnomedev.c line 19
local l_generate_hash (cmphfile, datafile, prefix, ofile)
Load the given file using the cmph_load function of the cmph library, then write the hash function data; then read the (key,value) file and write that out, too, in the correct order.

Parameters

  • cmphfile: Name of the file generated by cmph (suffix .mph)
  • datafile: Name of the key/value pair file
  • prefix: How to prefix the variables in the output
  • ofile: Name of the output file to write to
In file: src/hash/gnomedev.c line 35

Valid XHTML 1.0!