From 80aeb5828dacd765b9dded31f586b871c3cb1dd6 Mon Sep 17 00:00:00 2001 From: charlet Date: Wed, 6 Jun 2007 10:47:30 +0000 Subject: 2007-04-20 Robert Dewar * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125462 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/sinput-l.ads | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/ada/sinput-l.ads') diff --git a/gcc/ada/sinput-l.ads b/gcc/ada/sinput-l.ads index 7a4dda8f4de..4fb6ba7d2e4 100644 --- a/gcc/ada/sinput-l.ads +++ b/gcc/ada/sinput-l.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2005, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2007, 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- -- @@ -65,6 +65,11 @@ package Sinput.L is -- Called on completing the parsing of a source file. This call completes -- the source file table entry for the current source file. + function Source_File_Is_No_Body (X : Source_File_Index) return Boolean; + -- Returns true if the designated source file contains pragma No_Body; + -- and no other tokens. If the source file contains anything other than + -- this sequence of three tokens, then False is returned. + function Source_File_Is_Subunit (X : Source_File_Index) return Boolean; -- This function determines if a source file represents a subunit. It -- works by scanning for the first compilation unit token, and returning -- cgit v1.2.1