summaryrefslogtreecommitdiffstats
path: root/generic
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 /generic
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 'generic')
-rw-r--r--generic/tkBind.c7
-rw-r--r--generic/tkInt.decls8
-rw-r--r--generic/tkIntPlatDecls.h14
-rw-r--r--generic/tkStubInit.c3
4 files changed, 25 insertions, 7 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index b382cf0..ddd7e39 100644
--- a/generic/tkBind.c
+++ b/generic/tkBind.c
@@ -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: tkBind.c,v 1.17 2001/09/21 21:19:02 hobbs Exp $
+ * RCS: @(#) $Id: tkBind.c,v 1.18 2001/09/25 16:25:20 dgp Exp $
*/
#include "tkPort.h"
@@ -21,6 +21,11 @@
#include "tkWinInt.h"
#endif
+#if !defined(__WIN32__) && !defined(MAC_TCL) /* UNIX */
+#include "tkUnixInt.h"
+#endif
+
+
/*
* File structure:
*
diff --git a/generic/tkInt.decls b/generic/tkInt.decls
index eb6e821..71d5690 100644
--- a/generic/tkInt.decls
+++ b/generic/tkInt.decls
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: tkInt.decls,v 1.20 2001/09/21 21:19:43 hobbs Exp $
+# RCS: @(#) $Id: tkInt.decls,v 1.21 2001/09/25 16:25:20 dgp Exp $
library tk
@@ -679,6 +679,10 @@ declare 7 unix {
void TkUnixSetMenubar (Tk_Window tkwin, Tk_Window menubar)
}
+declare 8 unix {
+ int TkpScanWindowId (Tcl_Interp *interp, CONST char *string, Window *idPtr)
+}
+
############################
# Windows specific functions
@@ -703,7 +707,7 @@ declare 5 win {
}
declare 6 win {
- int TkpScanWindowId (Tcl_Interp *interp, char *string, Window *idPtr)
+ int TkpScanWindowId (Tcl_Interp *interp, CONST char *string, Window *idPtr)
}
declare 7 win {
diff --git a/generic/tkIntPlatDecls.h b/generic/tkIntPlatDecls.h
index 01c31e8..234dcd5 100644
--- a/generic/tkIntPlatDecls.h
+++ b/generic/tkIntPlatDecls.h
@@ -9,7 +9,7 @@
* Copyright (c) 1998-1999 by Scriptics Corporation.
* All rights reserved.
*
- * RCS: @(#) $Id: tkIntPlatDecls.h,v 1.8 2001/09/21 21:19:43 hobbs Exp $
+ * RCS: @(#) $Id: tkIntPlatDecls.h,v 1.9 2001/09/25 16:25:20 dgp Exp $
*/
#ifndef _TKINTPLATDECLS
@@ -52,6 +52,9 @@ EXTERN int TkUnixDoOneXEvent _ANSI_ARGS_((Tcl_Time * timePtr));
/* 7 */
EXTERN void TkUnixSetMenubar _ANSI_ARGS_((Tk_Window tkwin,
Tk_Window menubar));
+/* 8 */
+EXTERN int TkpScanWindowId _ANSI_ARGS_((Tcl_Interp * interp,
+ CONST char * string, Window * idPtr));
#endif /* UNIX */
#ifdef __WIN32__
/* 0 */
@@ -70,7 +73,7 @@ EXTERN void TkpPrintWindowId _ANSI_ARGS_((char * buf,
Window window));
/* 6 */
EXTERN int TkpScanWindowId _ANSI_ARGS_((Tcl_Interp * interp,
- char * string, Window * idPtr));
+ CONST char * string, Window * idPtr));
/* 7 */
EXTERN void TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
/* 8 */
@@ -307,6 +310,7 @@ typedef struct TkIntPlatStubs {
Window (*tkUnixContainerId) _ANSI_ARGS_((TkWindow * winPtr)); /* 5 */
int (*tkUnixDoOneXEvent) _ANSI_ARGS_((Tcl_Time * timePtr)); /* 6 */
void (*tkUnixSetMenubar) _ANSI_ARGS_((Tk_Window tkwin, Tk_Window menubar)); /* 7 */
+ int (*tkpScanWindowId) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * string, Window * idPtr)); /* 8 */
#endif /* UNIX */
#ifdef __WIN32__
char * (*tkAlignImageData) _ANSI_ARGS_((XImage * image, int alignment, int bitOrder)); /* 0 */
@@ -315,7 +319,7 @@ typedef struct TkIntPlatStubs {
unsigned long (*tkpGetMS) _ANSI_ARGS_((void)); /* 3 */
void (*tkPointerDeadWindow) _ANSI_ARGS_((TkWindow * winPtr)); /* 4 */
void (*tkpPrintWindowId) _ANSI_ARGS_((char * buf, Window window)); /* 5 */
- int (*tkpScanWindowId) _ANSI_ARGS_((Tcl_Interp * interp, char * string, Window * idPtr)); /* 6 */
+ int (*tkpScanWindowId) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * string, Window * idPtr)); /* 6 */
void (*tkpSetCapture) _ANSI_ARGS_((TkWindow * winPtr)); /* 7 */
void (*tkpSetCursor) _ANSI_ARGS_((TkpCursor cursor)); /* 8 */
void (*tkpWmSetState) _ANSI_ARGS_((TkWindow * winPtr, int state)); /* 9 */
@@ -461,6 +465,10 @@ extern TkIntPlatStubs *tkIntPlatStubsPtr;
#define TkUnixSetMenubar \
(tkIntPlatStubsPtr->tkUnixSetMenubar) /* 7 */
#endif
+#ifndef TkpScanWindowId
+#define TkpScanWindowId \
+ (tkIntPlatStubsPtr->tkpScanWindowId) /* 8 */
+#endif
#endif /* UNIX */
#ifdef __WIN32__
#ifndef TkAlignImageData
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index 94263c5..bbf3506 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkStubInit.c,v 1.26 2000/11/22 01:49:38 ericm Exp $
+ * RCS: @(#) $Id: tkStubInit.c,v 1.27 2001/09/25 16:25:20 dgp Exp $
*/
#include "tkInt.h"
@@ -362,6 +362,7 @@ TkIntPlatStubs tkIntPlatStubs = {
TkUnixContainerId, /* 5 */
TkUnixDoOneXEvent, /* 6 */
TkUnixSetMenubar, /* 7 */
+ TkpScanWindowId, /* 8 */
#endif /* UNIX */
#ifdef __WIN32__
TkAlignImageData, /* 0 */