diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-10-13 15:50:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-10-13 15:50:16 +0000 |
commit | ec321ba49b1f8c8439dafff4c0e48ef2f90e095a (patch) | |
tree | 8626a3ee0e2ed798387a443a0bb45bf2a83db534 /usr.bin/mandoc/mandoc_ohash.h | |
parent | fe6850dc220543aecba0580a69ebc6bd6eb91f72 (diff) |
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 'usr.bin/mandoc/mandoc_ohash.h')
-rw-r--r-- | usr.bin/mandoc/mandoc_ohash.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/usr.bin/mandoc/mandoc_ohash.h b/usr.bin/mandoc/mandoc_ohash.h new file mode 100644 index 00000000000..6879f0d83ea --- /dev/null +++ b/usr.bin/mandoc/mandoc_ohash.h @@ -0,0 +1,23 @@ +/* $OpenBSD: mandoc_ohash.h,v 1.1 2015/10/13 15:50:15 schwarze Exp $ */ +/* + * 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. + */ +#include <ohash.h> + +__BEGIN_DECLS + +void mandoc_ohash_init(struct ohash *, unsigned int, ptrdiff_t); + +__END_DECLS |