man/l_roff-char.7.in: fix Bernd Warken (Dave Kemper, Werner Lemberg)..
[s-roff.git] / include / index.h
blob50eea52bfbb1b661f723c1779db3a59710670e16
1 /*@
2 * Copyright (c) 2014 - 2017 Steffen (Daode) Nurpmeso <steffen@sdaoden.eu>.
4 * Copyright (C) 1989 - 1992 Free Software Foundation, Inc.
5 * Written by James Clark (jjc@jclark.com)
7 * This is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2, or (at your option) any later
10 * version.
12 * This is distributed in the hope that it will be useful, but WITHOUT ANY
13 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with groff; see the file COPYING. If not, write to the Free Software
19 * Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
21 #ifndef _INDEX_H
22 #define _INDEX_H
24 #include "config.h"
26 #define INDEX_MAGIC 0x23021964
27 #define INDEX_VERSION 1
29 struct index_header {
30 int magic;
31 int version;
32 int tags_size;
33 int table_size;
34 int lists_size;
35 int strings_size;
36 int truncate;
37 int shortest;
38 int common;
41 struct tag {
42 int filename_index;
43 int start;
44 int length;
47 unsigned hash(const char *s, int len);
49 #endif // _INDEX_H
50 // s-it2-mode