Re: [fpc-pascal] Pass array of record as parameter

2012-02-10 Thread Sven Barth
Am 10.02.2012 04:41, schrieb Thomas Young: Forgive me for being in wide-eyed wonder but my goodness this is more than a nice feature. Brilliant. I feel like a child who has played with toy blocks all these years and who now received keys to a ferrari. You might get this feeling for often when y

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Jonas Maebe
On 10 Feb 2012, at 08:25, Koenraad Lelong wrote: make rtl_all FPC=/home/koenraad/devel/fpc-svn/compiler/ppcrossarm RELEASE=1 make[1]: Map '/home/koenraad/devel/fpc-svn' wordt binnengegaan make -C rtl all make[2]: Map '/home/koenraad/devel/fpc-svn/rtl' wordt binnengegaan make -C embedded all m

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Koenraad Lelong
On 10-02-12 11:30, Jonas Maebe wrote: Now I see: that compilerproc is only included in the RTL if FPC_HAS_FEATURE_ANSISTRINGS is defined. The embedded target by default probably does not include support for ansistrings (since they in turn depend on the heap manager). One helper for readstr(ansis

[fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
Free Pascal Compiler version 2.6.0-1 [2012/01/13] for i386 Linux x86 Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using my own version of debugln, not important here debugln('Going to rename/move '

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Koenraad Lelong
On 10-02-12 08:57, Rainer Stratmann wrote: This means that there is a simple install solution for Linux? All in one directory? I don't understand what you want. An install solution for what ? Koenraad. ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Jonas Maebe
On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using my own version of debugln, not important here debugln('Going to rename/move ' + ExtractedCom

[fpc-pascal] [admin] problems with mail delivery?

2012-02-10 Thread Jonas Maebe
Hi, I've received mails from two people the last couple of weeks that not all messages they sent (from subscribed addresses) went through to the FPC mailing lists. In order to determine whether this is a widespread problem, could you send me an email *off-list* if you also experienced suc

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:09, Jonas Maebe wrote: > > On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: > >> Trying to move a file (and rename it at the same time): >> >> //ExtractedCompiler is a string variable >> //BootstrapCompiler is a string property >> //I'm using my own version of debugln, not impo

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > 1. Renaming is not moving??? > The help says: > "RenameFile renames a file from OldName to NewName. The function returns > True if successful, False otherwise. Remark: you cannot rename across > disks or partitions." > What does this mean, then?

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Jonas Maebe
On 10 Feb 2012, at 13:31, Reinier Olislagers wrote: 1. Renaming is not moving??? The help says: "RenameFile renames a file from OldName to NewName. The function returns True if successful, False otherwise. Remark: you cannot rename across disks or partitions." What does this mean, then? If y

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread michael . vancanneyt
On Fri, 10 Feb 2012, Reinier Olislagers wrote: On 10-2-2012 13:09, Jonas Maebe wrote: On 10 Feb 2012, at 12:19, Reinier Olislagers wrote: Trying to move a file (and rename it at the same time): //ExtractedCompiler is a string variable //BootstrapCompiler is a string property //I'm using m

[fpc-pascal] Re: Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:39, Marco van de Voort wrote: > In our previous episode, Reinier Olislagers said: >> 1. Renaming is not moving??? >> The help says: >> "RenameFile renames a file from OldName to NewName. The function returns >> True if successful, False otherwise. Remark: you cannot rename across >>

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Sven Barth
Am 10.02.2012 12:41, schrieb Koenraad Lelong: On 10-02-12 11:30, Jonas Maebe wrote: Now I see: that compilerproc is only included in the RTL if FPC_HAS_FEATURE_ANSISTRINGS is defined. The embedded target by default probably does not include support for ansistrings (since they in turn depend on

[fpc-pascal] Re: Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 13:42, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: > On Fri, 10 Feb 2012, Reinier Olislagers wrote: >> On 10-2-2012 13:09, Jonas Maebe wrote: >> 1. Renaming is not moving??? >> The help says: >> "RenameFile renames a file from OldName to NewName. The function returns >> True

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread Sven Barth
Am 10.02.2012 13:31, schrieb Reinier Olislagers: 2. What is the function for "properly" moving files in FPC that also moves between partitions, if one exists? What I'd use in those cases: var dest, source: TFileStream; begin dest := Nil; source := TFileStream.Create(aSourceFileName, fmOp

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Koenraad Lelong
On 10-02-12 13:58, Sven Barth wrote: If your "fpc-svn" directory is a real svn checkout you can just do a "svn diff > your-patch.diff". Alternatively you can use should add "-aur" as argument to diff (in front of the filenames). Enclosed the new patch. This all compiles, but needs to be verifie

[fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
Hi all, With the help of the people on the forums and the lists, I've completed the first version of FPCup, a tool that downloads FPC and Lazarus sources from SVN, compiles and installs them. For Windows, it offers bare-metal install functionality: it downloads an SVN executable and the binutils

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Sven Barth
Am 10.02.2012 14:46, schrieb Koenraad Lelong: On 10-02-12 13:58, Sven Barth wrote: If your "fpc-svn" directory is a real svn checkout you can just do a "svn diff > your-patch.diff". Alternatively you can use should add "-aur" as argument to diff (in front of the filenames). Enclosed the new pa

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Koenraad Lelong
On 10-02-12 15:33, Sven Barth wrote: Am 10.02.2012 14:46, schrieb Koenraad Lelong: On 10-02-12 13:58, Sven Barth wrote: If your "fpc-svn" directory is a real svn checkout you can just do a "svn diff > your-patch.diff". Alternatively you can use should add "-aur" as argument to diff (in front of

Re: [fpc-pascal] fpc 2.7.1 for arm-embedded

2012-02-10 Thread Sven Barth
Am 10.02.2012 16:07, schrieb Koenraad Lelong: On 10-02-12 15:33, Sven Barth wrote: Am 10.02.2012 14:46, schrieb Koenraad Lelong: On 10-02-12 13:58, Sven Barth wrote: If your "fpc-svn" directory is a real svn checkout you can just do a "svn diff > your-patch.diff". Alternatively you can use sho

[fpc-pascal] Re: TLinkedList

2012-02-10 Thread leledumbo
I don't remember having that since 2.X.X... there was always TList, however. And that's what I was using (I use generics for all my containers use now). -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/TLinkedList-tp5469685p5472934.html Sent from the Free Pascal -

RE : [fpc-pascal] FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Ludo Brands
> Hi all, > > - suggestions welcome > Very nice! Suggestions: :) - replace 'Debug:' with 'Progress:' or 'Info:'. The messages are useful :) - show some progress when checking out sources. The wait can be very long. - option to not install/update fpc or lazarus (fe. setting the correspondi

[fpc-pascal] Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 17:27, Ludo Brands wrote: > Very nice! Thanks. > Suggestions: :) > - replace 'Debug:' with 'Progress:' or 'Info:'. The messages are useful :) Yep, basically left a debug build up. Did intend to trim the messages some. Done in currnet commit. > - show some progress when checking out

RE : [fpc-pascal] Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Ludo Brands
> > - option to not install/update fpc or lazarus (fe. setting the > > corresponding dir or url to '') > Ok. Was thinking about allowing recompiles anyway with > different compiler options, so adding options e.g. > --fpcnoupdate or --laznoupdate could work as well. Makes > having a GUI more of

RE : [fpc-pascal] Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Ludo Brands
> > - show some progress when checking out sources. The wait > can be very > > long. > Ok. I think I will need help on that one but will come back > to the list... > Echoing the output from svn to the console would be enough. It will also show the revision you are at which is missing now. Lud

[fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 18:29, Ludo Brands wrote: >>> - show some progress when checking out sources. The wait >> can be very >>> long. >> Ok. I think I will need help on that one but will come back >> to the list... > Echoing the output from svn to the console would be enough. It will also > show the revi

[fpc-pascal] AIX

2012-02-10 Thread Andrew Haines
Hi, can freepascal compile programs for AIX PowerPc? I see hints of AIX when I search google but nothing that directly says it will work. Thanks Andrew ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listi

Re: [fpc-pascal] AIX

2012-02-10 Thread Sven Barth
On 10.02.2012 21:18, Andrew Haines wrote: Hi, can freepascal compile programs for AIX PowerPc? I see hints of AIX when I search google but nothing that directly says it will work. I've found these two mailing list threads: http://lists.freepascal.org/lists/fpc-pascal/2010-August/026215.html htt

[fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-10 Thread Reinier Olislagers
On 10-2-2012 18:23, Ludo Brands wrote: >>> - (I hesitated to put this in the category "bugs") lazarus is >>> configured to use (default on ubuntu) ~/fpc/bin/fpc. I have 2.4.4 >>> installed with a /etc/fpc.cfg and ~/fpc/bin/fpc will just launch >>> 2.4.4. Changing the compiler to ~/fpc/compiler/p