Re: [fpc-devel] Widestring and reference counting

2007-11-25 Thread Martin Schreiber
On Saturday 24 November 2007 13.22, Graeme Geldenhuys wrote: Hi, I was reading a article on Delphi's WideString support. It mentions that under Delphi, WideStrings are not reference counted, but under Kylix they are. http://tobias.feedian.com/2007/05/24/whats-wrong-with-delphis-widestring/

Re: [fpc-devel] Widestring and reference counting

2007-11-25 Thread Mattias Gaertner
On Sun, 25 Nov 2007 10:49:02 +0100 Martin Schreiber [EMAIL PROTECTED] wrote: [...] http://groups.google.ch/group/borland.public.delphi.non-technical/msg/7caeced42f1934a4?hl=en; The text mentions 'IntPtr' for FPC's 'PtrInt'. Oh boy, they really want to be FPC incompatible. ;) Mattias

Re: [fpc-devel] Problems getting a arm cross-compiler for symbian

2007-11-25 Thread Jonas Maebe
On 24 Nov 2007, at 23:11, Felipe Monteiro de Carvalho wrote: :\Programas\fpcbuild\fpcsrc\rtl\symbianmake FPC=C:\Programas \fpcbuild\fpcsrc\c ompiler\ppcarm.exe makefile:2155: warning: overriding commands for target `system.ppu' makefile:2153: warning: ignoring old commands for target

[fpc-devel] Tiny fix for codegenerator

2007-11-25 Thread Sergei Gorelkin
Hello, I was wondering why Pascal statements like Inc(SomePointer, sizeof(WideChar)) are compiled into two assembler commands (mov ecx,2; add [location],ecx). I found out that tcginlinenode.second_incdec checks second argument to be an ordinal constant. In my case, however, the second argument

Re: [fpc-devel] Tiny fix for codegenerator

2007-11-25 Thread Jonas Maebe
On 25 Nov 2007, at 13:15, Sergei Gorelkin wrote: I was wondering why Pascal statements like Inc(SomePointer, sizeof(WideChar)) are compiled into two assembler commands (mov ecx,2; add [location],ecx). I found out that tcginlinenode.second_incdec checks second argument to be an ordinal

Re: [fpc-devel] A patch for external assembler output

2007-11-25 Thread Peter Vreman
At 18:50 24-11-2007, you wrote: Hello, I found and fixed at least four issues with MASM assembler output: - garbage was being output sometimes instead of source lines when compiling with -al. This is because lastfileinfo and lastinfile were never initialized for MASM writer. This is true for

[fpc-devel] zstream, fpc and lazarus

2007-11-25 Thread Paul Ishenin
Hello, FPC developers' list. Lazarus crashes with latest fpc (trunk). I found that reason in zstream. TDecompressionStream must reset position of Source stream if Seek is called with Offset = 0 and Origin = soFromBeginning (according to delphi help). Attached patch fixes that little

Re: [fpc-devel] zstream, fpc and lazarus

2007-11-25 Thread Daniƫl Mantione
Op Mon, 26 Nov 2007, schreef Paul Ishenin: Hello, FPC developers' list. Lazarus crashes with latest fpc (trunk). I found that reason in zstream. TDecompressionStream must reset position of Source stream if Seek is called with Offset = 0 and Origin = soFromBeginning (according to delphi