[fpc-pascal] Sponsor/Dontation button

2007-11-01 Thread L
On the main site, will there ever be a sponsor/donation button that is extremely easy to click and use? Because anyone with guts who uses FPC and anyone worth their salt would click it and send something for sure. Weaklings of course would not. But we aren't all. I realize contributing code is mo

[fpc-pascal] gprof setup on windows

2007-11-01 Thread Darius Blaszijk
I would like to profile my code on windows. I tried searching the wiki, but without much success on how to do that on windows. Can anyone explain me in a few words how this can be done? Kind regards, Darius ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] fast text processing

2007-11-01 Thread Vincent Snijders
Daniël Mantione schreef: Op Wed, 31 Oct 2007, schreef Vincent Snijders: Florian Klaempfl schreef: Vincent Snijders schrieb: Why not SetLength(s,i)? StrLen is _very_ expensive. I don't see a way how another #0 can be before. No more strlen: http://www.hu.freepascal.org/fpcircbot/cgipastebin?

[fpc-pascal] Re: fast text processing

2007-11-01 Thread S. Fisher
--- L <[EMAIL PROTECTED]> wrote: > > > No more strlen: > > > http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=1432 > > > > This doesn't work if you have spaces in front of the < tags > > > > > > I'm not sure if the Perl one fails too though. > I don't have perl installed and

Re: [fpc-pascal] Duplicating palette of TFPCustomImage

2007-11-01 Thread dhkblaszyk
I found the problem. When using Merge the new palette colors are appended and with Build the new palette colors are in order of appearance in the image, which is total nonsense imho. Anyway I've implemented a Copy function, that makes an exact copy of a supplied palette. Will submit a patch for it

[fpc-pascal] Duplicating palette of TFPCustomImage

2007-11-01 Thread dhkblaszyk
Hi, I'm entering unknown territories with TFPCustomImage. What I would like to do is, to duplicate the palette of a loaded image to a newly created image in memory. Something like: NewImg := TFPMemoryImage.Create(OrgImg.Width, OrgImg.Height); NewImg.Palette.Build(OrgImg); I also tried NewImg.Pa

Re: [fpc-pascal] fast text processing

2007-11-01 Thread L
> > > > No more strlen: > > http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=1432 > This doesn't work if you have spaces in front of the < tags > I'm not sure if the Perl one fails too though. I don't have perl installed and can't test it ;-) A real parser doesn't care abo

Re: [fpc-pascal] fast text processing

2007-11-01 Thread Flávio Etrusco
Recent versions of JCL include a pcre header, too. Even a .obj is provided for linking statically :-) -Flávio On 10/31/07, Jeff Pohlmeyer <[EMAIL PROTECTED]> wrote: > > > the easiest is simply making a FPC header to > > pcre, it might be useful even. > > I did that, once upon a time... > > h

Re: [fpc-pascal] fast text processing

2007-11-01 Thread Flávio Etrusco
What about the TRegExpr library? http://www.regexpstudio.com/TRegExpr/TRegExpr.html The license is MIT-like... Cheers, Flávio On 10/31/07, Bee <[EMAIL PROTECTED]> wrote: > > > Well, considering that perl's or Python's speed greatly rely on the > > underlying C-implementation of (at least) particu

Re: [fpc-pascal] When Pascal code is too fast

2007-11-01 Thread ik
On 11/1/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > > Something like > > > > > > fcntl(fileno(stderr), F_GETFL) & O_NONBLOCK > > > > > > or the pascal equivalent should do. > > > > I'm getting -1 from fpWrite for a "long" pe

Re: [fpc-pascal] When Pascal code is too fast

2007-11-01 Thread Marco van de Voort
> On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > Something like > > > > fcntl(fileno(stderr), F_GETFL) & O_NONBLOCK > > > > or the pascal equivalent should do. > > I'm getting -1 from fpWrite for a "long" period of time, like 6-7 loop > returns before it can continue getting the

Re: [fpc-pascal] When Pascal code is too fast

2007-11-01 Thread Marc Santhoff
Am Donnerstag, den 01.11.2007, 09:15 +0200 schrieb ik: > On 11/1/07, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > Am Donnerstag, den 01.11.2007, 00:45 +0200 schrieb ik: > > > Hi List, > > > > > > I have a weird problem. the "fpWrite" is too "slow" for FPC code. When > > > I have the same exact code