selftest.c: remove calls to strndup (PR bootstrap/78616)
[official-gcc.git] / libcc1 / names.hh
blob8e04147bf0b4539f11e4ac8c78249ce21f7d8a15
1 /* String declarations.
2 Copyright (C) 2014-2016 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef CC1_PLUGIN_NAMES_HH
21 #define CC1_PLUGIN_NAMES_HH
23 namespace cc1_plugin
25 // This code defines global string constants, one for each method in
26 // gcc-c-fe.def. This is needed so that they can be used as
27 // template arguments elsewhere.
29 #define GCC_METHOD0(R, N) \
30 extern const char *N;
31 #define GCC_METHOD1(R, N, A) \
32 extern const char *N;
33 #define GCC_METHOD2(R, N, A, B) \
34 extern const char *N;
35 #define GCC_METHOD3(R, N, A, B, C) \
36 extern const char *N;
37 #define GCC_METHOD4(R, N, A, B, C, D) \
38 extern const char *N;
39 #define GCC_METHOD5(R, N, A, B, C, D, E) \
40 extern const char *N;
41 #define GCC_METHOD7(R, N, A, B, C, D, E, F, G) \
42 extern const char *N;
44 #include "gcc-c-fe.def"
46 #undef GCC_METHOD0
47 #undef GCC_METHOD1
48 #undef GCC_METHOD2
49 #undef GCC_METHOD3
50 #undef GCC_METHOD4
51 #undef GCC_METHOD5
52 #undef GCC_METHOD7
55 #endif // CC1_PLUGIN_NAMES_HH