summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixPort.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-09-25 16:25:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-09-25 16:25:20 (GMT)
commitac859f541ab22b0778aa06864848fdf336bb49cf (patch)
tree6e45150fb4ffc49a55a84c473b393c1b01745056 /unix/tkUnixPort.h
parent8fa92e5eb08f440c8993da8965ab7e0e17b173b8 (diff)
downloadtk-ac859f541ab22b0778aa06864848fdf336bb49cf.zip
tk-ac859f541ab22b0778aa06864848fdf336bb49cf.tar.gz
tk-ac859f541ab22b0778aa06864848fdf336bb49cf.tar.bz2
* Corrected definition of
TkpScanWindowId to handle situation where types Window and int do not have the same number of bits. CONST-ified too.
Diffstat (limited to 'unix/tkUnixPort.h')
-rw-r--r--unix/tkUnixPort.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h
index e2895dc..6e51fe7 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.6 2001/09/21 21:22:09 hobbs Exp $
+ * RCS: @(#) $Id: tkUnixPort.h,v 1.7 2001/09/25 16:25:20 dgp Exp $
*/
#ifndef _UNIXPORT
@@ -204,14 +204,7 @@ extern int errno;
*/
#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),(int *)(wp))
+ sprintf((buf), "%#08lx", (unsigned long) (w))
/*
* This macro indicates that entry and text widgets should display