Commit e0aacc92 by Emmanuel Briot Committed by Arnaud Charlet

xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie interfaces.

2007-10-15  Emmanuel Briot  <briot@adacore.com>

	* xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
	interfaces.

	* xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
	type, for dispatching calls.

From-SVN: r129340
parent 03bc9897
......@@ -395,7 +395,7 @@ package body Xr_Tabls is
begin
case Ref_Type is
when 'b' | 'c' | 'm' | 'r' | 'i' | ' ' | 'x' =>
when 'b' | 'c' | 'm' | 'r' | 'R' | 'i' | ' ' | 'x' =>
null;
when 'l' | 'w' =>
......@@ -458,7 +458,7 @@ package body Xr_Tabls is
New_Ref.Next := Declaration.Body_Ref;
Declaration.Body_Ref := New_Ref;
when 'r' | 'i' | 'l' | ' ' | 'x' | 'w' =>
when 'r' | 'R' | 'i' | 'l' | ' ' | 'x' | 'w' =>
New_Ref.Next := Declaration.Ref_Ref;
Declaration.Ref_Ref := New_Ref;
......
......@@ -522,6 +522,7 @@ package body Xref_Lib is
when 'd' => return Param_String & "decimal object";
when 'e' => return Param_String & "enumeration object";
when 'f' => return Param_String & "float object";
when 'h' => return "interface";
when 'i' => return Param_String & "integer object";
when 'm' => return Param_String & "modular object";
when 'o' => return Param_String & "fixed object";
......@@ -669,6 +670,7 @@ package body Xref_Lib is
Dependencies : Boolean := False)
is
Ali : String_Access renames File.Buffer;
pragma Warnings (Off, Ali);
begin
if File.Buffer /= null then
......@@ -1038,6 +1040,8 @@ package body Xref_Lib is
elsif Ali (Ptr) = '=' then
declare
P_Line, P_Column : Natural;
pragma Warnings (Off, P_Line);
pragma Warnings (Off, P_Column);
begin
Ptr := Ptr + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment