Re: [fpc-pascal] Competitive advantage in showing proof of correctness

2007-08-15 Thread Vinzent Hoefler
On Wednesday 15 August 2007 00:40, mm wrote: there would not be much places where I could set {$R+} without having to reset {$R-} almost immediately. [EMAIL PROTECTED]:/opt/mdc/dtg/src grep \$R *.pas mdc0lzw.pas: {$IFOPT R+} {$DEFINE OPT_R} {$R-} {$ENDIF} mdc0lzw.pas: {$IFDEF OPT_R}

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 modified. FPC

[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

[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 some

[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

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

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). Thanks Vincent.

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. You must

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 has