[fpc-devel] darwin - rtl include files

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 17 11:07:17 CEST 2006


On Wed, 17 May 2006 10:58:46 +0200 (CEST)
"Peter Vreman" <peter at freepascal.org> wrote:

> > On Wed, 17 May 2006 09:47:00 +0200 (Romance Daylight Time)
> > Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> >>
> >>
> >> On Wed, 17 May 2006, Vincent Snijders wrote:
> >>
> >> > Michael Van Canneyt schreef:
> >> >>
> >> >>
> >> >> On Wed, 17 May 2006, Marco van de Voort wrote:
> >> >>
> >> >>>>> Most logical would be to store the conditionals that pkg is
> >> compiled
> >> >
> >> >>>>> with in
> >> >>>>> package.fpc ?
> >> >>>>
> >> >>>> Well, the point is, you could get all source pathes from the
> >> >currently >>> valid ppus.
> >> >>>
> >> >>> If they are compiled on this system? Most people use precompiled
> >FPC > >in >> combination with lazarus.
> >> >>
> >> >> You don't need the sources. The .ppu contains everything you need.
> >> >>
> >> >
> >> > They don't contain implementation in human readable form. For example
> >> if
> >> > I  have the TComponent.Name property, I want to be able to jump to
> >> > TComponent.SetName method declaration and then to the implementation.
> >> > You  need sources for that. Does the ppu provide (relative) source
> >> > locations?
> >>
> >> According to daniel: yes
> >>
> >> But you should separate 2 things:
> >> - Provide feedback (tooltips, code completion)
> >> - View actual sources.
> >>
> >> For the first, the .ppu is enough. In Delphi 'Find declaration' also
> >> doesn't work half the time...
> >
> > Reading .ppu files is definitely planned for the codetools. But as
> > Daniel pointed out: If the .ppu format changes all ppu become
> > unreadable. While if
> > an include path changes in the FPC sources, only a few files can't be
> > browsed.
> > IMHO parsing .ppu is only a nice-to-have feature. The parsing of sources
> > has
> > higher priority.
> 
> This is incorrect, the generic .ppu format didn't change for the last
> several years. The code needed to parse ppu's and retrieve symbol info is
> also stable for the last years. See how good an old ppudump works on
> current ppu files. The changes in the ppu are only at the end of the
> entries and doesn't influence the start of the entries that contain the
> name and location.

Great. Then I will take a look.


Mattias



More information about the fpc-devel mailing list