summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-21 21:22:09 (GMT)
committerhobbs <hobbs>2001-09-21 21:22:09 (GMT)
commit21e45a8ae19b530dc70d817106245a23f5d32a18 (patch)
treeb0d40c034e2fdb8dad84eb2c40d95cf2b69094d6 /unix
parentab486f06f0d39a488ce4dd2412a5bd31edefedfd (diff)
downloadtk-21e45a8ae19b530dc70d817106245a23f5d32a18.zip
tk-21e45a8ae19b530dc70d817106245a23f5d32a18.tar.gz
tk-21e45a8ae19b530dc70d817106245a23f5d32a18.tar.bz2
* unix/tkUnixPort.h:
* mac/tkMacPort.h: add (int*) cast to TkpScanWindowId. These may need to be changed to Window* (ulong).
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixPort.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h
index 242d127..e2895dc 100644
--- a/unix/tkUnixPort.h
+++ b/unix/tkUnixPort.h
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixPort.h,v 1.5 1999/04/16 01:51:47 stanton Exp $
+ * RCS: @(#) $Id: tkUnixPort.h,v 1.6 2001/09/21 21:22:09 hobbs Exp $
*/
#ifndef _UNIXPORT
@@ -200,18 +200,19 @@ extern int errno;
/*
* This macro stores a representation of the window handle in a string.
+ * This should perhaps use the real size of an XID.
*/
#define TkpPrintWindowId(buf,w) \
sprintf((buf), "0x%x", (unsigned int) (w))
-
+
/*
* TkpScanWindowId is just an alias for Tcl_GetInt on Unix.
*/
#define TkpScanWindowId(i,s,wp) \
- Tcl_GetInt((i),(s),(wp))
-
+ Tcl_GetInt((i),(s),(int *)(wp))
+
/*
* This macro indicates that entry and text widgets should display
* the selection highlight regardless of which window has the focus.