This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ada/5907: The Ada front end lacks a proper manual
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>, <brosgol at gnat dot com>
- Date: Sun, 10 Mar 2002 20:28:59 +0100
- Subject: Re: ada/5907: The Ada front end lacks a proper manual
- References: <Pine.LNX.4.33.0203101859070.31315-100000@kern.srcf.societies.cam.ac.uk>
"Joseph S. Myers" <jsm28@cam.ac.uk> writes:
> On Sun, 10 Mar 2002, Florian Weimer wrote:
>
>> We would need a couple of hundered macros, I think. For example, the
>> preprocessing rewrites all strings like "hello.adb" to "HELLO.ADB",
>> "hello.o" to "HELLO.OBJ", and so on. If you had to write
>> "@helloadb{}" and "@helloo{}", reading the sources would become rather
>> difficult.
>
> Define a macro that's used like @vmsfile{hello.adb}{HELLO.ADB}.
This still reduces readability to a certain extent. In addition,
there are about 100 command names and options which have to be
replaced in the VMS version. Of course, you could use the macro
approach for this one, too, but we decided not to do that.
Anyway, when I've finished writing the preprocessor, I can tweak it so
that it writes a macroized Texinfo version, and we can still decide if
we want to use this one, or the keep the preprocessor.