Sync-to-go: update copyright for 2015
[s-roff.git] / src / pre-refer / refer.h
blobb2a81781eed15642e50e5267864ca40c924e3158
1 /*@
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
11 * version.
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
16 * for more details.
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.
22 #ifndef _REFER_H
23 #define _REFER_H
25 #include "config.h"
26 #include "refer-config.h"
28 #include <stdlib.h>
29 #include <assert.h>
30 #include <errno.h>
32 #include "cmap.h"
33 #include "cset.h"
34 #include "defs.h"
35 #include "errarg.h"
36 #include "error.h"
37 #include "lib.h"
38 #include "stringclass.h"
40 unsigned hash_string(const char *, int);
41 int next_size(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;
62 extern string et_al;
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;
74 void clear_labels();
75 void command_error(const char *,
76 const errarg &arg1 = empty_errarg,
77 const errarg &arg2 = empty_errarg,
78 const errarg &arg3 = empty_errarg);
80 class reference;
82 void compute_labels(reference **, int);
84 #endif // _REFER_H
85 // s-it2-mode