From 7cef684e71b64f00b41da66ba7bc581568d78f51 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Sun, 6 Aug 2017 22:17:54 +1000 Subject: Factored out some trivial bits into Misc, made coding style more consistent --- src/misc.ads | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/misc.ads (limited to 'src/misc.ads') 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; + -- cgit