diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-08-06 22:17:54 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-08-06 22:17:54 +1000 |
commit | 7cef684e71b64f00b41da66ba7bc581568d78f51 (patch) | |
tree | c187a50b13961b0cd8227dd0d54ec7958f131bbf /src/misc.ads | |
parent | 051ddb2a265dda897bce72edc318beadd111eba2 (diff) |
Factored out some trivial bits into Misc, made coding style more consistent
Diffstat (limited to 'src/misc.ads')
-rw-r--r-- | src/misc.ads | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/misc.ads b/src/misc.ads new file mode 100644 index 0000000..fb99d95 --- /dev/null +++ b/src/misc.ads @@ -0,0 +1,33 @@ + + +with + + Ada.Command_Line, + Ada.Directories; + + +package Misc is + + + Origin : constant String; + + + function Max + (A, B : in Integer) + return Integer; + + + function Min + (A, B : in Integer) + return Integer; + + +private + + + Origin : constant String := Ada.Directories.Containing_Directory + (Ada.Directories.Full_Name (Ada.Command_Line.Command_Name)); + + +end Misc; + |