Commit 33f9ea08 by Emmanuel Briot Committed by Arnaud Charlet

prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows

2009-11-30  Emmanuel Briot  <briot@adacore.com>

	* prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
	* prj-attr.ads: Minor comment updates

From-SVN: r154790
parent 566d1cc1
2009-11-30 Emmanuel Briot <briot@adacore.com>
* prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
* prj-attr.ads: Minor comment updates
2009-11-30 Robert Dewar <dewar@adacore.com> 2009-11-30 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Document pragma Short_Circuit * gnat_rm.texi: Document pragma Short_Circuit
......
...@@ -46,15 +46,27 @@ package Prj.Attr is ...@@ -46,15 +46,27 @@ package Prj.Attr is
type Attribute_Kind is type Attribute_Kind is
(Unknown, (Unknown,
-- The attribute does not exist
Single, Single,
-- Single variable attribute (not an associative array)
Associative_Array, Associative_Array,
-- Associative array attribute with a case sensitive index
Optional_Index_Associative_Array, Optional_Index_Associative_Array,
-- Associative array attribute with a case sensitive index and an
-- optional source index.
Case_Insensitive_Associative_Array, Case_Insensitive_Associative_Array,
-- Associative array attribute with a case insensitive index
Optional_Index_Case_Insensitive_Associative_Array); Optional_Index_Case_Insensitive_Associative_Array);
-- Associative array attribute with a case insensitive index and an
-- optional source index.
-- Characteristics of an attribute. Optional_Index indicates that there -- Characteristics of an attribute. Optional_Index indicates that there
-- may be an optional index in the index of the associative array, as in -- may be an optional index in the index of the associative array, as in
-- for Switches ("files.ada" at 2) use ... -- for Switches ("files.ada" at 2) use ...
-- Above character literals should be documented ???
subtype Defined_Attribute_Kind is Attribute_Kind subtype Defined_Attribute_Kind is Attribute_Kind
range Single .. Optional_Index_Case_Insensitive_Associative_Array; range Single .. Optional_Index_Case_Insensitive_Associative_Array;
......
...@@ -3078,7 +3078,9 @@ package body Prj.Tree is ...@@ -3078,7 +3078,9 @@ package body Prj.Tree is
if At_Index /= 0 then if At_Index /= 0 then
if Attribute_Kind_Of (Start_At) = if Attribute_Kind_Of (Start_At) =
Optional_Index_Associative_Array Optional_Index_Associative_Array
or else Attribute_Kind_Of (Start_At) =
Optional_Index_Case_Insensitive_Associative_Array
then then
-- Results in: for Name ("index" at index) use "value"; -- Results in: for Name ("index" at index) use "value";
-- This is currently only used for executables -- This is currently only used for executables
......
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