[fpc-pascal] tzipper issue(zipper.pp)

2012-02-08 Thread Tony Caduto
Hi, I am trying to port a Delphi app to Freepascal/Lazarus. The original app zipped the contents of a memo(using vclzip) which was saved to a stream, and the zip does not get stored in a file, rather a tmemorystream, which is then sent to a client app via a socket. So I noticed the tzipper class i

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread waldo kitty
On 2/8/2012 18:56, Mattias Gaertner wrote: On Wed, 8 Feb 2012 16:03:05 +0100 Mattias Gaertner wrote: [...] Of course it would be nicer if the used xml readers/writers can be told to keep the spaces. Especially for version control systems. I will take a look. The xml reader/writer used by the

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-08 Thread Mattias Gaertner
On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann wrote: > Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: > > Hi, > > > > For some reason TFPHTTPClient.Post hangs when accessing a "solr" > > server over "tomcat". It works with "solr" over "jetty". > > "curl" works fine with both,

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Mattias Gaertner
On Wed, 8 Feb 2012 16:03:05 +0100 Mattias Gaertner wrote: >[...] > Of course it would be nicer if the used xml readers/writers can be told > to keep the spaces. Especially for version control systems. > I will take a look. The xml reader/writer used by the fpdoc editor now preserve the attribute

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Jorge Aldo G. de F. Junior
No need, this guy ported the whole DirectFB stuff to freepascal : http://sourceforge.net/projects/wiseslap/files/external/directfb/ DirectFB tutorial : http://directfb.org/docs/DirectFB_Tutorials/simple.html directfb stuff is quite simple, they have made the interface somewhat like an OOP laye

[fpc-pascal] Re: Dynamic array and dimensions

2012-02-08 Thread ik
Let me explain better my problem. Originally the protocol states that the data that I should get is: 1) "CONFIG" 2) "SET" 3) "slowlog-log-slower-than" 4) "1" Now I wrote a function that on linear time add each element to a dynamic array, so the parsing itself also will be

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Graeme Geldenhuys
On 8 February 2012 17:03, Mattias Gaertner wrote: > > fpdoc uses xml and in most xml formats anything between two tags that > consists only of space characters is ignored. Yes, there is no technical problems with indenting XML tags. But read further... > altering the xml. As far as I know fpdoc

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Graeme Geldenhuys
On 8 February 2012 20:17, Jorge Aldo G. de F. Junior wrote: > i tried to do, but while understanding directfb was easy, > understanding how fpgui draws was quite hard... I thought fpGUI code was the easy part because only a handful of graphic primitives need to be implemented for each backend - t

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Felipe Monteiro de Carvalho
On Tue, Feb 7, 2012 at 3:19 PM, Jorge Aldo G. de F. Junior wrote: > Graeme, can you help port fpGui to DirectFB ? this would help embedded > development a lot... I don't know if you use fpgui only or the lcl too, but you might want to know that now the LCL can be ported to platform like directfb

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Jorge Aldo G. de F. Junior
i tried to do, but while understanding directfb was easy, understanding how fpgui draws was quite hard... 2012/2/8 Graeme Geldenhuys : > On 7 February 2012 16:19, Jorge Aldo G. de F. Junior  wrote: >> Graeme, can you help port fpGui to DirectFB ? this would help embedded >> development a lot... >

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

2012-02-08 Thread Koenraad Lelong
On 08-02-12 15:42, Jonas Maebe wrote: On 08 Feb 2012, at 15:31, Koenraad Lelong wrote: After some debugging, I think my compiler does not work. I'm pretty certain it outputs arm-code in stead of the needed thumb2 code. The error below indicates the compiler does not get to emitting any kind

[fpc-pascal] Dynamic array and dimensions

2012-02-08 Thread ik
Hello, I need to rewrite the way I split data today, after I found out that the specs and the reality of the content are different things. At the moment I'm using a dynamic array of single dimension to store each element of a list, however the actual data can arrive as a list inside a list. Can I

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Mattias Gaertner
On Wed, 8 Feb 2012 11:43:19 +0200 Graeme Geldenhuys wrote: > On 8 February 2012 10:44, Mattias Gaertner wrote: > > > > Yes, but without any indentation it is hard to read. > > Indentation (whitespace), which is purely for human enjoyment, causes > problems in some of the fpdoc output formats th

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

2012-02-08 Thread Jonas Maebe
On 08 Feb 2012, at 15:31, Koenraad Lelong wrote: After some debugging, I think my compiler does not work. I'm pretty certain it outputs arm-code in stead of the needed thumb2 code. The error below indicates the compiler does not get to emitting any kind of code at all. I just tried to m

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

