This is modeled on the existing Is_Init_Proc predicate.
gcc/ada/ChangeLog:
* exp_tss.ads (Is_Rep_To_Pos): New function declaration.
* exp_tss.adb (Is_Rep_To_Pos): New function body.
* fe.h (Is_Rep_To_Pos): New macro and extern declaration.
return C1 = TSS_Init_Proc (1) and then C2 = TSS_Init_Proc (2);
end Is_Init_Proc;
+ -------------------
+ -- Is_Rep_To_Pos --
+ -------------------
+
+ function Is_Rep_To_Pos (E : Entity_Id) return Boolean is
+ C1 : Character;
+ C2 : Character;
+ begin
+ Get_Last_Two_Chars (Chars (E), C1, C2);
+ return C1 = TSS_Rep_To_Pos (1) and then C2 = TSS_Rep_To_Pos (2);
+ end Is_Rep_To_Pos;
+
------------
-- Is_TSS --
------------
-- WARNING: There is a matching C declaration of this subprogram in fe.h
+ function Is_Rep_To_Pos (E : Entity_Id) return Boolean;
+ -- Version for Rep to Pos conversions, same as Is_TSS (E, TSS_Rep_To_Pos);
+
+ -- WARNING: There is a matching C declaration of this subprogram in fe.h
+
function Is_TSS (E : Entity_Id; Nam : TSS_Name_Type) return Boolean;
-- Determines if given entity (E) is the name of a TSS identified by Nam
/* exp_tss: */
#define Is_Init_Proc exp_tss__is_init_proc
+#define Is_Rep_To_Pos exp_tss__is_rep_to_pos
extern Boolean Is_Init_Proc (Entity_Id);
+extern Boolean Is_Rep_To_Pos (Entity_Id);
/* exp_util: */