On Mon, 19 Mar 2007 11:48:39 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> 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). Maybe a fpc 2.3.1 ? I diffed with fpc 2.0.5. > > > 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. It will work *only* because there is no ptopu.ppu installed by Free Pascal. As soon as Free Pascal installs the ptopu.ppu the IDE will warn for ambigious units. > That means there > is no need to have a duplicate ptopu.pp unit, right? You need to find a solution for fpc 2.0.4 and 2.3.x. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives