xref: /netbsd-src/external/gpl2/groff/dist/src/include/searchpath.h (revision 89a07cf815a29524268025a1139fac4c5190f765)
1 /*	$NetBSD: searchpath.h,v 1.1.1.1 2016/01/13 18:41:48 christos Exp $	*/
2 
3 // -*- C++ -*-
4 /* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2003
5    Free Software Foundation, Inc.
6      Written by James Clark (jjc@jclark.com)
7 
8 This file is part of groff.
9 
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
13 version.
14 
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
18 for more details.
19 
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. */
23 
24 class search_path {
25   char *dirs;
26   unsigned init_len;
27 public:
28   search_path(const char *envvar, const char *standard,
29 	      int add_home, int add_current);
30   ~search_path();
31   void command_line_dir(const char *);
32   FILE *open_file(const char *, char **);
33   FILE *open_file_cautious(const char *, char ** = 0, const char * = 0);
34 };
35