[Qt] libQt4Pas on Ubuntu

Vincent Snijders vincent.snijders at gmail.com
Wed Apr 13 22:43:38 CEST 2011


2011/4/13 Den Jean <Den.Jean at telenet.be>:
> On Tuesday 12 April 2011 21:11:14 Den Jean wrote:
>> When I make the new release, it will provide again a new qt4.pas.
>> I do not know yet what will be the differences, but they should
>> be compatible.
>
> whilst comparing a new qt4.pas with the one in lazarus trunk I
> found that GetPtrIntArrayAddr was changed downstream.
> Were there problems? I do not remember. I just like to know.
>
>>>>>... original (mine) ...
> // PtrInt Array Access from c-code
> function GetPtrIntArrayAddr(PArr : PPtrIntArray): PPtrInt; cdecl; export;
> begin
>    Result := @PArr^[0];
> end;
>
>>>>>... lazarus trunk ...
> // PtrInt Array Access from c-code
> function GetPtrIntArrayAddr(PArr : PPtrIntArray): PPtrInt; cdecl; export;
> begin
>  if PArr^ = nil then                 <---------- extra
>    Result := nil                     <---------- extra
>  else                                <---------- extra
>    Result := @PArr^[0];
> end;

The change was in
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&root=lazarus&revision=25368

Do you want me to ask Martin for further explanation?

Vincent




More information about the Qt mailing list