[lazarus] Win32 Code Analysis

Florian Klaempfl florian at klaempfl.de
Sat Mar 31 03:59:59 EST 2001


At 11:54 30.03.01 -0500, you wrote:
>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?

If you've FPC and Delphi files on your PC, you (or windows) can distinct 
between them to
start the right editor when double clicking them.

>Is there a reason for this that I'm just not seeing?

One (and the main) reason is history:
The very first versions of FPC ('93, the 0.1
versions) were no real pascal, it was some kind of "Pascal++", so
I decided to name the source files .pp and this extensions
is still used. The reason why the compiler files have the extension
.pas is also easy to explain: FPC was bootstrapped using TP 7.0 and then
we never changed it to .pp.

>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
>
>_________________________________________________________________
>      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