home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adav313.zip / gnat-3_13p-os2-bin-20010916.zip / emx / gnatlib / a-timoio.ads < prev    next >
Text File  |  2000-07-19  |  3KB  |  67 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --               A D A . T E X T _ I O . M O D U L A R _ I O                --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.3 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18. --  In Ada 95, the package Ada.Text_IO.Modular_IO is a subpackage of Text_IO.
  19. --  This is for compatibility with Ada 83. In GNAT we make it a child package
  20. --  to avoid loading the necessary code if Modular_IO is not instantiated. See
  21. --  routine Rtsfind.Text_IO_Kludge for a description of how we patch up the
  22. --  difference in semantics so that it is invisible to the Ada programmer.
  23.  
  24. private generic
  25.    type Num is mod <>;
  26.  
  27. package Ada.Text_IO.Modular_IO is
  28.  
  29.    Default_Width : Field := Num'Width;
  30.    Default_Base  : Number_Base := 10;
  31.  
  32.    procedure Get
  33.      (File  : in File_Type;
  34.       Item  : out Num;
  35.       Width : in Field := 0);
  36.  
  37.    procedure Get
  38.      (Item  : out Num;
  39.       Width : in Field := 0);
  40.  
  41.    procedure Put
  42.      (File  : in File_Type;
  43.       Item  : in Num;
  44.       Width : in Field := Default_Width;
  45.       Base  : in Number_Base := Default_Base);
  46.  
  47.    procedure Put
  48.      (Item  : in Num;
  49.       Width : in Field := Default_Width;
  50.       Base  : in Number_Base := Default_Base);
  51.  
  52.    procedure Get
  53.      (From : in String;
  54.       Item : out Num;
  55.       Last : out Positive);
  56.  
  57.    procedure Put
  58.      (To   : out String;
  59.       Item : in Num;
  60.       Base : in Number_Base := Default_Base);
  61.  
  62. private
  63.    pragma Inline (Get);
  64.    pragma Inline (Put);
  65.  
  66. end Ada.Text_IO.Modular_IO;
  67.