aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/prj-pars.ads
diff options
context:
space:
mode:
authorEmmanuel Briot <briot@adacore.com>2009-04-29 12:10:28 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2009-04-29 14:10:28 +0200
commitbd0a4cabe3f07ec4751ac3cecd4e35bfa2ca0906 (patch)
tree699db50c8964626cd1cf978fd50f643e924d553c /gcc/ada/prj-pars.ads
parent69cb258c42f443c2def36a9e6864c7a3538e323c (diff)
downloadgcc-bd0a4cabe3f07ec4751ac3cecd4e35bfa2ca0906.zip
gcc-bd0a4cabe3f07ec4751ac3cecd4e35bfa2ca0906.tar.gz
gcc-bd0a4cabe3f07ec4751ac3cecd4e35bfa2ca0906.tar.bz2
2009-04-29 Emmanuel Briot <briot@adacore.com>
* gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb (Set_In_Configuration, In_Configuration): Removed. Replaced by an extra parameter Is_Config_File in several parameter to avoid global variables to store the state of the parser. From-SVN: r146955
Diffstat (limited to 'gcc/ada/prj-pars.ads')
-rw-r--r--gcc/ada/prj-pars.ads8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/prj-pars.ads b/gcc/ada/prj-pars.ads
index 8c22ba4..02f1491 100644
--- a/gcc/ada/prj-pars.ads
+++ b/gcc/ada/prj-pars.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 2000-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2000-2009, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -36,7 +36,8 @@ package Prj.Pars is
Project_File_Name : String;
Packages_To_Check : String_List_Access := All_Packages;
When_No_Sources : Error_Warning := Error;
- Reset_Tree : Boolean := True);
+ Reset_Tree : Boolean := True;
+ Is_Config_File : Boolean);
-- Parse a project files and all its imported project files, in the
-- project tree In_Tree.
--
@@ -53,5 +54,8 @@ package Prj.Pars is
--
-- When Reset_Tree is True, all the project data are removed from the
-- project table before processing.
+ --
+ -- Is_Config_File should be set to True if the project represents a config
+ -- file (.cgpr) since some specific checks apply.
end Prj.Pars;