Commit 9405df9b authored by yoogx's avatar yoogx
Browse files

* Renamed Namet to Ocarina.Namet, Output to Ocarina.Output to

          avoid collision with external packages
parent f4b3e4ea
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2010-2012 ESA & ISAE. -- -- Copyright (C) 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -41,7 +41,7 @@ with Ocarina.Backends.MAST.Main; ...@@ -41,7 +41,7 @@ with Ocarina.Backends.MAST.Main;
with Ocarina.Backends.MAST_Tree.Generator; with Ocarina.Backends.MAST_Tree.Generator;
with GNAT.Command_Line; use GNAT.Command_Line; with GNAT.Command_Line; use GNAT.Command_Line;
with Namet; use Namet; with Ocarina.Namet; use Ocarina.Namet;
package body Ocarina.Backends.MAST is package body Ocarina.Backends.MAST is
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2010-2012 ESA & ISAE. -- -- Copyright (C) 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
with Charset; use Charset; with Charset; use Charset;
with Locations; use Locations; with Locations; use Locations;
with Namet; use Namet; with Ocarina.Namet; use Ocarina.Namet;
with Utils; use Utils; with Utils; use Utils;
with Ocarina.Backends.MAST_Values; use Ocarina.Backends.MAST_Values; with Ocarina.Backends.MAST_Values; use Ocarina.Backends.MAST_Values;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 2010-2012 ESA & ISAE. -- -- Copyright (C) 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Output; use Output; with Ocarina.Output; use Ocarina.Output;
with Ocarina.Backends.MAST_Tree.Nodes; use Ocarina.Backends.MAST_Tree.Nodes; with Ocarina.Backends.MAST_Tree.Nodes; use Ocarina.Backends.MAST_Tree.Nodes;
...@@ -39,10 +39,10 @@ package Ocarina.Backends.MAST_Tree.Debug is ...@@ -39,10 +39,10 @@ package Ocarina.Backends.MAST_Tree.Debug is
N_Indents : Natural := 0; N_Indents : Natural := 0;
procedure W_Eol (N : Natural := 1) renames Output.Write_Eol; procedure W_Eol (N : Natural := 1) renames Ocarina.Output.Write_Eol;
procedure W_Int (N : Int) renames Output.Write_Int; procedure W_Int (N : Int) renames Ocarina.Output.Write_Int;
procedure W_Line (N : String) renames Output.Write_Line; procedure W_Line (N : String) renames Ocarina.Output.Write_Line;
procedure W_Str (N : String) renames Output.Write_Str; procedure W_Str (N : String) renames Ocarina.Output.Write_Str;
procedure W_Indents; procedure W_Indents;
procedure W_Byte (N : Byte); procedure W_Byte (N : Byte);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2010-2012 ESA & ISAE. -- -- Copyright (C) 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Namet; use Namet; with Ocarina.Namet; use Ocarina.Namet;
with Output; use Output; with Ocarina.Output; use Ocarina.Output;
-- with Utils; use Utils; -- with Utils; use Utils;
with GNAT.OS_Lib; use GNAT.OS_Lib; with GNAT.OS_Lib; use GNAT.OS_Lib;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2010-2012 ESA & ISAE. -- -- Copyright (C) 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -35,7 +35,7 @@ with GNAT.Table; ...@@ -35,7 +35,7 @@ with GNAT.Table;
with Charset; use Charset; with Charset; use Charset;
with Locations; use Locations; with Locations; use Locations;
with Namet; use Namet; with Ocarina.Namet; use Ocarina.Namet;
with Ocarina.Backends.MAST_Values; with Ocarina.Backends.MAST_Values;
-- with Utils; use Utils; -- with Utils; use Utils;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2010-2012 ESA & ISAE. -- -- Copyright (C) 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Namet; use Namet; with Ocarina.Namet; use Ocarina.Namet;
with Ocarina.AADL_Values; with Ocarina.AADL_Values;
with GNAT.Table; with GNAT.Table;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2005-2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2005-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with GNAT.OS_Lib; use GNAT.OS_Lib; with GNAT.OS_Lib; use GNAT.OS_Lib;
with Output; use Output; with Ocarina.Output; use Ocarina.Output;
with Ocarina.Options; use Ocarina.Options; with Ocarina.Options; use Ocarina.Options;
package body Ocarina.Backends.Messages is package body Ocarina.Backends.Messages is
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
with Ocarina.ME_AADL; with Ocarina.ME_AADL;
with Ocarina.ME_AADL.AADL_Instances.Nodes; with Ocarina.ME_AADL.AADL_Instances.Nodes;
with Namet; with Ocarina.Namet;
with Ocarina.Backends.PN.Nodes; with Ocarina.Backends.PN.Nodes;
with Ocarina.Backends.PN.Nutils; with Ocarina.Backends.PN.Nutils;
...@@ -237,7 +237,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -237,7 +237,7 @@ package body Ocarina.Backends.PN.Components is
is is
use OPN; use OPN;
use Ocarina.Backends.PN.Nutils; use Ocarina.Backends.PN.Nutils;
use Namet; use Ocarina.Namet;
use Ocarina.Backends.Properties; use Ocarina.Backends.Properties;
use Ocarina.Aadl_Values; use Ocarina.Aadl_Values;
use Ocarina.Backends.PN.Iutils; use Ocarina.Backends.PN.Iutils;
...@@ -1643,7 +1643,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -1643,7 +1643,7 @@ package body Ocarina.Backends.PN.Components is
use Ocarina.Backends.PN.Utils; use Ocarina.Backends.PN.Utils;
use OAV; use OAV;
use Ocarina.Backends.Properties; use Ocarina.Backends.Properties;
use Namet; use Ocarina.Namet;
use AIN; use AIN;
use OPND; use OPND;
...@@ -2477,7 +2477,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -2477,7 +2477,7 @@ package body Ocarina.Backends.PN.Components is
use Ocarina.Backends.PN.Iutils; use Ocarina.Backends.PN.Iutils;
use Ocarina.Aadl_Values; use Ocarina.Aadl_Values;
use Ocarina.Backends.Properties; use Ocarina.Backends.Properties;
use Namet; use Ocarina.Namet;
use AIN; use AIN;
PN_Spg_Par : Node_Id; PN_Spg_Par : Node_Id;
...@@ -2594,7 +2594,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -2594,7 +2594,7 @@ package body Ocarina.Backends.PN.Components is
F : Types.Value_Id) F : Types.Value_Id)
is is
use Namet; use Ocarina.Namet;
use AIN; use AIN;
use Ocarina.AADL_Values; use Ocarina.AADL_Values;
use Ocarina.Backends.PN.Nodes; use Ocarina.Backends.PN.Nodes;
...@@ -2696,7 +2696,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -2696,7 +2696,7 @@ package body Ocarina.Backends.PN.Components is
use Ocarina.Backends.PN.Iutils; use Ocarina.Backends.PN.Iutils;
use Ocarina.Aadl_Values; use Ocarina.Aadl_Values;
use Ocarina.Backends.Properties; use Ocarina.Backends.Properties;
use Namet; use Ocarina.Namet;
use AIN; use AIN;
use Ocarina.Backends.Utils; use Ocarina.Backends.Utils;
use Ocarina.Instances.Queries; use Ocarina.Instances.Queries;
...@@ -2864,7 +2864,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -2864,7 +2864,7 @@ package body Ocarina.Backends.PN.Components is
use Ocarina.Backends.PN.Iutils; use Ocarina.Backends.PN.Iutils;
use Ocarina.Aadl_Values; use Ocarina.Aadl_Values;
use Ocarina.Backends.Properties; use Ocarina.Backends.Properties;
use Namet; use Ocarina.Namet;
use AIN; use AIN;
use Ocarina.Backends.Utils; use Ocarina.Backends.Utils;
use Ocarina.Instances.Queries; use Ocarina.Instances.Queries;
...@@ -3185,7 +3185,7 @@ package body Ocarina.Backends.PN.Components is ...@@ -3185,7 +3185,7 @@ package body Ocarina.Backends.PN.Components is
use Ocarina.Backends.PN.Nutils; use Ocarina.Backends.PN.Nutils;
use Ocarina.Backends.PN.Iutils; use Ocarina.Backends.PN.Iutils;
use Ocarina.Aadl_Values; use Ocarina.Aadl_Values;
use Namet; use Ocarina.Namet;
type Thread_Pattern is array (Integer range <>) of Name_Id; type Thread_Pattern is array (Integer range <>) of Name_Id;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
with Charset; use Charset; with Charset; use Charset;
with Locations; use Locations; with Locations; use Locations;
with Namet; use Namet; with Ocarina.Namet; use Ocarina.Namet;
with Utils; use Utils; with Utils; use Utils;
package body Ocarina.Backends.PN.Debug is package body Ocarina.Backends.PN.Debug is
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- S p e c -- -- S p e c --
-- -- -- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -32,16 +32,16 @@ ...@@ -32,16 +32,16 @@
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Ocarina.Backends.PN.Nodes; use Ocarina.Backends.PN.Nodes; with Ocarina.Backends.PN.Nodes; use Ocarina.Backends.PN.Nodes;
with Output; use Output; with Ocarina.Output; use Ocarina.Output;
package Ocarina.Backends.PN.Debug is package Ocarina.Backends.PN.Debug is
N_Indents : Integer := -1; N_Indents : Integer := -1;
procedure W_Eol (N : Natural := 1) renames Output.Write_Eol; procedure W_Eol (N : Natural := 1) renames Ocarina.Output.Write_Eol;
procedure W_Int (N : Int) renames Output.Write_Int; procedure W_Int (N : Int) renames Ocarina.Output.Write_Int;
procedure W_Line (N : String) renames Output.Write_Line; procedure W_Line (N : String) renames Ocarina.Output.Write_Line;
procedure W_Str (N : String) renames Output.Write_Str; procedure W_Str (N : String) renames Ocarina.Output.Write_Str;
procedure W_Indents; procedure W_Indents;
procedure W_Boolean (N : Boolean); procedure W_Boolean (N : Boolean);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Output; with Ocarina.Output;
with Ocarina.Backends.PN.Debug; with Ocarina.Backends.PN.Debug;
with Ocarina.Backends.PN.Nodes; with Ocarina.Backends.PN.Nodes;
with Ocarina.Backends.PN.Nutils; with Ocarina.Backends.PN.Nutils;
with Namet; with Ocarina.Namet;
with Ocarina.AADL_Values; with Ocarina.AADL_Values;
with Ocarina.Backends.Utils; with Ocarina.Backends.Utils;
...@@ -53,10 +53,10 @@ package body Ocarina.Backends.PN.Format.Cami is ...@@ -53,10 +53,10 @@ package body Ocarina.Backends.PN.Format.Cami is
procedure Print_Place (Pn_Generated : Node_Id; procedure Print_Place (Pn_Generated : Node_Id;
Pn_P : Node_Id) Pn_P : Node_Id)
is is
use Output; use Ocarina.Output;
use Ocarina.Backends.PN.Debug; use Ocarina.Backends.PN.Debug;
use OPN; use OPN;
use Namet; use Ocarina.Namet;
use OAV; use OAV;
begin begin
...@@ -171,10 +171,10 @@ package body Ocarina.Backends.PN.Format.Cami is ...@@ -171,10 +171,10 @@ package body Ocarina.Backends.PN.Format.Cami is
procedure Print_Trans (Pn_Generated : Node_Id; procedure Print_Trans (Pn_Generated : Node_Id;
Pn_T : Node_Id) Pn_T : Node_Id)
is is
use Output; use Ocarina.Output;
use Ocarina.Backends.PN.Debug; use Ocarina.Backends.PN.Debug;
use OPN; use OPN;
use Namet; use Ocarina.Namet;
use OAV; use OAV;
use OPU; use OPU;
use Ocarina.Backends.Utils; use Ocarina.Backends.Utils;
...@@ -345,9 +345,9 @@ package body Ocarina.Backends.PN.Format.Cami is ...@@ -345,9 +345,9 @@ package body Ocarina.Backends.PN.Format.Cami is
procedure Print_Formalism_Information procedure Print_Formalism_Information
(Pn_Generated : Node_Id) (Pn_Generated : Node_Id)
is is
use Output; use Ocarina.Output;
use OPN; use OPN;
use Namet; use Ocarina.Namet;
use OAV; use OAV;
use OPU; use OPU;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2008-2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Output; with Ocarina.Output;
with Ocarina.Backends.PN.Nodes; with Ocarina.Backends.PN.Nodes;
with Ocarina.Backends.PN.Nutils; with Ocarina.Backends.PN.Nutils;
with Namet; with Ocarina.Namet;
with Ocarina.AADL_Values; with Ocarina.AADL_Values;
package body Ocarina.Backends.PN.Format.Tina is package body Ocarina.Backends.PN.Format.Tina is
...@@ -48,9 +48,9 @@ package body Ocarina.Backends.PN.Format.Tina is ...@@ -48,9 +48,9 @@ package body Ocarina.Backends.PN.Format.Tina is
------------------- -------------------
procedure Print_Place (Pn_Generated : Node_Id; Pn_P : Node_Id) is procedure Print_Place (Pn_Generated : Node_Id; Pn_P : Node_Id) is
use Output; use Ocarina.Output;
use OPN; use OPN;
use Namet; use Ocarina.Namet;
use OAV; use OAV;
begin begin
...@@ -68,9 +68,9 @@ package body Ocarina.Backends.PN.Format.Tina is ...@@ -68,9 +68,9 @@ package body Ocarina.Backends.PN.Format.Tina is
------------------- -------------------
procedure Print_Trans (Pn_Generated : Node_Id; Pn_T : Node_Id) is procedure Print_Trans (Pn_Generated : Node_Id; Pn_T : Node_Id) is
use Output; use Ocarina.Output;
use OPN; use OPN;
use Namet; use Ocarina.Namet;
use OAV; use OAV;
use OPU; use OPU;
...@@ -155,9 +155,9 @@ package body Ocarina.Backends.PN.Format.Tina is ...@@ -155,9 +155,9 @@ package body Ocarina.Backends.PN.Format.Tina is
procedure Print_Formalism_Information procedure Print_Formalism_Information
(Pn_Generated : Node_Id) (Pn_Generated : Node_Id)
is is
use Output; use Ocarina.Output;
use OPN; use OPN;
use Namet; use Ocarina.Namet;
use OAV; use OAV;
use OPU; use OPU;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2009 Telecom ParisTech, 2010-2012 ESA & ISAE. -- -- Copyright (C) 2009 Telecom ParisTech, 2010-2014 ESA & ISAE. --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Ocarina.AADL_Values;