this patch updates the macros to also use cint/clong

1764,1766c1764,1766
< function ConnectionNumber(dpy : PDisplay) : longint;
< function RootWindow(dpy : PDisplay; scr : longint) : TWindow;
< function DefaultScreen(dpy : PDisplay) : longint;
---
> function ConnectionNumber(dpy : PDisplay) : cint;
> function RootWindow(dpy : PDisplay; scr : cint) : TWindow;
> function DefaultScreen(dpy : PDisplay) : cint;
1768,1779c1768,1779
< function DefaultVisual(dpy : PDisplay; scr : longint) : PVisual;
< function DefaultGC(dpy : PDisplay; scr : longint) : TGC;
< function BlackPixel(dpy : PDisplay; scr : longint) : dword;
< function WhitePixel(dpy : PDisplay; scr : longint) : dword;
< function QLength(dpy : PDisplay) : longint;
< function DisplayWidth(dpy : PDisplay; scr : longint) : longint;
< function DisplayHeight(dpy : PDisplay; scr : longint) : longint;
< function DisplayWidthMM(dpy : PDisplay; scr : longint) : longint;
< function DisplayHeightMM(dpy : PDisplay; scr : longint) : longint;
< function DisplayPlanes(dpy : PDisplay; scr : longint) : longint;
< function DisplayCells(dpy : PDisplay; scr : longint) : longint;
< function ScreenCount(dpy : PDisplay) : longint;
---
> function DefaultVisual(dpy : PDisplay; scr : cint) : PVisual;
> function DefaultGC(dpy : PDisplay; scr : cint) : TGC;
> function BlackPixel(dpy : PDisplay; scr : cint) : culong;
> function WhitePixel(dpy : PDisplay; scr : cint) : culong;
> function QLength(dpy : PDisplay) : cint;
> function DisplayWidth(dpy : PDisplay; scr : cint) : cint;
> function DisplayHeight(dpy : PDisplay; scr : cint) : cint;
> function DisplayWidthMM(dpy : PDisplay; scr : cint) : cint;
> function DisplayHeightMM(dpy : PDisplay; scr : cint) : cint;
> function DisplayPlanes(dpy : PDisplay; scr : cint) : cint;
> function DisplayCells(dpy : PDisplay; scr : cint) : cint;
> function ScreenCount(dpy : PDisplay) : cint;
1781,1783c1781,1783
< function ProtocolVersion(dpy : PDisplay) : longint;
< function ProtocolRevision(dpy : PDisplay) : longint;
< function VendorRelease(dpy : PDisplay) : longint;
---
> function ProtocolVersion(dpy : PDisplay) : cint;
> function ProtocolRevision(dpy : PDisplay) : cint;
> function VendorRelease(dpy : PDisplay) : cint;
1785,1793c1785,1793
< function DefaultDepth(dpy : PDisplay; scr : longint) : longint;
< function DefaultColormap(dpy : PDisplay; scr : longint) : TColormap;
< function BitmapUnit(dpy : PDisplay) : longint;
< function BitmapBitOrder(dpy : PDisplay) : longint;
< function BitmapPad(dpy : PDisplay) : longint;
< function ImageByteOrder(dpy : PDisplay) : longint;
< function NextRequest(dpy : PDisplay) : dword;
< function LastKnownRequestProcessed(dpy : PDisplay) : dword;
< function ScreenOfDisplay(dpy : PDisplay; scr : longint) : PScreen;
---
> function DefaultDepth(dpy : PDisplay; scr : cint) : cint;
> function DefaultColormap(dpy : PDisplay; scr : cint) : TColormap;
> function BitmapUnit(dpy : PDisplay) : cint;
> function BitmapBitOrder(dpy : PDisplay) : cint;
> function BitmapPad(dpy : PDisplay) : cint;
> function ImageByteOrder(dpy : PDisplay) : cint;
> function NextRequest(dpy : PDisplay) : culong;
> function LastKnownRequestProcessed(dpy : PDisplay) : culong;
> function ScreenOfDisplay(dpy : PDisplay; scr : cint) : PScreen;
1797,1798c1797,1798
< function BlackPixelOfScreen(s : PScreen) : dword;
< function WhitePixelOfScreen(s : PScreen) : dword;
---
> function BlackPixelOfScreen(s : PScreen) : culong;
> function WhitePixelOfScreen(s : PScreen) : culong;
1800c1800
< function DefaultDepthOfScreen(s : PScreen) : longint;
---
> function DefaultDepthOfScreen(s : PScreen) : cint;
1803,1810c1803,1810
< function WidthOfScreen(s : PScreen) : longint;
< function HeightOfScreen(s : PScreen) : longint;
< function WidthMMOfScreen(s : PScreen) : longint;
< function HeightMMOfScreen(s : PScreen) : longint;
< function PlanesOfScreen(s : PScreen) : longint;
< function CellsOfScreen(s : PScreen) : longint;
< function MinCmapsOfScreen(s : PScreen) : longint;
< function MaxCmapsOfScreen(s : PScreen) : longint;
---
> function WidthOfScreen(s : PScreen) : cint;
> function HeightOfScreen(s : PScreen) : cint;
> function WidthMMOfScreen(s : PScreen) : cint;
> function HeightMMOfScreen(s : PScreen) : cint;
> function PlanesOfScreen(s : PScreen) : cint;
> function CellsOfScreen(s : PScreen) : cint;
> function MinCmapsOfScreen(s : PScreen) : cint;
> function MaxCmapsOfScreen(s : PScreen) : cint;
1812,1813c1812,1813
< function DoesBackingStore(s : PScreen) : longint;
< function EventMaskOfScreen(s : PScreen) : longint;
---
> function DoesBackingStore(s : PScreen) : cint;
> function EventMaskOfScreen(s : PScreen) : clong;
1820c1820
< function ConnectionNumber(dpy : PDisplay) : longint;
---
> function ConnectionNumber(dpy : PDisplay) : cint;
1825c1825
< function RootWindow(dpy : PDisplay; scr : longint) : TWindow;
---
> function RootWindow(dpy : PDisplay; scr : cint) : TWindow;
1830c1830
< function DefaultScreen(dpy : PDisplay) : longint;
---
> function DefaultScreen(dpy : PDisplay) : cint;
1840c1840
< function DefaultVisual(dpy : PDisplay; scr : longint) : PVisual;
---
> function DefaultVisual(dpy : PDisplay; scr : cint) : PVisual;
1845c1845
< function DefaultGC(dpy : PDisplay; scr : longint) : TGC;
---
> function DefaultGC(dpy : PDisplay; scr : cint) : TGC;
1850c1850
< function BlackPixel(dpy : PDisplay; scr : longint) : dword;
---
> function BlackPixel(dpy : PDisplay; scr : cint) : culong;
1855c1855
< function WhitePixel(dpy : PDisplay; scr : longint) : dword;
---
> function WhitePixel(dpy : PDisplay; scr : cint) : culong;
1860c1860
< function QLength(dpy : PDisplay) : longint;
---
> function QLength(dpy : PDisplay) : cint;
1865c1865
< function DisplayWidth(dpy : PDisplay; scr : longint) : longint;
---
> function DisplayWidth(dpy : PDisplay; scr : cint) : cint;
1870c1870
< function DisplayHeight(dpy : PDisplay; scr : longint) : longint;
---
> function DisplayHeight(dpy : PDisplay; scr : cint) : cint;
1875c1875
< function DisplayWidthMM(dpy : PDisplay; scr : longint) : longint;
---
> function DisplayWidthMM(dpy : PDisplay; scr : cint) : cint;
1880c1880
< function DisplayHeightMM(dpy : PDisplay; scr : longint) : longint;
---
> function DisplayHeightMM(dpy : PDisplay; scr : cint) : cint;
1885c1885
< function DisplayPlanes(dpy : PDisplay; scr : longint) : longint;
---
> function DisplayPlanes(dpy : PDisplay; scr : cint) : cint;
1890c1890
< function DisplayCells(dpy : PDisplay; scr : longint) : longint;
---
> function DisplayCells(dpy : PDisplay; scr : cint) : cint;
1895c1895
< function ScreenCount(dpy : PDisplay) : longint;
---
> function ScreenCount(dpy : PDisplay) : cint;
1905c1905
< function ProtocolVersion(dpy : PDisplay) : longint;
---
> function ProtocolVersion(dpy : PDisplay) : cint;
1910c1910
< function ProtocolRevision(dpy : PDisplay) : longint;
---
> function ProtocolRevision(dpy : PDisplay) : cint;
1915c1915
< function VendorRelease(dpy : PDisplay) : longint;
---
> function VendorRelease(dpy : PDisplay) : cint;
1925c1925
< function DefaultDepth(dpy : PDisplay; scr : longint) : longint;
---
> function DefaultDepth(dpy : PDisplay; scr : cint) : cint;
1930c1930
< function DefaultColormap(dpy : PDisplay; scr : longint) : TColormap;
---
> function DefaultColormap(dpy : PDisplay; scr : cint) : TColormap;
1935c1935
< function BitmapUnit(dpy : PDisplay) : longint;
---
> function BitmapUnit(dpy : PDisplay) : cint;
1940c1940
< function BitmapBitOrder(dpy : PDisplay) : longint;
---
> function BitmapBitOrder(dpy : PDisplay) : cint;
1945c1945
< function BitmapPad(dpy : PDisplay) : longint;
---
> function BitmapPad(dpy : PDisplay) : cint;
1950c1950
< function ImageByteOrder(dpy : PDisplay) : longint;
---
> function ImageByteOrder(dpy : PDisplay) : cint;
1955c1955
< function NextRequest(dpy : PDisplay) : dword;
---
> function NextRequest(dpy : PDisplay) : culong;
1960c1960
< function LastKnownRequestProcessed(dpy : PDisplay) : dword;
---
> function LastKnownRequestProcessed(dpy : PDisplay) : culong;
1965c1965
< function ScreenOfDisplay(dpy : PDisplay; scr : longint) : PScreen;
---
> function ScreenOfDisplay(dpy : PDisplay; scr : cint) : PScreen;
1985c1985
< function BlackPixelOfScreen(s : PScreen) : dword;
---
> function BlackPixelOfScreen(s : PScreen) : culong;
1990c1990
< function WhitePixelOfScreen(s : PScreen) : dword;
---
> function WhitePixelOfScreen(s : PScreen) : culong;
2000c2000
< function DefaultDepthOfScreen(s : PScreen) : longint;
---
> function DefaultDepthOfScreen(s : PScreen) : cint;
2015c2015
< function WidthOfScreen(s : PScreen) : longint;
---
> function WidthOfScreen(s : PScreen) : cint;
2020c2020
< function HeightOfScreen(s : PScreen) : longint;
---
> function HeightOfScreen(s : PScreen) : cint;
2025c2025
< function WidthMMOfScreen(s : PScreen) : longint;
---
> function WidthMMOfScreen(s : PScreen) : cint;
2030c2030
< function HeightMMOfScreen(s : PScreen) : longint;
---
> function HeightMMOfScreen(s : PScreen) : cint;
2035c2035
< function PlanesOfScreen(s : PScreen) : longint;
---
> function PlanesOfScreen(s : PScreen) : cint;
2040c2040
< function CellsOfScreen(s : PScreen) : longint;
---
> function CellsOfScreen(s : PScreen) : cint;
2045c2045
< function MinCmapsOfScreen(s : PScreen) : longint;
---
> function MinCmapsOfScreen(s : PScreen) : cint;
2050c2050
< function MaxCmapsOfScreen(s : PScreen) : longint;
---
> function MaxCmapsOfScreen(s : PScreen) : cint;
2060c2060
< function DoesBackingStore(s : PScreen) : longint;
---
> function DoesBackingStore(s : PScreen) : cint;
2065c2065
< function EventMaskOfScreen(s : PScreen) : longint;
---
> function EventMaskOfScreen(s : PScreen) : clong;

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to