-- --
-- B o d y --
-- --
--- --
--- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2002 Free Software Foundation, Inc. --
-- --
-- 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- --
Rtn : VString := Nul;
Term : VString := Nul;
+ InB : File_Type;
+ -- Used to read initial header from body
+
InF : File_Type;
-- Used to read full text of both spec and body
Create (Ofile, Out_File, "a-einfo.h");
end if;
+ Open (InB, In_File, "einfo.adb");
Open (InF, In_File, "einfo.ads");
Lineno := 0;
-
- -- Write header to output file
-
loop
Line := Get_Line (InF);
Lineno := Lineno + 1;
Match (Line,
"-- S p e c ",
"-- C Header File ");
-
Match (Line, "--", "/*");
Match (Line, Rtab (2) * A & "--", M);
Replace (M, A & "*/");
while Match (Line, Get_FN) loop
- -- Non-inlined function
+ -- Non-inlined funcion
if not Present (Inlined, FN) then
Put_Line (Ofile, "");
-- Read body to find inlined functions
+ Close (InB);
Close (InF);
Open (InF, In_File, "einfo.adb");
Lineno := 0;