Re: [fpc-pascal] Question about ror / rordword...

2009-10-05 Thread Michael Green
Makes perfect sense, thanks for the quick answer :-) Florian Klaempfl wrote: Ror/rol are very sensitive against data type changes so this ensures you get always the desired result. While x shr 1 has the same result if the value fits in x, ror(x,1) has different results if x is a byte, word or dw

[fpc-pascal] Question about ror / rordword...

2009-10-05 Thread Michael Green
Quick question: Is there any particular reason why the system function ror() (in /fpc/rtl/inc/systemh.inc) has been divided up into rorbyte, rordword and rorqword (and respectively for rol() ) instead of being overloaded? ___ fpc-pascal maillist - f

Re: [fpc-pascal] external .so linking in Linux w/2.5.1 rev 13680 (Sep 8 09)

2009-09-13 Thread Michael Green
Thanks Jonas. I could have sworn I had it installed and never bothered to check. Shows that one should never assume ;-) But it's good to you explained this linker behaviour though, for future reference. -- MG ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] external .so linking in Linux w/2.5.1 rev 13680 (Sep 8 09)

2009-09-13 Thread Michael Green
Hi All! I've noticed that someone made a headstart with a unit to bind with FUSE in FreePascal at http://bugs.freepascal.org/view.php?id=12218. I've taken the last two entries (FUSE-2008-12-20-3.PP and Test-2008-12-20-3.PP) and modified the test file on line 88 to use the move() function inst

Re: [fpc-pascal] FPC for FreeBSD AMD64?

2008-09-11 Thread Michael Green
I can see x86_64-freebsd in the FPC make file, so you ought to be able to build it with the source. Just add the parameters OS_TARGET=freebsd and CPU_TARGET=x86_64 -- Mike Francisco Reyes wrote: Are there any plans for a FreeBSD AMD64 version? Sometime ago I tried to work on this and since I

Re: [fpc-pascal] SSocket: TSocketServer.StopAccepting

2008-08-30 Thread Michael Green
Hello Hansi, I am using Synapse for all my socket work, so this might be a bit different for you. But for a blocking listener in a thread (waiting at an Accept), I call AbortSocket. It immediately stops all work on the socket and lets you do the things you need to do. I'm sure there's a simil

[fpc-pascal] License question about some sysutils .inc files

2008-08-29 Thread Michael Green
Hello everyone! I just happened to see the license on fina.inc / finah.inc and a few other includes by Gertjan Schouten, which are used in SysUtils (/rtl/objpas/sysutils). They're released under the GNU GPL, but don't mention anything about the special exception/persmission (COPYING.FPC). So

Re: [fpc-pascal] How do I add a TComponent to TPanel dynamically?

2008-08-27 Thread Michael Green
Hi Danie, Other than what was pointed out with create/destroy, wouldn't it create a memory leak with the NEW? procedure TForm1.Button1Click(Sender: TObject); begin if pTopCV = nil then begin NEW( pTopCV ); pTopCV^ := TControlVolume.Create(PanelDraft); Instead, simply do

Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-14 Thread Michael Green
Hi John! I saw someone else that posted a similar issue. Are you using Vista? If so, this might help: * **Right-click** (not the usual left-click) the FPC folder from My Computer and select "Options" from the drop-down list (bottom entry). * There are 4 tabs at the top of the new window, on