Improve const-correctness
Brought to you by:
davi,
fc_botelho
Would you like to apply the advices from the article "http://en.wikipedia.org/wiki/Const-correctness" to more places in your sources?
I suggest to add the key word "const" to the type specifiers for parameters like the following.
- http://cmph.cvs.sourceforge.net/cmph/cmph/src/buffer_manager.h?revision=1.2&view=markup
filename (function "buffer_manager_open")
- http://cmph.cvs.sourceforge.net/cmph/cmph/src/cmph.h?revision=1.15&view=markup
mphf (function "cmph_dump")
I think this is important, too. In particular, if cmph_search() doesn't change the cmph_t, that's important for the caller to know.
cmph_uint32 cmph_search(cmph_t const *mphf, const char *key, cmph_uint32 keylen);