ffa_ch4_ffacalc.kv 1
ffa_ch4_ffacalc.kv 2
ffa_ch4_ffacalc.kv 3
ffa_ch4_ffacalc.kv 4
ffa_ch15_gcd.kv 5
ffa_ch4_ffacalc.kv 6
ffa_ch4_ffacalc.kv 7
ffa_ch4_ffacalc.kv 8
ffa_ch4_ffacalc.kv 9
ffa_ch4_ffacalc.kv 10
ffa_ch4_ffacalc.kv 11
ffa_ch4_ffacalc.kv 12
ffa_ch4_ffacalc.kv 13
ffa_ch4_ffacalc.kv 14
ffa_ch4_ffacalc.kv 15
ffa_ch4_ffacalc.kv 16
ffa_ch4_ffacalc.kv 17
ffa_ch4_ffacalc.kv 18
ffa_ch4_ffacalc.kv 19
ffa_ch4_ffacalc.kv 20 package body OS is
ffa_ch4_ffacalc.kv 21
ffa_ch4_ffacalc.kv 22
ffa_ch4_ffacalc.kv 23 function Read_Char(C : out Character) return Boolean is
ffa_ch4_ffacalc.kv 24 i : int;
ffa_ch4_ffacalc.kv 25 Result : Boolean := False;
ffa_ch4_ffacalc.kv 26 begin
ffa_ch4_ffacalc.kv 27 i := GetChar;
ffa_ch4_ffacalc.kv 28 if i /= EOF then
ffa_ch4_ffacalc.kv 29 C := Character'Val(i);
ffa_ch4_ffacalc.kv 30 Result := True;
ffa_ch4_ffacalc.kv 31 end if;
ffa_ch4_ffacalc.kv 32 return Result;
ffa_ch4_ffacalc.kv 33 end Read_Char;
ffa_ch4_ffacalc.kv 34
ffa_ch4_ffacalc.kv 35
ffa_ch4_ffacalc.kv 36
ffa_ch4_ffacalc.kv 37 procedure Write_Char(C : in Character) is
ffa_ch4_ffacalc.kv 38 R : int;
ffa_ch4_ffacalc.kv 39 pragma Unreferenced(R);
ffa_ch4_ffacalc.kv 40 begin
ffa_ch4_ffacalc.kv 41 R := PutChar(int(Character'Pos(C)));
ffa_ch4_ffacalc.kv 42 end Write_Char;
ffa_ch4_ffacalc.kv 43
ffa_ch4_ffacalc.kv 44
ffa_ch4_ffacalc.kv 45
ffa_ch4_ffacalc.kv 46 procedure Write_Newline is
ffa_ch4_ffacalc.kv 47 begin
ffa_ch4_ffacalc.kv 48 Write_Char(Character'Val(16#A#));
ffa_ch4_ffacalc.kv 49 end Write_Newline;
ffa_ch4_ffacalc.kv 50
ffa_ch4_ffacalc.kv 51
ffa_ch11_tuning_a... 52
ffa_ch11_tuning_a... 53 procedure Write_String(S : in String) is
ffa_ch11_tuning_a... 54 begin
ffa_ch11_tuning_a... 55 for i in S'Range loop
ffa_ch11_tuning_a... 56 Write_Char(S(i));
ffa_ch11_tuning_a... 57 end loop;
ffa_ch11_tuning_a... 58 end Write_String;
ffa_ch11_tuning_a... 59
ffa_ch11_tuning_a... 60
ffa_ch4_ffacalc.kv 61
ffa_ch4_ffacalc.kv 62 procedure Eggog(M : String) is
ffa_ch4_ffacalc.kv 63 begin
ffa_ch4_ffacalc.kv 64 for i in 1 .. M'Length loop
ffa_ch4_ffacalc.kv 65 To_Stderr(M(I));
ffa_ch4_ffacalc.kv 66 end loop;
ffa_ch4_ffacalc.kv 67
ffa_ch4_ffacalc.kv 68
ffa_ch4_ffacalc.kv 69 To_Stderr(Character'Val(16#A#));
ffa_ch4_ffacalc.kv 70
ffa_ch4_ffacalc.kv 71
ffa_ch17_peh.kv 72 Quit(Sad_Code);
ffa_ch17_peh.kv 73 end Eggog;
ffa_ch17_peh.kv 74
ffa_ch17_peh.kv 75
ffa_ch17_peh.kv 76 procedure Achtung(M : String) is
ffa_ch17_peh.kv 77 begin
ffa_ch17_peh.kv 78 for i in 1 .. M'Length loop
ffa_ch17_peh.kv 79 To_Stderr(M(I));
ffa_ch17_peh.kv 80 end loop;
ffa_ch17_peh.kv 81
ffa_ch17_peh.kv 82
ffa_ch17_peh.kv 83 To_Stderr(Character'Val(16#A#));
ffa_ch17_peh.kv 84 end Achtung;
ffa_ch4_ffacalc.kv 85
ffa_ch4_ffacalc.kv 86 end OS;