summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXXStubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r--macosx/tkMacOSXXStubs.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c
index 649d121..19beaeb 100644
--- a/macosx/tkMacOSXXStubs.c
+++ b/macosx/tkMacOSXXStubs.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXXStubs.c,v 1.12 2005/09/10 14:53:21 das Exp $
+ * RCS: @(#) $Id: tkMacOSXXStubs.c,v 1.13 2005/11/27 02:36:15 das Exp $
*/
#include "tkInt.h"
@@ -63,13 +63,13 @@ static int DefaultErrorHandler _ANSI_ARGS_((Display* display,
* Other declarations
*/
-int TkMacOSXXDestroyImage _ANSI_ARGS_((XImage *image));
-unsigned long TkMacOSXXGetPixel _ANSI_ARGS_((XImage *image, int x, int y));
-int TkMacOSXXPutPixel _ANSI_ARGS_((XImage *image, int x, int y,
+static int TkMacOSXXDestroyImage _ANSI_ARGS_((XImage *image));
+static unsigned long TkMacOSXXGetPixel _ANSI_ARGS_((XImage *image, int x, int y));
+static int TkMacOSXXPutPixel _ANSI_ARGS_((XImage *image, int x, int y,
unsigned long pixel));
-XImage *TkMacOSXXSubImage _ANSI_ARGS_((XImage *image, int x, int y,
+static XImage *TkMacOSXXSubImage _ANSI_ARGS_((XImage *image, int x, int y,
unsigned int width, unsigned int height));
-int TkMacOSXXAddPixel _ANSI_ARGS_((XImage *image, long value));
+static int TkMacOSXXAddPixel _ANSI_ARGS_((XImage *image, long value));
int _XInitImageFuncPtrs _ANSI_ARGS_((XImage *image));
@@ -477,6 +477,7 @@ XBell(
SysBeep(percent);
}
+#if 0
void
XSetWMNormalHints(
Display* display,
@@ -498,6 +499,7 @@ XAllocSizeHints()
return NULL;
}
+#endif
XImage *
XCreateImage(
@@ -756,7 +758,7 @@ TkGetServerInfo(
* Image stuff
*/
-int
+static int
TkMacOSXXDestroyImage(
XImage *image)
{
@@ -765,7 +767,7 @@ TkMacOSXXDestroyImage(
return 0;
}
-unsigned long
+static unsigned long
TkMacOSXXGetPixel(
XImage *image,
int x,
@@ -793,7 +795,7 @@ TkMacOSXXGetPixel(
return c;
}
-int
+static int
TkMacOSXXPutPixel(
XImage *image,
int x,
@@ -824,7 +826,7 @@ TkMacOSXXPutPixel(
return 0;
}
-XImage *
+static XImage *
TkMacOSXXSubImage(
XImage *image,
int x,
@@ -836,7 +838,7 @@ TkMacOSXXSubImage(
return NULL;
}
-int
+static int
TkMacOSXXAddPixel(
XImage *image,
long value)
@@ -1006,7 +1008,7 @@ Tk_GetUserInactiveTime(Display *dpy)
regEntry = IOServiceGetMatchingService(kIOMasterPortDefault,
IOServiceMatching("IOHIDSystem"));
- if (regEntry == NULL) {
+ if (regEntry == 0) {
return -1l;
}