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}
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
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
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
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
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
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.
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
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