summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-11 16:01:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-11 16:01:15 (GMT)
commite3ce3f826e8c63393460d640e084dd3ef0c9d7c2 (patch)
treef067e7cac1f60cb91e35be7cf01dfc46d1eb6d90 /macosx
parentdf6dd6970b8e258e295cbf4a64e7c83c798044b4 (diff)
downloadtk-e3ce3f826e8c63393460d640e084dd3ef0c9d7c2.zip
tk-e3ce3f826e8c63393460d640e084dd3ef0c9d7c2.tar.gz
tk-e3ce3f826e8c63393460d640e084dd3ef0c9d7c2.tar.bz2
Make scrollCounter "unsigned long"
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXImage.c2
-rw-r--r--macosx/tkMacOSXMouseEvent.c2
-rw-r--r--macosx/tkMacOSXPrint.c14
3 files changed, 8 insertions, 10 deletions
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index 5a79acd..10e8116 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -1284,7 +1284,7 @@ TkMacOSXNSImageConfigureModel(
modelPtr->width = 0;
modelPtr->height = 0;
- if (Tk_SetOptions(interp, (char *) modelPtr, optionTable, objc, objv,
+ if (Tk_SetOptions(interp, modelPtr, optionTable, objc, objv,
NULL, NULL, NULL) != TCL_OK){
goto errorExit;
}
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c
index 59fb00d..83d2cd2 100644
--- a/macosx/tkMacOSXMouseEvent.c
+++ b/macosx/tkMacOSXMouseEvent.c
@@ -543,7 +543,7 @@ enum {
Tk_UpdatePointer(target, global.x, global.y, state);
}
} else {
- static int scrollCounter = 0;
+ static unsigned long scrollCounter = 0;
int delta;
CGFloat Delta;
Bool deltaIsPrecise = [theEvent hasPreciseScrollingDeltas];
diff --git a/macosx/tkMacOSXPrint.c b/macosx/tkMacOSXPrint.c
index 9f5a836..0b1b97a 100644
--- a/macosx/tkMacOSXPrint.c
+++ b/macosx/tkMacOSXPrint.c
@@ -29,10 +29,9 @@ NSString * fileName = nil;
CFStringRef urlFile = NULL;
/*Forward declaration of functions.*/
-int StartPrint(void *clientData, Tcl_Interp * interp,
- int objc, Tcl_Obj * const objv[]);
-OSStatus FinishPrint(NSString *file, int buttonValue);
-int MakePDF(void *clientData, Tcl_Interp *ip,
+static Tcl_ObjCmdProc StartPrint;
+static OSStatus FinishPrint(NSString *file, int buttonValue);
+static int MakePDF(void *clientData, Tcl_Interp *ip,
int objc, Tcl_Obj *const objv[]);
int MacPrint_Init(Tcl_Interp * interp);
@@ -80,12 +79,11 @@ int MacPrint_Init(Tcl_Interp * interp);
int
StartPrint(
- void *clientData,
+ TCL_UNUSED(void *),
Tcl_Interp * interp,
int objc,
Tcl_Obj *const objv[])
{
- (void) clientData;
NSPrintInfo * printInfo = [NSPrintInfo sharedPrintInfo];
NSPrintPanel * printPanel = [NSPrintPanel printPanel];
int accepted;
@@ -345,8 +343,8 @@ FinishPrint(
*----------------------------------------------------------------------
*/
-int MakePDF
-(TCL_UNUSED(ClientData),
+int MakePDF(
+ TCL_UNUSED(void *),
Tcl_Interp *ip,
int objc,
Tcl_Obj *const objv[])