when Pragma_Suppress_Initialization =>
Expand_Pragma_Suppress_Initialization (N);
- -- All other pragmas need no expander action (includes
- -- Unknown_Pragma).
+ -- All other pragmas need no expander action
when others => null;
end case;
-- it is a semantic error, not a syntactic one (we have already checked
-- the syntax for the unrecognized pragma as required by (RM 2.8(11)).
- if Prag_Id = Unknown_Pragma then
+ if Prag_Id = Pragma_Unknown then
return Pragma_Node;
end if;
null;
--------------------
- -- Unknown_Pragma --
+ -- Pragma_Unknown --
--------------------
-- Should be impossible, since we excluded this case earlier on
- when Unknown_Pragma =>
+ when Pragma_Unknown =>
raise Program_Error;
end case;
null;
--------------------
- -- Unknown_Pragma --
+ -- Pragma_Unknown --
--------------------
-- Should be impossible, since the case of an unknown pragma is
-- separately processed before the case statement is entered.
- when Unknown_Pragma =>
+ when Pragma_Unknown =>
raise Program_Error;
end case;
Pragma_Warnings => 0,
Pragma_Weak_External => 0,
Pragma_Wide_Character_Encoding => 0,
- Unknown_Pragma => 0);
+ Pragma_Unknown => 0);
function Is_Non_Significant_Pragma_Reference (N : Node_Id) return Boolean is
Id : Pragma_Id;
when First_Pragma_Name .. Last_Pragma_Name =>
return Pragma_Id'Val (N - First_Pragma_Name);
when others =>
- return Unknown_Pragma;
+ return Pragma_Unknown;
end case;
end Get_Pragma_Id;
-- The value to represent an unknown or unrecognized pragma
- Unknown_Pragma);
+ Pragma_Unknown);
-----------------------------------
-- Queuing Policy ID definitions --
-- to call this function with a name that is not the name of a check.
function Get_Pragma_Id (N : Name_Id) return Pragma_Id;
- -- Returns Id of pragma corresponding to given name. Returns Unknown_Pragma
+ -- Returns Id of pragma corresponding to given name. Returns Pragma_Unknown
-- if N is not a name of a known (Ada defined or GNAT-specific) pragma.
-- Note that the function also works correctly for names of pragmas that
-- are not included in the main list of pragma Names (e.g. Name_CPU returns
/* Define the numeric values for attributes. */
-enum Attribute_Id : unsigned char
+enum Attribute_Id : Byte
{
Attr_ !! TEMPLATE INSERTION POINT
};
static inline Attribute_Id
Get_Attribute_Id (int id)
{
- extern unsigned char snames__get_attribute_id (int);
+ extern Byte snames__get_attribute_id (int);
return (Attribute_Id) snames__get_attribute_id (id);
}
/* Define the numeric values for the pragmas. */
-enum Pragma_Id : Byte
+enum Pragma_Id : Word
{
Pragma_ !! TEMPLATE_INSERTION_POINT
};
static inline Pragma_Id
Get_Pragma_Id (int id)
{
- extern unsigned char snames__get_pragma_id (int);
+ extern Word snames__get_pragma_id (int);
return (Pragma_Id) snames__get_pragma_id (id);
}
/* 8-bit unsigned integer */
typedef unsigned char Byte;
+/* 16-bit unsigned integer */
+typedef unsigned short Word;
+
/* 8-Bit Character and String Types: */
/* 8-bit character type */