+2011-09-02 Pascal Obry <obry@adacore.com>
+
+ * prj.adb: Minor code refactoring. Move check for null project in
+ Project_Changed.
+ * projects.texi: Fix minor typos.
+
2011-09-02 Ed Schonberg <schonberg@adacore.com>
* sem_ch5.adb (Analyze_Iterator_Specification): If the domain
procedure Project_Changed (Iter : in out Source_Iterator) is
begin
- Iter.Language := Iter.Project.Project.Languages;
- Language_Changed (Iter);
+ if Iter.Project /= null then
+ Iter.Language := Iter.Project.Project.Languages;
+ Language_Changed (Iter);
+ end if;
end Project_Changed;
----------------------
if Iter.All_Projects then
Iter.Project := Iter.Project.Next;
- if Iter.Project /= null then
- Project_Changed (Iter);
- end if;
+ Project_Changed (Iter);
else
Iter.Project := null;
Tree : Project_Tree_Ref)
is
List : Project_List;
- Agg : Aggregated_Project_List;
begin
if not Get (Seen, Project) then
if Include_Aggregated
and then Project.Qualifier = Aggregate
then
- Agg := Project.Aggregated_Projects;
- while Agg /= null loop
- pragma Assert (Agg.Project /= No_Project);
- Recursive_Check (Agg.Project, Agg.Tree);
- Agg := Agg.Next;
- end loop;
+ declare
+ Agg : Aggregated_Project_List;
+ begin
+ Agg := Project.Aggregated_Projects;
+ while Agg /= null loop
+ pragma Assert (Agg.Project /= No_Project);
+ Recursive_Check (Agg.Project, Agg.Tree);
+ Agg := Agg.Next;
+ end loop;
+ end;
end if;
if Imported_First then
@itemize @bullet
@item Languages
-@item Source_files, Source_List_File and other attributes dealing with
+@item Source_Files, Source_List_File and other attributes dealing with
list of sources.
@item Source_Dirs, Exec_Dir and Object_Dir
@item Library_Dir, Library_Name and other library-related attributes
@item Inherit_Source_Path
@item Excluded_Source_Dirs
@item Locally_Removed_Files
-@item Excluded_Source_Fies
+@item Excluded_Source_Files
@item Excluded_Source_List_File
@item Interfaces
@end itemize