2 * Copyright (c) 2014 - 2015 Steffen (Daode) Nurpmeso <sdaoden@users.sf.net>.
4 * Copyright (C) 1989 - 1992, 2001, 2004
5 * Free Software Foundation, Inc.
6 * Written by James Clark (jjc@jclark.com)
8 * This 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 2, or (at your option) any later
13 * This 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
18 * You should have received a copy of the GNU General Public License along
19 * with groff; see the file COPYING. If not, write to the Free Software
20 * Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
26 #include "refer-config.h"
38 #include "stringclass.h"
40 unsigned hash_string(const char *, int);
43 extern string capitalize_fields
;
44 extern string reverse_fields
;
45 extern string abbreviate_fields
;
46 extern string period_before_last_name
;
47 extern string period_before_initial
;
48 extern string period_before_hyphen
;
49 extern string period_before_other
;
50 extern string sort_fields
;
51 extern int annotation_field
;
52 extern string annotation_macro
;
53 extern string discard_fields
;
54 extern string articles
;
55 extern int abbreviate_label_ranges
;
56 extern string label_range_indicator
;
57 extern int date_as_label
;
58 extern string join_authors_exactly_two
;
59 extern string join_authors_last_two
;
60 extern string join_authors_default
;
61 extern string separate_label_second_parts
;
63 extern int et_al_min_elide
;
64 extern int et_al_min_total
;
66 extern int compatible_flag
;
68 extern int set_label_spec(const char *);
69 extern int set_date_label_spec(const char *);
70 extern int set_short_label_spec(const char *);
72 extern int short_label_flag
;
75 void command_error(const char *,
76 const errarg
&arg1
= empty_errarg
,
77 const errarg
&arg2
= empty_errarg
,
78 const errarg
&arg3
= empty_errarg
);
82 void compute_labels(reference
**, int);