diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-13 15:53:05 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-13 15:53:05 +0000 |
commit | 35c8bbbbc8de3992d8c2d207662d365f4d566865 (patch) | |
tree | 4e37a62621c8f74a7b63cd0ff5d1fba1cb048ca0 /mandoc_ohash.h | |
parent | 4b2845466d2483af272a570fa0404c95a352c52d (diff) | |
download | mandoc-35c8bbbbc8de3992d8c2d207662d365f4d566865.tar.gz |
Reduce the amount of code by moving the three copies of the ohash
callback functions into one common place, preparing for the use of
ohash for some additional purposes. No functional change.
Diffstat (limited to 'mandoc_ohash.h')
-rw-r--r-- | mandoc_ohash.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mandoc_ohash.h b/mandoc_ohash.h new file mode 100644 index 00000000..c0a4460d --- /dev/null +++ b/mandoc_ohash.h @@ -0,0 +1,27 @@ +/* $Id$ */ +/* + * Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ +#if HAVE_OHASH +#include <ohash.h> +#else +#include "compat_ohash.h" +#endif + +__BEGIN_DECLS + +void mandoc_ohash_init(struct ohash *, unsigned int, ptrdiff_t); + +__END_DECLS |