groff: update vendor branch to v1.20.1
[dragonfly.git] / contrib / groff / src / preproc / refer / refer.h
CommitLineData
92d0a6a6 1// -*- C++ -*-
4d3e9548 2/* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2004, 2009
92d0a6a6
JR
3 Free Software Foundation, Inc.
4 Written by James Clark (jjc@jclark.com)
5
6This file is part of groff.
7
8groff is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
4d3e9548
JL
10Software Foundation, either version 3 of the License, or
11(at your option) any later version.
92d0a6a6
JR
12
13groff is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
4d3e9548
JL
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>. */
92d0a6a6
JR
20
21#include "lib.h"
22
23#include <stdlib.h>
24#include <assert.h>
25#include <errno.h>
26
27#include "errarg.h"
28#include "error.h"
29#include "stringclass.h"
30#include "cset.h"
31#include "cmap.h"
32
33#include "defs.h"
34
35unsigned hash_string(const char *, int);
36int next_size(int);
37
38extern string capitalize_fields;
39extern string reverse_fields;
40extern string abbreviate_fields;
41extern string period_before_last_name;
42extern string period_before_initial;
43extern string period_before_hyphen;
44extern string period_before_other;
45extern string sort_fields;
46extern int annotation_field;
47extern string annotation_macro;
48extern string discard_fields;
49extern string articles;
50extern int abbreviate_label_ranges;
51extern string label_range_indicator;
52extern int date_as_label;
53extern string join_authors_exactly_two;
54extern string join_authors_last_two;
55extern string join_authors_default;
56extern string separate_label_second_parts;
57extern string et_al;
58extern int et_al_min_elide;
59extern int et_al_min_total;
60
61extern int compatible_flag;
62
63extern int set_label_spec(const char *);
64extern int set_date_label_spec(const char *);
65extern int set_short_label_spec(const char *);
66
67extern int short_label_flag;
68
69void clear_labels();
70void command_error(const char *,
71 const errarg &arg1 = empty_errarg,
72 const errarg &arg2 = empty_errarg,
73 const errarg &arg3 = empty_errarg);
74
75class reference;
76
77void compute_labels(reference **, int);