OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [get_alfa.ads] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT COMPILER COMPONENTS                         --
4
--                                                                          --
5
--                             G E T _ A L F A                              --
6
--                                                                          --
7
--                                 S p e c                                  --
8
--                                                                          --
9
--             Copyright (C) 2011, Free Software Foundation, Inc.           --
10
--                                                                          --
11
-- GNAT is free software;  you can  redistribute it  and/or modify it under --
12
-- terms of the  GNU General Public License as published  by the Free Soft- --
13
-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14
-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15
-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17
-- for  more details.  You should have  received  a copy of the GNU General --
18
-- Public License  distributed with GNAT; see file COPYING3.  If not, go to --
19
-- http://www.gnu.org/licenses for a complete copy of the license.          --
20
--                                                                          --
21
-- GNAT was originally developed  by the GNAT team at  New York University. --
22
-- Extensive contributions were provided by Ada Core Technologies Inc.      --
23
--                                                                          --
24
------------------------------------------------------------------------------
25
 
26
--  This package contains the function used to read Alfa information from an
27
--  ALI file and populate the tables defined in package Alfa with the result.
28
 
29
generic
30
   --  These subprograms provide access to the ALI file. Locating, opening and
31
   --  providing access to the ALI file is the callers' responsibility.
32
 
33
   with function Getc return Character is <>;
34
   --  Get next character, positioning the ALI file ready to read the following
35
   --  character (equivalent to calling Nextc, then Skipc). If the end of file
36
   --  is encountered, the value Types.EOF is returned.
37
 
38
   with function Nextc return Character is <>;
39
   --  Look at the next character, and return it, leaving the position of the
40
   --  file unchanged, so that a subsequent call to Getc or Nextc will return
41
   --  this same character. If the file is positioned at the end of file, then
42
   --  Types.EOF is returned.
43
 
44
   with procedure Skipc is <>;
45
   --  Skip past the current character (which typically was read with Nextc),
46
   --  and position to the next character, which will be returned by the next
47
   --  call to Getc or Nextc.
48
 
49
procedure Get_Alfa;
50
--  Load Alfa information from ALI file text format into internal Alfa tables
51
--  (Alfa.Alfa_Xref_Table, Alfa.Alfa_Scope_Table and Alfa.Alfa_File_Table). On
52
--  entry the input file is positioned to the initial 'F' of the first Alfa
53
--  line in the ALI file. On return, the file is positioned either to the end
54
--  of file, or to the first character of the line following the Alfa
55
--  information (which will never start with an 'F').
56
--
57
--  If a format error is detected in the input, then an exception is raised
58
--  (Ada.IO_Exceptions.Data_Error), with the file positioned to the error.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.