[fpc-devel] [patch] regex.pp with out parameters

2009-03-27 Thread Graeme Geldenhuys
Hi, Please find attached a minor patch that removes the following compiler hints when TRegexEngine.Parse(...) is used. iterator_impl.pas(306,46) Hint: Local variable LErrorCode does not seem to be initialized iterator_impl.pas(306,34) Hint: Local variable LErrorPos does not seem

[fpc-devel] compiling and installing only changed packages

2009-03-27 Thread Graeme Geldenhuys
Hi, If I make some local changes to FPCUnit for example (anything in 'packages' directory really), how to I compile and install only the packages units and not the whole RTL, Compiler? This is how I normally compile a new FPC after a 'svn up' command. - startbuild.sh --

Re: [fpc-devel] compiling and installing only changed packages

2009-03-27 Thread Graeme Geldenhuys
On Fri, Mar 27, 2009 at 1:32 PM, Henry Vermaak henry.verm...@gmail.com wrote: can just cd into the packages dir and execute the same commands you normally do. Ah, I'll try that now... check the Makefile for all the targets, or type make packages then hit tab a couple of times (this should

Re: [fpc-devel] compiling and installing only changed packages

2009-03-27 Thread Henry Vermaak
2009/3/27 Graeme Geldenhuys graemeg.li...@gmail.com: Hi, If I make some local changes to FPCUnit for example (anything in 'packages' directory really), how to I compile and install only the packages units and not the whole RTL, Compiler? the Makefile has targets like: packages_all

Re: [fpc-devel] [patch] regex.pp with out parameters

2009-03-27 Thread Joost van der Sluis
Op vrijdag 27-03-2009 om 12:55 uur [tijdzone +0200], schreef Graeme Geldenhuys: Hi, Please find attached a minor patch that removes the following compiler hints when TRegexEngine.Parse(...) is used. iterator_impl.pas(306,46) Hint: Local variable LErrorCode does not seem

Re: [fpc-devel] [patch] regex.pp with out parameters

2009-03-27 Thread Graeme Geldenhuys
On Fri, Mar 27, 2009 at 1:57 PM, Joost van der Sluis jo...@cnoc.nl wrote: The patch simply changes the 'var' parameters to 'out' parameters. It surely fixes the warning, but not the problem? Doesn't 'out' generate faster code in this case? And shoudn't the error be always set? To 0 if no

[fpc-devel] function evaluation by gdb

2009-03-27 Thread Paul Ishenin
Hello, FPC developers' list I made a simple gui lazarus application with a form and a button on it. I also wrote a function in the same unit: function GetValue(c: Char): Integer; begin Result := Ord(c); end; In the Button1 OnClick handler I have next code: var I: integer; begin I :=

Re: [fpc-devel] function evaluation by gdb

2009-03-27 Thread Jonas Maebe
On 27 Mar 2009, at 19:44, Paul Ishenin wrote: and evaluate Ord('a'): [gdb log] -data-evaluate-expression Ord('a') No symbol \Ord\ in current context.\n ^error,msg=No symbol \Ord\ in current context. [/gdb log] Ord() is not a regular function, it's implemented using compiler magic (just

Re: [fpc-devel] [patch] regex.pp with out parameters

2009-03-27 Thread Joost van der Sluis
Op vrijdag 27-03-2009 om 14:07 uur [tijdzone +0200], schreef Graeme Geldenhuys: On Fri, Mar 27, 2009 at 1:57 PM, Joost van der Sluis jo...@cnoc.nl wrote: The patch simply changes the 'var' parameters to 'out' parameters. It surely fixes the warning, but not the problem? Doesn't 'out'