4 /* Copyright (C) 1989, 1990, 1991, 1992, 2001, 2004
5 Free Software Foundation, Inc.
6 Written by James Clark (jjc@jclark.com)
8 This file is part of groff.
10 groff is free software; you can redistribute it and/or modify it under
11 the terms of the GNU General Public License as published by the Free
12 Software Foundation; either version 2, or (at your option) any later
15 groff is distributed in the hope that it will be useful, but WITHOUT ANY
16 WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 You should have received a copy of the GNU General Public License along
21 with groff; see the file COPYING. If not, write to the Free Software
22 Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
32 #include "stringclass.h"
38 unsigned hash_string(const char *, int);
41 extern string capitalize_fields
;
42 extern string reverse_fields
;
43 extern string abbreviate_fields
;
44 extern string period_before_last_name
;
45 extern string period_before_initial
;
46 extern string period_before_hyphen
;
47 extern string period_before_other
;
48 extern string sort_fields
;
49 extern int annotation_field
;
50 extern string annotation_macro
;
51 extern string discard_fields
;
52 extern string articles
;
53 extern int abbreviate_label_ranges
;
54 extern string label_range_indicator
;
55 extern int date_as_label
;
56 extern string join_authors_exactly_two
;
57 extern string join_authors_last_two
;
58 extern string join_authors_default
;
59 extern string separate_label_second_parts
;
61 extern int et_al_min_elide
;
62 extern int et_al_min_total
;
64 extern int compatible_flag
;
66 extern int set_label_spec(const char *);
67 extern int set_date_label_spec(const char *);
68 extern int set_short_label_spec(const char *);
70 extern int short_label_flag
;
73 void command_error(const char *,
74 const errarg
&arg1
= empty_errarg
,
75 const errarg
&arg2
= empty_errarg
,
76 const errarg
&arg3
= empty_errarg
);
80 void compute_labels(reference
**, int);