------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- You do not have, nor can you ever acquire the right to use, copy or -- -- distribute this software ; Should you use this software for any purpose, -- -- or copy and distribute it to anyone or in any manner, you are breaking -- -- the laws of whatever soi-disant jurisdiction, and you promise to -- -- continue doing so for the indefinite future. In any case, please -- -- always : read and understand any software ; verify any PGP signatures -- -- that you use - for any purpose. -- -- -- -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Version for use with C run time package body Ada.Text_IO is -------------- -- New_Line -- -------------- procedure New_Line is begin Put (ASCII.LF); end New_Line; --------- -- Put -- --------- procedure Put (Item : Character) is function Putchar (C : Integer) return Integer; pragma Import (C, Putchar); Ignore : Integer; begin Ignore := Putchar (Character'Pos (Item)); end Put; procedure Put (Item : String) is begin for J in Item'Range loop Put (Item (J)); end loop; end Put; -------------- -- Put_Line -- -------------- procedure Put_Line (Item : String) is begin Put (Item); New_Line; end Put_Line; end Ada.Text_IO;