Re: [fpc-pascal] Handling recursive symlinks in Linux

2011-02-19 Thread Michael Van Canneyt
On Sat, 19 Feb 2011, brian wrote: I'm trying to convert a Delphi console-mode program which needs to walk directory trees to FP **and Linux** - is there a standard way to detect and handle recursive symlinks, if the user has been daft enough to create them? You can use faSymLink in

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Marco van de Voort
In our previous episode, waldo kitty said: Fatal: Can't find unit dynlibs used by synafpc Odd. Dos doesn't support a common dll/shared library format (though some toolchains do on their own, FPC doesn't atm). But OS/2 does have dlls, and afaik has unit dynlibs, so that is a bit strange.

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Sven Barth
On 18.02.2011 19:19, Mark Morgan Lloyd wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to find out where it's failing. Before I start giving myself a gdb refresher course or manually inserting trace messages, is

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Henry Vermaak
On 18 February 2011 18:19, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to find out where it's failing. Before I start giving myself a gdb refresher course or

Re: [fpc-pascal] Handling recursive symlinks in Linux

2011-02-19 Thread Jonas Maebe
On 19 Feb 2011, at 07:57, brian wrote: I'm trying to convert a Delphi console-mode program which needs to walk directory trees to FP **and Linux** - is there a standard way to detect and handle recursive symlinks, if the user has been daft enough to create them? Many programs handle this

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 02:41, waldo kitty wrote: On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: First of all, you should check whether the missing units are supposed to be platform independent or not. yes, part of what i'm running into is

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 06:36, waldo kitty wrote: On 2/18/2011 04:47, Tomas Hajny wrote: On Fri, February 18, 2011 02:24, waldo kitty wrote: . . ok, as i wrote before, i would attempt to provide more information... here's what i'm getting with the attached source code when attempting to

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to find out where it's failing. Before I start giving myself a gdb

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Tomas Hajny
On Sat, February 19, 2011 15:18, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I need to trace through a program, running on two different systems which might or might not have the same OS, in order to

Re: [fpc-pascal] Fingerprinting operation of a program

2011-02-19 Thread Mark Morgan Lloyd
Tomas Hajny wrote: On Sat, February 19, 2011 15:18, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 18 February 2011 18:19, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I need to trace through a program, running on two different systems which might or might not have the same

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread waldo kitty
On 2/19/2011 05:30, Marco van de Voort wrote: In our previous episode, waldo kitty said: Fatal: Can't find unit dynlibs used by synafpc Odd. Dos doesn't support a common dll/shared library format (though some toolchains do on their own, right... the closest would be the old OVR/OVL

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread waldo kitty
On 2/19/2011 08:45, Tomas Hajny wrote: On Sat, February 19, 2011 06:36, waldo kitty wrote: Fatal: Can't find unit dynlibs used by synafpc Yes - unit dynlibs (loading of DLLs on demand) is not supported under GO32v2 for obvious reasons... yep! i was also incorrect... on the OS/2 box, in

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On 19 Feb 11, at 14:53, waldo kitty wrote: On 2/19/2011 08:45, Tomas Hajny wrote: On Sat, February 19, 2011 06:36, waldo kitty wrote: Fatal: Can't find unit dynlibs used by synafpc Yes - unit dynlibs (loading of DLLs on demand) is not supported under GO32v2 for obvious reasons...

Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-19 Thread Bernd Kreuss
On 08.02.2011 09:34, Ben wrote: What is the programming language used in and with the Free Pascal Compiler? * Object Pascal * Delphi * Free Pascal * Pascal How about calling it Pascal, implicitly stating that Pascal nowadays is OO anyways, a fact that does not need to be mentioned

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread waldo kitty
On 2/19/2011 15:27, Tomas Hajny wrote: On 19 Feb 11, at 14:53, waldo kitty wrote: i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2, it is giving the following... Fatal: Can't find unit UnixUtil used by synautil i'm using synautil for the space trimming functions and

Re: [fpc-pascal] help with synapse mime routines...

2011-02-19 Thread Tomas Hajny
On 19 Feb 11, at 18:34, waldo kitty wrote: On 2/19/2011 15:27, Tomas Hajny wrote: On 19 Feb 11, at 14:53, waldo kitty wrote: i was also incorrect... on the OS/2 box, in Mode: DEBUG with Target: OS/2, it is giving the following... Fatal: Can't find unit UnixUtil used by synautil i'm

[fpc-pascal] Re: assign code to a method

2011-02-19 Thread Angel Montesinos
El 18/02/2011 13:46, Sven Barth escribió: I personally would say that mapping a page with the Execute flag set and storing the to-be-executed content there should be enough. After all JIT compilers must do that as well. ;) Thanks. I shall study this issue. -- montesin at uv dot es

[fpc-pascal] Re: assign code to a method

2011-02-19 Thread Angel Montesinos
El 18/02/2011 17:59, Andrew Haines escribió: From the other comments it seems like you are writing some assembly to memory at runtime then calling that code? That is right. If so then maybe the following can help you. ...code... so the usage would be like so function