x11drv: fix missing-declarations warnings [1/2]
Stefan Huehner
stefan at huehner.org
Sun Jul 24 06:01:03 CDT 2005
Hi,
first part which makes some functions static.
ChangeLog:
- fix missing-declarations warnings
Regards,
Stefan
-------------- next part --------------
Index: dlls/x11drv/clipboard.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/clipboard.c,v
retrieving revision 1.45
diff -u -p -r1.45 clipboard.c
--- dlls/x11drv/clipboard.c 18 Jul 2005 13:20:18 -0000 1.45
+++ dlls/x11drv/clipboard.c 24 Jul 2005 10:59:14 -0000
@@ -421,7 +421,7 @@ static WINE_CLIPFORMAT *register_format(
/**************************************************************************
* X11DRV_CLIPBOARD_LookupFormat
*/
-LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupFormat(WORD wID)
+static LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupFormat(WORD wID)
{
LPWINE_CLIPFORMAT lpFormat = ClipFormats;
@@ -440,7 +440,7 @@ LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_Looku
/**************************************************************************
* X11DRV_CLIPBOARD_LookupProperty
*/
-LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupProperty(UINT drvData)
+static LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupProperty(UINT drvData)
{
for (;;)
{
@@ -463,7 +463,7 @@ LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_Looku
/**************************************************************************
* X11DRV_CLIPBOARD_LookupAliasProperty
*/
-LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupAliasProperty(UINT drvDataAlias)
+static LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_LookupAliasProperty(UINT drvDataAlias)
{
unsigned int i;
LPWINE_CLIPFORMAT lpFormat = NULL;
@@ -484,7 +484,7 @@ LPWINE_CLIPFORMAT X11DRV_CLIPBOARD_Looku
/**************************************************************************
* X11DRV_CLIPBOARD_LookupPropertyAlias
*/
-UINT X11DRV_CLIPBOARD_LookupPropertyAlias(UINT drvDataProperty)
+static UINT X11DRV_CLIPBOARD_LookupPropertyAlias(UINT drvDataProperty)
{
unsigned int i;
UINT alias = 0;
@@ -505,7 +505,7 @@ UINT X11DRV_CLIPBOARD_LookupPropertyAli
/**************************************************************************
* X11DRV_CLIPBOARD_LookupData
*/
-LPWINE_CLIPDATA X11DRV_CLIPBOARD_LookupData(DWORD wID)
+static LPWINE_CLIPDATA X11DRV_CLIPBOARD_LookupData(DWORD wID)
{
LPWINE_CLIPDATA lpData = ClipData;
@@ -1313,7 +1313,7 @@ HANDLE X11DRV_CLIPBOARD_ExportClipboardD
* Export CF_UNICODE converting the string to XA_STRING.
* Helper function for X11DRV_CLIPBOARD_ExportString.
*/
-HANDLE X11DRV_CLIPBOARD_ExportXAString(LPWINE_CLIPDATA lpData, LPDWORD lpBytes)
+static HANDLE X11DRV_CLIPBOARD_ExportXAString(LPWINE_CLIPDATA lpData, LPDWORD lpBytes)
{
UINT i, j;
UINT size;
@@ -1359,7 +1359,7 @@ done:
* Export CF_UNICODE to COMPOUND_TEXT or TEXT
* Helper function for X11DRV_CLIPBOARD_ExportString.
*/
-HANDLE X11DRV_CLIPBOARD_ExportCompoundText(Window requestor, Atom aTarget, Atom rprop,
+static HANDLE X11DRV_CLIPBOARD_ExportCompoundText(Window requestor, Atom aTarget, Atom rprop,
LPWINE_CLIPDATA lpData, LPDWORD lpBytes)
{
Display *display = thread_display();
@@ -1972,7 +1972,7 @@ static HANDLE X11DRV_CLIPBOARD_Serialize
*
* Release XA_CLIPBOARD and XA_PRIMARY in response to a SelectionClear event.
*/
-void X11DRV_CLIPBOARD_ReleaseSelection(Atom selType, Window w, HWND hwnd, Time time)
+static void X11DRV_CLIPBOARD_ReleaseSelection(Atom selType, Window w, HWND hwnd, Time time)
{
Display *display = thread_display();
Index: dlls/x11drv/desktop.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/desktop.c,v
retrieving revision 1.27
diff -u -p -r1.27 desktop.c
--- dlls/x11drv/desktop.c 3 Jul 2005 11:20:56 -0000 1.27
+++ dlls/x11drv/desktop.c 24 Jul 2005 10:59:14 -0000
@@ -148,7 +148,7 @@ static void make_modes(void)
*
* Reset the desktop window size and WM hints
*/
-int X11DRV_resize_desktop( unsigned int width, unsigned int height )
+static int X11DRV_resize_desktop( unsigned int width, unsigned int height )
{
XSizeHints *size_hints;
Display *display = thread_display();
@@ -178,7 +178,7 @@ int X11DRV_resize_desktop( unsigned int
return 1;
}
-int X11DRV_desktop_GetCurrentMode(void)
+static int X11DRV_desktop_GetCurrentMode(void)
{
unsigned int i;
DWORD dwBpp = screen_depth;
@@ -194,7 +194,7 @@ int X11DRV_desktop_GetCurrentMode(void)
return 0;
}
-void X11DRV_desktop_SetCurrentMode(int mode)
+static void X11DRV_desktop_SetCurrentMode(int mode)
{
DWORD dwBpp = screen_depth;
if (dwBpp == 24) dwBpp = 32;
Index: dlls/x11drv/dib.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/dib.c,v
retrieving revision 1.39
diff -u -p -r1.39 dib.c
--- dlls/x11drv/dib.c 27 Jun 2005 09:53:46 -0000 1.39
+++ dlls/x11drv/dib.c 24 Jul 2005 10:59:14 -0000
@@ -279,7 +279,7 @@ static int DIB_GetBitmapInfo( const BITM
* Fills the color map of a bitmap palette. Should not be called
* for a >8-bit deep bitmap.
*/
-int *X11DRV_DIB_GenColorMap( X11DRV_PDEVICE *physDev, int *colorMapping,
+static int *X11DRV_DIB_GenColorMap( X11DRV_PDEVICE *physDev, int *colorMapping,
WORD coloruse, WORD depth, BOOL quads,
const void *colorPtr, int start, int end )
{
@@ -458,7 +458,7 @@ static RGBQUAD *X11DRV_DIB_BuildColorTab
/***********************************************************************
* X11DRV_DIB_MapColor
*/
-int X11DRV_DIB_MapColor( int *physMap, int nPhysMap, int phys, int oldcol )
+static int X11DRV_DIB_MapColor( int *physMap, int nPhysMap, int phys, int oldcol )
{
unsigned int color;
More information about the wine-patches
mailing list