GCC Middle and Back End API Reference
Go to the documentation of this file.
1/* Prototypes and data structures used for implementing functions for
2 finding files relative to GCC binaries.
3 Copyright (C) 1992-2024 Free Software Foundation, Inc.
5This file is part of GCC.
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
21#ifndef GCC_FILE_FIND_H
22#define GCC_FILE_FIND_H
24/* Structure to hold all the directories in which to search for files to
25 execute. */
29 const char *prefix; /* String to prepend to the path. */
30 struct prefix_list *next; /* Next in linked list. */
35 struct prefix_list *plist; /* List of prefixes to try */
36 int max_len; /* Max length of a prefix in PLIST */
37 const char *name; /* Name of this list (used in config stuff) */
40extern void find_file_set_debug (bool);
41extern char *find_a_file (struct path_prefix *, const char *, int);
42extern void add_prefix (struct path_prefix *, const char *);
43extern void add_prefix_begin (struct path_prefix *, const char *);
44extern void prefix_from_env (const char *, struct path_prefix *);
45extern void prefix_from_string (const char *, struct path_prefix *);
47#endif /* GCC_FILE_FIND_H */
char * find_a_file(struct path_prefix *, const char *, int)
Definition file-find.cc:34
void prefix_from_env(const char *, struct path_prefix *)
Definition file-find.cc:162
void prefix_from_string(const char *, struct path_prefix *)
Definition file-find.cc:172
void add_prefix_begin(struct path_prefix *, const char *)
Definition file-find.cc:153
void add_prefix(struct path_prefix *, const char *)
Definition file-find.cc:145
void find_file_set_debug(bool)
Definition file-find.cc:28
Definition file-find.h:34
int max_len
Definition file-find.h:36
struct prefix_list * plist
Definition file-find.h:35
const char * name
Definition file-find.h:37
Definition file-find.h:28
struct prefix_list * next
Definition file-find.h:30
const char * prefix
Definition file-find.h:29