elsif Is_Access_Type (U_Type) then
if Is_Access_Protected_Subprogram_Type (U_Type) then
- Lib_RE := RE_Put_Image_Access_Prot;
+ Lib_RE := RE_Put_Image_Access_Prot_Subp;
elsif Is_Access_Subprogram_Type (U_Type) then
Lib_RE := RE_Put_Image_Access_Subp;
elsif P_Size = System_Address_Size then
-- types in the private part of a Remote_Types package.
--
-- Put_Image on tagged types triggers some bugs.
- --
- -- Put_Image doesn't work for access-to-protected types, because of
- -- confusion over their size. Disable for all access-to-subprogram
- -- types, just in case.
if Is_Remote_Types (Scope (Typ))
or else (Is_Tagged_Type (Typ) and then In_Predefined_Unit (Typ))
or else (Is_Tagged_Type (Typ) and then not Tagged_Put_Image_Enabled)
- or else Is_Access_Subprogram_Type (Typ)
then
return False;
end if;
Thin_Instance (S, X, "access subprogram");
end Put_Image_Access_Subp;
- procedure Put_Image_Access_Prot (S : in out Sink'Class; X : Thin_Pointer) is
+ procedure Put_Image_Access_Prot_Subp
+ (S : in out Sink'Class; X : Thin_Pointer)
+ is
begin
Thin_Instance (S, X, "access protected subprogram");
- end Put_Image_Access_Prot;
+ end Put_Image_Access_Prot_Subp;
procedure Put_Image_String (S : in out Sink'Class; X : String) is
begin
procedure Put_Image_Access_Subp (S : in out Sink'Class; X : Thin_Pointer);
-- For access-to-subprogram types
- procedure Put_Image_Access_Prot (S : in out Sink'Class; X : Thin_Pointer);
+ procedure Put_Image_Access_Prot_Subp
+ (S : in out Sink'Class; X : Thin_Pointer);
-- For access-to-protected-subprogram types
procedure Put_Image_String (S : in out Sink'Class; X : String);
RE_Put_Image_Thin_Pointer, -- System.Put_Images
RE_Put_Image_Fat_Pointer, -- System.Put_Images
RE_Put_Image_Access_Subp, -- System.Put_Images
- RE_Put_Image_Access_Prot, -- System.Put_Images
+ RE_Put_Image_Access_Prot_Subp, -- System.Put_Images
RE_Put_Image_String, -- System.Put_Images
RE_Put_Image_Wide_String, -- System.Put_Images
RE_Put_Image_Wide_Wide_String, -- System.Put_Images
RE_Put_Image_Thin_Pointer => System_Put_Images,
RE_Put_Image_Fat_Pointer => System_Put_Images,
RE_Put_Image_Access_Subp => System_Put_Images,
- RE_Put_Image_Access_Prot => System_Put_Images,
+ RE_Put_Image_Access_Prot_Subp => System_Put_Images,
RE_Put_Image_String => System_Put_Images,
RE_Put_Image_Wide_String => System_Put_Images,
RE_Put_Image_Wide_Wide_String => System_Put_Images,