[fpc-devel] suggestion: AllFilesMask constant

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Mar 25 09:36:55 CET 2008


On Tue, 25 Mar 2008 10:30:28 +0200
"Graeme Geldenhuys" <graemeg.lists at gmail.com> wrote:

> Hi,
> 
> Could FPC add a new 'all files' constant (eg: AllFilesMask) to the
> RTL. Same as what we have PathDelimiter etc..

Please do a find declaration. AllFilesMask is in the system unit.

Mattias

 
> Lazarus LCL, fpGUI, tiOPF and I'm pretty sure MSEgui has it's own
> definition of this. That's just four projects I know about. That
> constant should really be part of the RTL as it's a very common
> constant to use.
> 
> const
>   {$IFDEF WINDOWS}
>   AllFilesMask := '*.*';
>   {$ELSE}
>   AllFilesMask := '*';
>   {$ENDIF}
> 
> 
> 
> 
> ---------- Forwarded message ----------
> From: Graeme Geldenhuys <graemeg.lists at gmail.com>
> Date: 25 Mar 2008 10:22
> Subject: Re: [Lazarus] FindFile in sub directories using filter
> '*.cfg' To: General mailing list <lazarus at lazarus.freepascal.org>
> 
> 
> On 25/03/2008, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>  >  > I really think FPC should have a AllFiles file mask in the RTL,
>  >  > like it has for Path Delimiters etc...  I've created numerous
>  >  > projects where I used IFDEF's to define a cAllFiles constant
>  >  > for specific platforms.
>  >
>  >
>  > AllFilesMask
>  >
>  >  Mattias
> 
> 
> 
> Exactly my point. Lazarus has that defined, fpGUI has that defined and
>  I'm pretty sure MSEgui has it defined as well.  That constant should
>  really be defined in Free Pascal's RTL, so everybody can use it!
> 
> 
> Regards,
>   - Graeme -
> ------------------------[ end ]------------------
> 
> 
> 
> 
> Regards,
>   - Graeme -
> 
> 
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel



More information about the fpc-devel mailing list