summaryrefslogtreecommitdiffstats
path: root/generic/tk.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-09-17 14:58:03 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-09-17 14:58:03 (GMT)
commitd98de46cbf3d68ad1e6176baa680db013ca5a890 (patch)
tree92740e87730997e6b8a2ab7f1db5d6bb6b55a361 /generic/tk.h
parent9779d2ce0b98c4742ff649b1e6bc5c5037f52870 (diff)
downloadtk-d98de46cbf3d68ad1e6176baa680db013ca5a890.zip
tk-d98de46cbf3d68ad1e6176baa680db013ca5a890.tar.gz
tk-d98de46cbf3d68ad1e6176baa680db013ca5a890.tar.bz2
* generic/tkConsole.c: Revised callers of Tcl_InitStubs() to account
* generic/tkMain.c: for restored compatible support for the call * generic/tkWindow.c: Tcl_InitStubs(interp, TCL_VERSION, 1). Also revised Tcl_PkgRequire() call for Tcl so that, for example, a Tk library built against Tcl 8.5.1 headers will not refuse to [load] into a Tcl 8.5.0 interpreter. [Tcl Bug 1578344]. * generic/tk.h: Revised Tk_InitStubs() to restore Tk 8.4 * generic/tkStubLib.c: source compatibility with callers of * generic/tkWindow.c: Tk_InitStubs(interp, TK_VERSION, 1).
Diffstat (limited to 'generic/tk.h')
-rw-r--r--generic/tk.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tk.h b/generic/tk.h
index b75f136..3139d2d 100644
--- a/generic/tk.h
+++ b/generic/tk.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk.h,v 1.99 2007/05/30 17:39:24 dgp Exp $
+ * RCS: @(#) $Id: tk.h,v 1.100 2007/09/17 14:58:04 dgp Exp $
*/
#ifndef _TK
@@ -1486,11 +1486,13 @@ typedef struct Tk_ElementSpec {
const char * Tk_InitStubs _ANSI_ARGS_((Tcl_Interp *interp,
const char *version, int exact));
+const char * Tk_PkgInitStubsCheck _ANSI_ARGS_((Tcl_Interp *interp,
+ const char *version, int exact));
#ifndef USE_TK_STUBS
#define Tk_InitStubs(interp, version, exact) \
- Tcl_PkgRequire(interp, "Tk", version, exact)
+ Tk_PkgInitStubsCheck(interp, version, exact)
#endif