Re: [fpc-pascal] About the bug report #9408...

2007-08-15 Thread mm
Peter Vreman a écrit : Compelling FPC 2.1.4 to behave like FPC 2.0.4 is not very difficult. In a program where you have "A := B - C;" (A,B,C being Longwords), it is sufficient to write "A := Longword(Longint(B) - Longint(C));" and all is right. The most difficult is to find which lines of code ha

Re: [fpc-pascal] Target path of a SymLink file

2007-08-15 Thread Michael Van Canneyt
On Wed, 15 Aug 2007, Graeme Geldenhuys wrote: > On 15/08/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > In the mean time I grep searched all the FPC src and couldn't find > > > such a function. For now I implemented some $I included file trickery > > > to avoid IFDEF's in my code. > >

Re: [fpc-pascal] Target path of a SymLink file

2007-08-15 Thread Graeme Geldenhuys
On 15/08/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > In the mean time I grep searched all the FPC src and couldn't find > > such a function. For now I implemented some $I included file trickery > > to avoid IFDEF's in my code. > > You must have missed > > fpReadLink My search string ha

Re: [fpc-pascal] Target path of a SymLink file

2007-08-15 Thread Michael Van Canneyt
On Wed, 15 Aug 2007, Graeme Geldenhuys wrote: > On 15/08/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: > > > > If you cannot find it in the RTL, consider submitting ReadAllLinks from the > > LCL's > > fileutil unit to the FPC team. At least it doesn't depend on libc > > (directly). > > Than

Re: [fpc-pascal] Target path of a SymLink file

2007-08-15 Thread Graeme Geldenhuys
On 15/08/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: > > If you cannot find it in the RTL, consider submitting ReadAllLinks from the > LCL's > fileutil unit to the FPC team. At least it doesn't depend on libc (directly). Thanks Vincent. I'll go have a look. In the mean time I grep searched a

Re: [fpc-pascal] Target path of a SymLink file

2007-08-15 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, Is there a function in SysUtils or some other place in RTL that I can use to extract the target path of a symlink file? I'm using FindFirst/FindNext. The sr.Attrib and faSymLink is True, but I can't (in a easy way) see how I can actually find out where it points

[fpc-pascal] Target path of a SymLink file

2007-08-15 Thread Graeme Geldenhuys
Hi, Is there a function in SysUtils or some other place in RTL that I can use to extract the target path of a symlink file? I'm using FindFirst/FindNext. The sr.Attrib and faSymLink is True, but I can't (in a easy way) see how I can actually find out where it points to. I'm thinking x-platform h

[fpc-pascal] Re: extracting file attributes

2007-08-15 Thread Graeme Geldenhuys
Sorry, I'm being stupid!!! TSearchRec gives me everything I need. How did I miss that! :) Graeme. On 15/08/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a x-platform file attributes function in the RTL? I'm > creating a file grid component in fpGUI and need to extract s

[fpc-pascal] extracting file attributes

2007-08-15 Thread Graeme Geldenhuys
Hi, Is there a x-platform file attributes function in the RTL? I'm creating a file grid component in fpGUI and need to extract some information about each file. Info like: Size, Attributes (win32) or Mode (linux), Mod Date, Group, Owner, Is symbolic link, etc.. I can abstract those parts to be i

Re: [fpc-pascal] About the bug report #9408...

2007-08-15 Thread Peter Vreman
> Compelling FPC 2.1.4 to behave like FPC 2.0.4 is not very difficult. > In a program where you have "A := B - C;" (A,B,C being Longwords), it > is sufficient to write "A := Longword(Longint(B) - Longint(C));" and all > is right. The most difficult is to find which lines of code has to be > modifie