[japi-devel] 64bit API conversion
Brought to you by:
dezipaitor,
rweijnen
From: Radek V. <vo...@el...> - 2009-08-13 22:03:36
|
Hi I am started some development with FreePascal and there is jwa. What surprised me is bad conversion like this one : // // The following types are guaranteed to be signed and 32 bits wide. // type INT_PTR = Integer; {$EXTERNALSYM INT_PTR} PINT_PTR = ^INT_PTR; {$EXTERNALSYM PINT_PTR} UINT_PTR = Longword; {$EXTERNALSYM UINT_PTR} PUINT_PTR = ^UINT_PTR; {$EXTERNALSYM PUINT_PTR} LONG_PTR = Longint; {$EXTERNALSYM LONG_PTR} PLONG_PTR = ^LONG_PTR; {$EXTERNALSYM PLONG_PTR} ULONG_PTR = Longword; {$EXTERNALSYM ULONG_PTR} PULONG_PTR = ^ULONG_PTR; {$EXTERNALSYM PULONG_PTR} Correct version from FPC : INT_PTR = PtrInt; UINT_PTR = PtrUInt; LONG_PTR = PtrInt; ULONG_PTR = PtrUInt By MSDN documentation must be LONG_PTR 64bit long on 64bit platform so lot of functions like EnumResourceTypes have wrong import (32bit parameter instead of 64bit) I am looking for correct 64bit version of jwa. Have somebody something useful or I must change it by myself ? Thank you Radek V. |