summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-12 16:24:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-12 16:24:28 (GMT)
commit871d0ab87051648f1dcc4fc86445dcde3527c7b2 (patch)
tree3913fec9e26d903dd2d66da3c9010d72391394be /win/tkWinDialog.c
parentefae1b799e7c55c25fcda6f682415a8fd6e2a25f (diff)
downloadtk-871d0ab87051648f1dcc4fc86445dcde3527c7b2.zip
tk-871d0ab87051648f1dcc4fc86445dcde3527c7b2.tar.gz
tk-871d0ab87051648f1dcc4fc86445dcde3527c7b2.tar.bz2
WIP: Add support for C++
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index b145476..6059d21 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -3444,6 +3444,8 @@ FontchooserShowCmd(
HDC hdc;
HookData *hdPtr;
int r = TCL_OK, oldMode = 0;
+ (void)objc;
+ (void)objv;
hdPtr = Tcl_GetAssocData(interp, "::tk::fontchooser", NULL);
@@ -3546,12 +3548,15 @@ FontchooserShowCmd(
static int
FontchooserHideCmd(
- ClientData clientData, /* Main window */
+ ClientData dummy, /* Main window */
Tcl_Interp *interp,
int objc,
Tcl_Obj *const objv[])
{
- HookData *hdPtr = Tcl_GetAssocData(interp, "::tk::fontchooser", NULL);
+ HookData *hdPtr = (HookData *)Tcl_GetAssocData(interp, "::tk::fontchooser", NULL);
+ (void)dummy;
+ (void)objc;
+ (void)objv;
if (hdPtr->hwnd && IsWindow(hdPtr->hwnd)) {
EndDialog(hdPtr->hwnd, 0);
@@ -3571,9 +3576,10 @@ FontchooserHideCmd(
*/
static void
-DeleteHookData(ClientData clientData, Tcl_Interp *interp)
+DeleteHookData(ClientData clientData, Tcl_Interp *dummy)
{
- HookData *hdPtr = clientData;
+ HookData *hdPtr = (HookData *)clientData;
+ (void)dummy;
if (hdPtr->parentObj) {
Tcl_DecrRefCount(hdPtr->parentObj);
@@ -3610,9 +3616,10 @@ const TkEnsemble tkFontchooserEnsemble[] = {
};
int
-TkInitFontchooser(Tcl_Interp *interp, ClientData clientData)
+TkInitFontchooser(Tcl_Interp *interp, ClientData dummy)
{
- HookData *hdPtr = ckalloc(sizeof(HookData));
+ HookData *hdPtr = (HookData *)ckalloc(sizeof(HookData));
+ (void)dummy;
memset(hdPtr, 0, sizeof(HookData));
Tcl_SetAssocData(interp, "::tk::fontchooser", DeleteHookData, hdPtr);