=================================================================== RCS file: /cvs/mandoc/compat_ohash.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- mandoc/compat_ohash.h 2014/01/04 14:09:28 1.2 +++ mandoc/compat_ohash.h 2014/06/20 02:10:05 1.3 @@ -1,8 +1,4 @@ -#ifndef OHASH_H -#define OHASH_H -/* $OpenBSD: compat_ohash.h,v 1.2 2014/01/04 14:09:28 schwarze Exp $ */ -/* ex:ts=8 sw=4: - */ +/* $OpenBSD: compat_ohash.h,v 1.3 2014/06/20 02:10:05 schwarze Exp $ */ /* Copyright (c) 1999, 2004 Marc Espie * @@ -19,11 +15,15 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef OHASH_H +#define OHASH_H + /* Open hashing support. * Open hashing was chosen because it is much lighter than other hash * techniques, and more efficient in most cases. */ +/* user-visible data structure */ struct ohash_info { ptrdiff_t key_offset; void *data; /* user data */ @@ -34,6 +34,7 @@ struct ohash_info { struct _ohash_record; +/* private structure. It's there just so you can do a sizeof */ struct ohash { struct _ohash_record *t; struct ohash_info info;