On 3/19/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
> The other problem I have, is duplication. Why does Lazarus have a copy
> of the ptopu.pp unit?
Because the .ppu file is not part of fpc 2.0.4 and the ptopu.pp are
different.
I'm not sure understand your answer about the .ppu file? Do you mean
the ptopu.ppu file isn't with all the other .ppu files in the
/lib/fpc/units directory, so the seach path is a problem? Maybe they
(FPC developers) can modify the makefile or something so the compiled
units from the /utils path could be used more easily.
> Yes there are some minor changes, but that is
> something that should rather go to the FPC code as well.
Minor? I got a quite big diff.
Not in my diff! A block of enums where arranged one per line so
comments could be added next to them. Then some other minor change was
four 'var' parameters changed to 'out' parameters.
Another two other changes just remove compiler warnings. I did a diff
against a two week old FPC (svn revision).
> Can Lazarus find/reference units in the FPC's /utils directory?
Sure. Add $(FPCSrcDir)/utils/ to the unit path.
So adding that to the prettyformat package, it should work even if the
ptopu.ppu isn't in the general FPC units/ directory. That means there
is no need to have a duplicate ptopu.pp unit, right?
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives