905dcbb2334ceb000ba7ce396448c6590f5d9a12
[platform/upstream/groff.git] / src / include / relocate.h
1 /* -*- C -*- */
2 /* Provide relocation for macro and font files.
3
4    Copyright (C) 2005-2014  Free Software Foundation, Inc.
5
6    This program is free software; you can redistribute it and/or modify it
7    under the terms of the GNU Library General Public License as published
8    by the Free Software Foundation, either version 3 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Library General Public License for more details.
15
16    You should have received a copy of the GNU Library General Public License
17    along with this program. If not, see <http://www.gnu.org/licenses/>.  */
18
19 #ifdef __cplusplus
20 extern char *curr_prefix;
21 extern size_t curr_prefix_len;
22
23 void set_current_prefix ();
24 char *xdirname (char *s);
25 char *searchpath (const char *name, const char *pathp);
26 #endif
27
28 /* This function has C linkage.  */
29 extern
30 #ifdef __cplusplus
31 "C"
32 #endif
33 char *relocatep (const char *path);
34
35 #ifdef __cplusplus
36 char *relocate (const char *path);
37 #endif