GCC Middle and Back End API Reference
incpath.h
Go to the documentation of this file.
1/* Set up combined include path for the preprocessor.
2 Copyright (C) 2003-2024 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 3, or (at your option) any
7 later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef GCC_INCPATH_H
19#define GCC_INCPATH_H
20
21/* Various fragments of include path. */
23 INC_QUOTE = 0, /* include "foo" */
24 INC_BRACKET, /* include <foo> */
25 INC_SYSTEM, /* sys-include */
26 INC_AFTER, /* post-sysinclude */
27 INC_EMBED, /* embed <foo> */
29};
30
31extern void split_quote_chain (void);
32extern void add_path (char *, incpath_kind, int, bool);
33extern void register_include_chains (cpp_reader *, const char *,
34 const char *, const char *,
35 int, int, int);
36extern void add_cpp_dir_path (struct cpp_dir *, incpath_kind);
37extern struct cpp_dir *get_added_cpp_dirs (incpath_kind);
38
40 /* Do extra includes processing. STDINC is false iff -nostdinc was given. */
41 void (*extra_pre_includes) (const char *, const char *, int);
42 void (*extra_includes) (const char *, const char *, int);
43};
44
46
47#endif /* GCC_INCPATH_H */
void split_quote_chain(void)
Definition incpath.cc:421
struct target_c_incpath_s target_c_incpath
Definition incpath.cc:547
void register_include_chains(cpp_reader *, const char *, const char *, const char *, int, int, int)
Definition incpath.cc:490
void add_cpp_dir_path(struct cpp_dir *, incpath_kind)
Definition incpath.cc:438
struct cpp_dir * get_added_cpp_dirs(incpath_kind)
Definition incpath.cc:527
void add_path(char *, incpath_kind, int, bool)
Definition incpath.cc:450
incpath_kind
Definition incpath.h:22
@ INC_AFTER
Definition incpath.h:26
@ INC_MAX
Definition incpath.h:28
@ INC_SYSTEM
Definition incpath.h:25
@ INC_BRACKET
Definition incpath.h:24
@ INC_EMBED
Definition incpath.h:27
@ INC_QUOTE
Definition incpath.h:23
Definition incpath.h:39
void(* extra_includes)(const char *, const char *, int)
Definition incpath.h:42
void(* extra_pre_includes)(const char *, const char *, int)
Definition incpath.h:41