On Thu, 26 Apr 2007, Mattias Gaertner wrote:
> On Thu, 26 Apr 2007 10:25:05 +0200
> Marc Weustink <[EMAIL PROTECTED]> wrote:
>
> > Mattias Gaertner wrote:
> > > On Wed, 25 Apr 2007 20:57:26 +0200 (CEST)
> > > Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > >
> > >>
> > >> On Wed, 25 Apr 2007, Micha Nelissen wrote:
> > >>
> > >>> Mattias Gaertner wrote:
> > >>>> Then we need to store at least a checksum of the line somewhere.
> > >>>>
> > >>>> Or we store the whole hint. For example {%h-ID} and at the end of
> > >>>> the file a {%h:ID Hint: parameter X not used}.
> > >>> Hmm, or write a patch for fpc to be able to properly ignore
> > >>> certain warnings :-). FPC internally has IDs, but I don't think
> > >>> it exposes them now.
> > >
> > > Yes, this is possible if I dont want hints of a certain kind like
> > > 'Parameter not used'.
> > > But as Michael mentioned: This will not work with the released
> > > compiler.
> > >
> > > And I don't see how to hide one hint. For example 'does not seem to
> > > be initialized'. I only want to hide those places I checked, not
> > > all of them.
> >
> > What if we provide our own error.msg (eventually based on the
> > errore.msg of the selected compiler) with all messages prefixed with
> > a number ? Based on this file ppl can choose which messages should be
> > turned off or on.
>
> Good idea. This could also solve the
> localization. Run the compiler with our errore.msg file and translate
> them on the fly in the messages window.
> We need at least these things:
> - an errorlaz.msg with numbers/IDs
> - the errorXX.msg file of the chosen language
> - an update program to automatically update our errorlaz.msg whenever
> fpc changes/adds messages.
FPC comes with such a program, msgdif. We use it for our translations as well.
You could maybe adapt it. It can be used interactive or can produce a 'new'
file.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives