aunit-io.ads

1------------------------------------------------------------------------------
2-- --
3-- GNAT COMPILER COMPONENTS --
4-- --
5-- A U N I T . R E P O R T E R --
6-- --
7-- S p e c --
8-- --
9-- --
10-- Copyright (C) 2019, AdaCore --
11-- --
12-- GNAT is free software; you can redistribute it and/or modify it under --
13-- terms of the GNU General Public License as published by the Free Soft- --
14-- ware Foundation; either version 3, or (at your option) any later ver- --
15-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17-- or FITNESS FOR A PARTICULAR PURPOSE. --
18-- --
19-- As a special exception under Section 7 of GPL version 3, you are granted --
20-- additional permissions described in the GCC Runtime Library Exception, --
21-- version 3.1, as published by the Free Software Foundation. --
22-- --
23-- You should have received a copy of the GNU General Public License and --
24-- a copy of the GCC Runtime Library Exception along with this program; --
25-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
26-- <http://www.gnu.org/licenses/>. --
27-- --
28-- GNAT is maintained by AdaCore (http://www.adacore.com) --
29-- --
30------------------------------------------------------------------------------
31
32with Ada.Text_IO;
33with Ada.Integer_Text_IO;
34
35package AUnit.IO is
36
37 subtype File_Type is Ada.Text_IO.File_Type;
38
39 subtype File_Access is Ada.Text_IO.File_Access;
40
41 function Standard_Output
42 return File_Access renames Ada.Text_IO.Standard_Output;
43
44 procedure Put (File : File_Type;
45 Item : Integer;
46 Width : Ada.Text_IO.Field := Ada.Integer_Text_IO.Default_Width;
47 Base : Ada.Text_IO.Number_Base := Ada.Integer_Text_IO.Default_Base)
48 renames Ada.Integer_Text_IO.Put;
49
50 procedure Put (File : File_Type;
51 Item : String) renames Ada.Text_IO.Put;
52
53 procedure Put_Line (File : File_Type;
54 Item : String) renames Ada.Text_IO.Put_Line;
55
56 procedure New_Line (File : File_Type;
57 Spacing : Ada.Text_IO.Positive_Count := 1) renames Ada.Text_IO.New_Line;
58
59end AUnit.IO;