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