-- --
-- B o d y --
-- --
--- Copyright (C) 1995-2010, AdaCore --
+-- Copyright (C) 1995-2015, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
separate (GNAT.IO)
procedure Put (C : Character) is
- procedure Putchar (C : Character);
+ procedure Putchar (C : Integer);
pragma Import (C, Putchar, "putchar");
begin
- Putchar (C);
+ Putchar (Character'Pos (C));
end Put;
-- then removing the extra backslashes from the argument.
Backslash_Is_Sep : constant Boolean := Directory_Separator = '\';
- -- Whether '\' is a directory separator (as on Windows), or a
- -- way to quote special characters.
+ -- Whether '\' is a directory separator (as on Windows), or a way to
+ -- quote special characters.
begin
Idx := Arg_String'First;
-- Following character is backquoted
- elsif not Backslash_Is_Sep
- and then Arg_String (Idx) = '\'
- then
+ elsif not Backslash_Is_Sep and then Arg_String (Idx) = '\' then
Backqd := True;
else