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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [xutil.adb] - Blame information for rev 706

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                          GNAT SYSTEM UTILITIES                           --
4
--                                                                          --
5
--                                X U T I L                                 --
6
--                                                                          --
7
--                                 B o d y                                  --
8
--                                                                          --
9
--          Copyright (C) 1992-2008, 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
package body XUtil is
27
 
28
   use Ada.Strings.Unbounded;
29
   use Ada.Streams.Stream_IO;
30
 
31
   --------------
32
   -- New_Line --
33
   --------------
34
 
35
   procedure New_Line (F : Sfile) is
36
   begin
37
      Character'Write (Stream (F), ASCII.LF);
38
   end New_Line;
39
 
40
   ---------
41
   -- Put --
42
   ---------
43
 
44
   procedure Put (F : Sfile; S : String) is
45
   begin
46
      String'Write (Stream (F), S);
47
   end Put;
48
 
49
   ---------
50
   -- Put --
51
   ---------
52
 
53
   procedure Put (F : Sfile; S : VString) is
54
   begin
55
      Put (F, To_String (S));
56
   end Put;
57
 
58
   --------------
59
   -- Put_Line --
60
   --------------
61
 
62
   procedure Put_Line (F : Sfile; S : String) is
63
   begin
64
      Put (F, S);
65
      New_Line (F);
66
   end Put_Line;
67
 
68
   --------------
69
   -- Put_Line --
70
   --------------
71
 
72
   procedure Put_Line (F : Sfile; S : VString) is
73
   begin
74
      Put_Line (F, To_String (S));
75
   end Put_Line;
76
 
77
end XUtil;

powered by: WebSVN 2.1.0

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