2012-02-08 Thread Koenraad Lelong
I do have a working crosscompiler (I think), only I have to call it via /usr/lib/fpc/2.6.0/ppcrossarm ..., instead of via fpc ... The code seems not to work, but that could be my own RTL, which I copied from SMT32F103RE. I'm working on that. After some debugging, I think my compiler does not

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Koenraad Lelong
On 08-02-12 14:31, Henry Vermaak wrote: ... Then to make the crosscompiler how do I specify to use ppcx64-2.7.1 ? I'm afraid I don't understand the question. Never mind. I now remember that the buildprocess first builds it's own compiler, using the 'old' compiler. Then the new compiler is u

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Reinier Olislagers
On 8-2-2012 10:15, michael.vancann...@wisa.be wrote: > On Wed, 8 Feb 2012, Mattias Gaertner wrote: >> On Wed, 8 Feb 2012 09:26:10 +0100 (CET) >> michael.vancann...@wisa.be wrote: >>> On Wed, 8 Feb 2012, Reinier Olislagers wrote: To my untrained (and probably tired ;) eye), it seems that the fi

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Henry Vermaak
On 08/02/12 12:58, Koenraad Lelong wrote: Make sure you set up fpc.cfg to look at the right directories, e.g. -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl My fpc.cfg was similar, a

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Koenraad Lelong
On 08-02-12 12:53, Henry Vermaak wrote: How do you install it? I use 2.6.0 and trunk, so it's definitely possible. I install to /usr/local on linux (but I have a similar setup on Windows), then I end up with the different versions like this: /usr/local/lib/fpc/2.6.0 /usr/local/lib/fpc/2.7.1 On

Re: [fpc-pascal] How to detect an any property change in object?

2012-02-08 Thread michael . vancanneyt
On Wed, 8 Feb 2012, Krzysztof wrote: Hi, I have some class with propertys: type TMyClass = class private FProperty1: Boolean; FProperty2: String; procedure SetProperty2(AValue: String); procedure ClassChanged; public property Property1: Boolean read FProperty1 write FPropert

[fpc-pascal] How to detect an any property change in object?

2012-02-08 Thread Krzysztof
Hi, I have some class with propertys: type TMyClass = class private FProperty1: Boolean; FProperty2: String; procedure SetProperty2(AValue: String); procedure ClassChanged; public property Property1: Boolean read FProperty1 write FProperty; property Property2: String r

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Henry Vermaak
On 08/02/12 11:24, Koenraad Lelong wrote: Hi, I'm searching for some document how to set up a system to use two versions of fpc. I'm trying to make a working arm-embedded compiler. With 2.6.0 I seem unable to do that, so I want to try it with the svn-version of fpc. But when I just install that,

Re: [fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Rainer Stratmann
Am Wednesday 08 February 2012 12:24:11 schrieb Koenraad Lelong: > Hi, > > I'm searching for some document how to set up a system to use two > versions of fpc. > I'm trying to make a working arm-embedded compiler. With 2.6.0 I seem > unable to do that, so I want to try it with the svn-version of fpc

[fpc-pascal] How to ? Using two compiler versions.

2012-02-08 Thread Koenraad Lelong
Hi, I'm searching for some document how to set up a system to use two versions of fpc. I'm trying to make a working arm-embedded compiler. With 2.6.0 I seem unable to do that, so I want to try it with the svn-version of fpc. But when I just install that, I lose the 2.6.0 version. What have I t

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Graeme Geldenhuys
On 8 February 2012 11:15, > >> Yes, but without any indentation it is hard to read. > > Allow me to disagree... +1 I edit my documentation using the source code editor of my IDE. I get syntax highlighting for free, and I make extensive use of code templates to reduce a LOT of typing (yeah XML is

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Graeme Geldenhuys
On 8 February 2012 10:44, Mattias Gaertner wrote: > > Yes, but without any indentation it is hard to read. Indentation (whitespace), which is purely for human enjoyment, causes problems in some of the fpdoc output formats that don't ignore such whitespace in the final output. TXT, IPF, RTF etc ar

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread michael . vancanneyt
On Wed, 8 Feb 2012, Mattias Gaertner wrote: On Wed, 8 Feb 2012 09:26:10 +0100 (CET) michael.vancann...@wisa.be wrote: On Wed, 8 Feb 2012, Reinier Olislagers wrote: fpdocs Revision 889 svn revert --recursive . Open FPDocEditor on ExpandFileName, type a space somewhere, click Save icon. (S

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Mattias Gaertner
On Wed, 8 Feb 2012 09:26:10 +0100 (CET) michael.vancann...@wisa.be wrote: > > > On Wed, 8 Feb 2012, Reinier Olislagers wrote: > > > fpdocs Revision 889 > > svn revert --recursive . > > Open FPDocEditor on ExpandFileName, type a space somewhere, click Save > > icon. (Space seems to be automatica

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread michael . vancanneyt
On Wed, 8 Feb 2012, Reinier Olislagers wrote: fpdocs Revision 889 svn revert --recursive . Open FPDocEditor on ExpandFileName, type a space somewhere, click Save icon. (Space seems to be automatically removed) This gives a 605 kb diff file; uploaded to https://bitbucket.org/reiniero/fpc_laz_p

Re: [fpc-pascal] What ARM targets are supported by FPC?

2012-02-08 Thread Graeme Geldenhuys
On 7 February 2012 16:19, Jorge Aldo G. de F. Junior wrote: > Graeme, can you help port fpGui to DirectFB ? this would help embedded > development a lot... Supporting DirectFB has been on my todo list for a long time. I can think of many cases where I would find that useful too - especially for t