raw
ffa_ch4_ffacalc         1 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 2 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 3 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
ffa_ch4_ffacalc 4 -- --
ffa_ch4_ffacalc 5 -- (C) 2017 Stanislav Datskovskiy ( www.loper-os.org ) --
ffa_ch4_ffacalc 6 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
ffa_ch4_ffacalc 7 -- --
ffa_ch4_ffacalc 8 -- You do not have, nor can you ever acquire the right to use, copy or --
ffa_ch4_ffacalc 9 -- distribute this software ; Should you use this software for any purpose, --
ffa_ch4_ffacalc 10 -- or copy and distribute it to anyone or in any manner, you are breaking --
ffa_ch4_ffacalc 11 -- the laws of whatever soi-disant jurisdiction, and you promise to --
ffa_ch4_ffacalc 12 -- continue doing so for the indefinite future. In any case, please --
ffa_ch4_ffacalc 13 -- always : read and understand any software ; verify any PGP signatures --
ffa_ch4_ffacalc 14 -- that you use - for any purpose. --
ffa_ch4_ffacalc 15 -- --
ffa_ch4_ffacalc 16 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
ffa_ch4_ffacalc 17 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 18 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 19
ffa_ch4_ffacalc 20 with System;
ffa_ch4_ffacalc 21
ffa_ch4_ffacalc 22 package CmdLine is
ffa_ch4_ffacalc 23
ffa_ch4_ffacalc 24 -- IMHO this is reasonable.
ffa_ch4_ffacalc 25 CmdLineArg_Length : constant Positive := 256;
ffa_ch4_ffacalc 26
ffa_ch4_ffacalc 27 subtype CmdLineArg is String(1 .. CmdLineArg_Length);
ffa_ch4_ffacalc 28
ffa_ch4_ffacalc 29 function Initialized return Boolean;
ffa_ch4_ffacalc 30
ffa_ch4_ffacalc 31 function Arg_Count return Natural;
ffa_ch4_ffacalc 32 pragma Import(C, Arg_Count, "__gnat_arg_count");
ffa_ch4_ffacalc 33
ffa_ch4_ffacalc 34 procedure Get_Argument(Number : in Natural;
ffa_ch4_ffacalc 35 Result : out String);
ffa_ch4_ffacalc 36
ffa_ch4_ffacalc 37 private
ffa_ch4_ffacalc 38
ffa_ch4_ffacalc 39 procedure Fill_Arg (A : System.Address; Arg_Num : Integer);
ffa_ch4_ffacalc 40 pragma Import(C, Fill_Arg, "__gnat_fill_arg");
ffa_ch4_ffacalc 41
ffa_ch4_ffacalc 42 function Len_Arg (Arg_Num : Integer) return Integer;
ffa_ch4_ffacalc 43 pragma Import(C, Len_Arg, "__gnat_len_arg");
ffa_ch4_ffacalc 44
ffa_ch4_ffacalc 45 end CmdLine;