comparison gcc/incpath.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents a06113de4d67
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Set up combined include path for the preprocessor. 1 /* Set up combined include path for the preprocessor.
2 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 2 Copyright (C) 2003-2017 Free Software Foundation, Inc.
3 Free Software Foundation, Inc.
4 3
5 This program is free software; you can redistribute it and/or modify it 4 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the 5 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 3, or (at your option) any 6 Free Software Foundation; either version 3, or (at your option) any
8 later version. 7 later version.
14 13
15 You should have received a copy of the GNU General Public License 14 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING3. If not see 15 along with this program; see the file COPYING3. If not see
17 <http://www.gnu.org/licenses/>. */ 16 <http://www.gnu.org/licenses/>. */
18 17
18 #ifndef GCC_INCPATH_H
19 #define GCC_INCPATH_H
20
21 /* Various fragments of include path. */
22 enum incpath_kind {
23 INC_QUOTE = 0, /* include "foo" */
24 INC_BRACKET, /* include <foo> */
25 INC_SYSTEM, /* sysinclude */
26 INC_AFTER, /* post-sysinclude. */
27 INC_MAX
28 };
29
19 extern void split_quote_chain (void); 30 extern void split_quote_chain (void);
20 extern void add_path (char *, int, int, bool); 31 extern void add_path (char *, incpath_kind, int, bool);
21 extern void register_include_chains (cpp_reader *, const char *, 32 extern void register_include_chains (cpp_reader *, const char *,
22 const char *, const char *, 33 const char *, const char *,
23 int, int, int); 34 int, int, int);
24 extern void add_cpp_dir_path (struct cpp_dir *, int); 35 extern void add_cpp_dir_path (struct cpp_dir *, incpath_kind);
36 extern struct cpp_dir *get_added_cpp_dirs (incpath_kind);
25 37
26 struct target_c_incpath_s { 38 struct target_c_incpath_s {
27 /* Do extra includes processing. STDINC is false iff -nostdinc was given. */ 39 /* Do extra includes processing. STDINC is false iff -nostdinc was given. */
28 void (*extra_pre_includes) (const char *, const char *, int); 40 void (*extra_pre_includes) (const char *, const char *, int);
29 void (*extra_includes) (const char *, const char *, int); 41 void (*extra_includes) (const char *, const char *, int);
30 }; 42 };
31 43
32 extern struct target_c_incpath_s target_c_incpath; 44 extern struct target_c_incpath_s target_c_incpath;
33 45
34 enum { QUOTE = 0, BRACKET, SYSTEM, AFTER }; 46 #endif /* GCC_INCPATH_H */