[lazarus] Win32 Code Analysis
Cryst
cryst at golden.net
Fri Mar 30 14:20:58 EST 2001
I looked into doing this a while back. The job is big. I looked at it as
two parts. First do the FPC and then the Lazarus. Just so that development
time would be shortened.
I wanted to re-compile the fpc in Delphi so I would not loose the
cross-platform compatiblity. The first part of the job was renaming all the
.pp files to .pas files. I have no idea why FPC uses .pp as the extension,
but using .pas makes the Delphi compatiablity much more easy. After a long
time renaming files, (I suppose I could have been more effecient) I started
recompiling the fpc under Delphi. Unfortunetly the FPC has all these
extensions to the language which makes it not-Delphi compatible. I started
ifdef'ing my way around them but after a while decided that it was too big a
job for the amount of payback.
Then I looked at Lazarus. Same type of problem. Gave up.
This is not to discourage you though. I simply didn't have the time to
spend, but with multiple hands the work would go much faster. So in view of
this, I have some questions
1. Why are the source files named with the extension .pp. If the fpc
compiler is Delphi compatible, why would the defualt extension be different?
Is there a reason for this that I'm just not seeing? What would be the
disadvantages to moving all lazarus (and fpc) source to .pas extensions?
2. Is there a way of making global macros in delphi that is simular to C.
What I mean is is there a nice way of emulating fpc's extensions (like ++)
in Delphi so that a common source that uses the extensions can be
maintained, without all the ugly ifdef's (which defeat the purpose of the
extensions in the first place).
Chris Bruner
----- Original Message -----
From: "Eric Lai" <ericlai116 at hotmail.com>
To: <lazarus at miraclec.com>
Sent: Friday, March 30, 2001 3:34 PM
Subject: [lazarus] Win32 Code Analysis
> After reading the discussion about the problems which occured in the Win32
> code. I have decided to analysis the code and rewrite it in Delphi 5. I
> believe that the development will be quicker and also produce faster and
> smaller exe. If you would like to help please contact me.
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list