man/l_roff-char.7.in: fix Bernd Warken (Dave Kemper, Werner Lemberg)..
[s-roff.git] / include / searchpath.h
blob2f960d65f62534f6a8c75046b9f821c5129d7848
1 /*@
2 * Copyright (c) 2014 - 2017 Steffen (Daode) Nurpmeso <steffen@sdaoden.eu>.
4 * Copyright (C) 1989 - 1992, 2000, 2003
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 _SEARCHPATH_H
23 #define _SEARCHPATH_H
25 #include "config.h"
27 #include "file_case.h"
29 class search_path
31 char *dirs;
32 unsigned init_len;
34 public:
35 search_path(const char *envvar, const char *standard, int add_home,
36 int add_current);
37 ~search_path();
39 void command_line_dir(char const *);
40 file_case * open_file(char const *name, uint32_t f=file_case::mux_default);
41 file_case * open_file_cautious(char const *name,
42 uint32_t f=file_case::mux_default);
45 #endif // _SEARCHPATH_H
46 // s-it2-mode