[fpc-devel] declaration of GetCharacterPlacementW(

2020-10-04 Thread Martin via fpc-devel
function GetCharacterPlacementW(DC: HDC; p2: LPWSTR; p3, p4: BOOL; var p5: TGCPResults; p6: DWORD): DWORD; external 'gdi32' name 'GetCharacterPlacementW'; Why are p3 and p4 Bool? They should be both int? https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-getcharacterplacementw

[fpc-devel] Proposal for implementing named address space support

2020-10-04 Thread Christo Crause via fpc-devel
The AVR architecture uses different address spaces with potentially different access methods [1]. Currently constant data (messages, bitmaps etc.) are stored in flash and copied to RAM by the start-up code. Data access makes use of the LD* instructions (and ST* if the data is writeable). Accessi

Re: [fpc-devel] x86_64 question

2020-10-04 Thread J. Gareth Moreton via fpc-devel
Hi Nikolay, I've got some good code to test, but I need to double-check with someone to see if the licensing agreements allow (the code is rather complex, but showcases the effect of the TEST instructions quite nicely). Is your platform a Windows or a Unix machine?  I ask because I don't wan