[fpc-pascal] Proper preprocessor?

Sven Barth pascaldragon at googlemail.com
Wed Jun 20 18:48:48 CEST 2018


Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk> schrieb am Mi., 20.
Juni 2018, 18:38:

> On 20/06/18 14:45, Marc Santhoff wrote:
> > But I speak up for another reason:
> > Long ago, at the time of fpc 1.9.x or 2.0.x I did some digging in
> compilersource code, the lexer and parser part. IIRC there were some hooks
> for callinga proprocessor in the code at that time. If they are still
> there, wouldn't itbe a solution for both sides?
> > The compiler programmers only have to activate (or complete) a way to
> call apreprocessor, solving the problem of mangled error messages.
> > The preprocessor user could implement whatever is needed on his or her
> side?
> > My 2 cent,Marc
>
> Is that what the PREPROCWRITE define is for?
>

That is merely for the ability to output a preprocessed source file after
all the compiler directives and macros have been handled. AFAIK it hasn't
worked for a long time...

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180620/ee120e9c/attachment.html>


More information about the fpc-pascal mailing list