Debian Codegraph @

gcc/ada/snames.h-tmpl

raw
1 /****************************************************************************
2 * *
3 * GNAT COMPILER COMPONENTS *
4 * *
5 * S N A M E S *
6 * *
7 * C Header File *
8 * *
9 * Copyright (C) 1992-2008, Free Software Foundation, Inc. *
10 * *
11 * GNAT is free software; you can redistribute it and/or modify it under *
12 * terms of the GNU General Public License as published by the Free Soft- *
13 * ware Foundation; either version 3, or (at your option) any later ver- *
14 * sion. GNAT is distributed in the hope that it will be useful, but WITH- *
15 * OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
16 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License *
17 * for more details. You should have received a copy of the GNU General *
18 * Public License distributed with GNAT; see file COPYING3. If not, go to *
19 * http://www.gnu.org/licenses for a complete copy of the license. *
20 * *
21 * GNAT was originally developed by the GNAT team at New York University. *
22 * Extensive contributions were provided by Ada Core Technologies Inc. *
23 * *
24 ****************************************************************************/
25
26 /* This is the C file that corresponds to the Ada package specification
27 Snames. It was created automatically from the file snames.ads. */
28
29 /* Name_Id values */
30
31 enum Name_Id : Int
32 {
33 Name_ !! TEMPLATE INSERTION POINT
34 };
35
36 /* Define the numeric values for attributes. */
37
38 enum Attribute_Id : unsigned char
39 {
40 Attr_ !! TEMPLATE INSERTION POINT
41 };
42
43 /* Define the function to return one of the numeric values above. The operand
44 is a Chars field value. */
45
46 static inline Attribute_Id
47 Get_Attribute_Id (int id)
48 {
49 extern unsigned char snames__get_attribute_id (int);
50 return (Attribute_Id) snames__get_attribute_id (id);
51 }
52
53 /* Define the numeric values for the conventions. */
54
55 enum Convention_Id : Byte
56 {
57 Convention_ !! TEMPLATE INSERTION POINT
58 };
59
60 /* Define the function to check if a Name_Id value is a valid pragma */
61
62 #define Is_Pragma_Name snames__is_pragma_name
63 extern Boolean Is_Pragma_Name (Name_Id);
64
65 /* Define the numeric values for the pragmas. */
66
67 enum Pragma_Id : Byte
68 {
69 Pragma_ !! TEMPLATE_INSERTION_POINT
70 };
71
72 /* Define the function to return one of the numeric values above. The operand
73 is a Chars field value. */
74
75 static inline Pragma_Id
76 Get_Pragma_Id (int id)
77 {
78 extern unsigned char snames__get_pragma_id (int);
79 return (Pragma_Id) snames__get_pragma_id (id);
80 }
81
82 /* End of snames.h (C version of Snames package spec) */