OSDN Git Service

* gcc-interface/trans.c (add_decl_expr): At toplevel, mark the
[pf3gnuchains/gcc-fork.git] / gcc / ada / scn.ads
index 23741e8..eb6be5e 100644 (file)
@@ -6,18 +6,17 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---          Copyright (C) 1992-2002 Free Software Foundation, Inc.          --
+--          Copyright (C) 1992-2008, 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- --
--- ware  Foundation;  either version 2,  or (at your option) any later ver- --
+-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
--- Public License  distributed with GNAT;  see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- Public License  distributed with GNAT; see file COPYING3.  If not, go to --
+-- http://www.gnu.org/licenses for a complete copy of the license.          --
 --                                                                          --
 -- GNAT was originally developed  by the GNAT team at  New York University. --
 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
@@ -48,6 +47,13 @@ package Scn is
    --  Determines the casing style of the current token, which is
    --  either a keyword or an identifier. See also package Casing.
 
+   procedure Obsolescent_Check (S : Source_Ptr);
+   --  Called to handle pragma restrictions check for usage of obsolescent
+   --  character replacements during the scan.
+
+   procedure Set_Obsolescent_Check (Value : Boolean);
+   --  Activate or not obsolescent check
+
    procedure Post_Scan;
    pragma Inline (Post_Scan);
    --  Create nodes for tokens: Char_Literal, Identifier, Real_Literal,
@@ -69,12 +75,13 @@ package Scn is
    --  generic package Scng with routines appropriate to the compiler
 
    package Scanner is new Scng
-     (Post_Scan    => Post_Scan,
-      Error_Msg    => Error_Msg,
-      Error_Msg_S  => Error_Msg_S,
-      Error_Msg_SC => Error_Msg_SC,
-      Error_Msg_SP => Error_Msg_SP,
-      Style        => Style.Style_Inst);
+     (Post_Scan         => Post_Scan,
+      Error_Msg         => Error_Msg,
+      Error_Msg_S       => Error_Msg_S,
+      Error_Msg_SC      => Error_Msg_SC,
+      Error_Msg_SP      => Error_Msg_SP,
+      Obsolescent_Check => Obsolescent_Check,
+      Style             => Style.Style_Inst);
 
    procedure Scan renames Scanner.Scan;
    --  Scan scans out the next token, and advances the scan state accordingly