[fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Mark Morgan Lloyd
Is there a binary of 2.2.0 for i386 Linux still available anywhere? I'm 
having difficulty compiling it from source (possible problem in 2.2.4) 
and need it to investigate something that appears not to have worked 
properly in (Lazarus running with) later versions.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Jonas Maebe


On 16 Feb 2012, at 11:02, Mark Morgan Lloyd wrote:


Is there a binary of 2.2.0 for i386 Linux still available anywhere?


No. All binaries before FPC 2.2.2 have been taken offline because  
those distributions included code that was possibly copied from (or at  
least heavily inspired by) Borland/Embarcadero code.



Jonas___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Carsten Bager
If you use this link you can get the "fpc-2.2.0.i386-linux.tar" file

http://freepascal.dk/files/fpc-2.2.0.i386-linux.tar


Carsten



> Is there a binary of 2.2.0 for i386 Linux still available anywhere? I'm
> having difficulty compiling it from source (possible problem in 2.2.4)
> and need it to investigate something that appears not to have worked
> properly in (Lazarus running with) later versions.
>
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
>
> [Opinions above are the author's, not those of his employers or colleagues]
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> 
> Denne mail er blevet scannet for virus af TDC Mailfilter.
> 

Med venlig hilsen
Carsten Bager

BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Jonas Maebe


On 16 Feb 2012, at 11:28, Carsten Bager wrote:


If you use this link you can get the "fpc-2.2.0.i386-linux.tar" file

http://freepascal.dk/files/fpc-2.2.0.i386-linux.tar


That file should be taken offline, for the reason explained in my  
other mail.



Jonas___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Mark Morgan Lloyd

Carsten Bager wrote:

If you use this link you can get the "fpc-2.2.0.i386-linux.tar" file

http://freepascal.dk/files/fpc-2.2.0.i386-linux.tar


Carsten


Thanks very much- got that.

Is there a binary of 2.2.0 for i386 Linux still available anywhere? I'm 
having difficulty compiling it from source (possible problem in 2.2.4) 
and need it to investigate something that appears not to have worked 
properly in (Lazarus running with) later versions.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Denne mail er blevet scannet for virus af TDC Mailfilter.



Med venlig hilsen
Carsten Bager

BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Carsten Bager
Done
Carsten

>
>
> On 16 Feb 2012, at 11:28, Carsten Bager wrote:
>
> If you use this link you can get the "fpc-2.2.0.i386-linux.tar" file
>
> http://freepascal.dk/files/fpc-2.2.0.i386-linux.tar
>
> That file should be taken offline, for the reason explained in my other mail.
>
>
> Jonas
>
>Denne 
> mail er blevet scannet for virus af TDC Mailfilter.
>

Med venlig hilsen
Carsten Bager

BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] looking for binary of 2.2.0

2012-02-16 Thread Mark Morgan Lloyd

Carsten Bager wrote:

Done
Carsten


Issues noted, all files overwritten.

I can confirm that 2.2.0 can be built by 2.2.0, but not by 2.2.4. There 
appears to be a similar problem with 2.2.2, but I can't remember whether 
the discontinuity is between 2.2.0 and 2.2.2, or 2.2.2 and 2.2.4.



On 16 Feb 2012, at 11:28, Carsten Bager wrote:

If you use this link you can get the "fpc-2.2.0.i386-linux.tar" file

http://freepascal.dk/files/fpc-2.2.0.i386-linux.tar

That file should be taken offline, for the reason explained in my other mail.


Jonas

   Denne 
mail er blevet scannet for virus af TDC Mailfilter.



Med venlig hilsen
Carsten Bager

BEAS A/S
Brørupvænget 10
DK-7650 Bøvlingbjerg
Tlf. : +45 9788 5222 Fax : +45 9788 5434
www.beas.dk


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] benchmarking functions

2012-02-16 Thread ik
Hello,

What is the best way measure execution time of functions ?

Thanks,
Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: benchmarking functions

2012-02-16 Thread leledumbo
What I use:

uses
  SysUtils,DateUtils;
var
  BeginTime,EndTime: TDateTime;
begin
  BeginTime := TimeOf(Now);
  // call the function here
  EndTime := TimeOf(Now);
  // whatever you need to do
  WriteLn(SecondSpan(BeginTime,EndTime)); // change to whatever XXXSpan
function you like
end.


--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/benchmarking-functions-tp5489920p5490003.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] benchmarking functions

2012-02-16 Thread Henry Vermaak

On 16/02/12 16:10, ik wrote:

Hello,

What is the best way measure execution time of functions ?


You can use gprof (build with -pg).

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] fphttpclient get an url with colon

2012-02-16 Thread Mattias Gaertner
Hi,

When I use TFPHTTPClient to fetch a page with a colon in the file name
it appends a slash "/". For example:

  Client:=TFPHTTPClient.Create(nil);
  Response:=TMemoryStream.Create;
  Client.Get('http://wiki.lazarus.freepascal.org/Image:Acs_demos.jpg',Response);

It fetches "/Image:Acs_demos.jpg/".

The / is appended in ParseURI when extracting the document name. For
some reason it stops at a colon:

  // now s is 'hier-part' per RFC3986
  // Extract the document name (nasty...)

  for i := Length(s) downto 1 do
if s[i] = '/' then
begin
  ...
end else if s[i] = ':' then
  break
else 
  ...

Why?


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal