summaryrefslogtreecommitdiffstats
path: root/generic/tkStubLib.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-04-02 04:06:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-04-02 04:06:38 (GMT)
commitda81f8f0edc0e5d70e7e76ed8804a86b77f5aca0 (patch)
tree40ce486ace03a25f097b9b1229f093c30435e118 /generic/tkStubLib.c
parenta7fb3ccca3786f584d415e800a6ef4904d4d3ba9 (diff)
downloadtk-da81f8f0edc0e5d70e7e76ed8804a86b77f5aca0.zip
tk-da81f8f0edc0e5d70e7e76ed8804a86b77f5aca0.tar.gz
tk-da81f8f0edc0e5d70e7e76ed8804a86b77f5aca0.tar.bz2
typo
Diffstat (limited to 'generic/tkStubLib.c')
-rw-r--r--generic/tkStubLib.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/generic/tkStubLib.c b/generic/tkStubLib.c
index e38d63d..45fc9ef 100644
--- a/generic/tkStubLib.c
+++ b/generic/tkStubLib.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkStubLib.c,v 1.22 2008/04/02 03:55:39 dgp Exp $
+ * RCS: @(#) $Id: tkStubLib.c,v 1.23 2008/04/02 04:06:38 dgp Exp $
*/
/*
@@ -20,15 +20,8 @@
* including the rest of the stub functions.
*/
-#ifndef USE_TCL_STUBS
#define USE_TCL_STUBS
-#endif
-#undef USE_TCL_STUB_PROCS
-
-#ifndef USE_TK_STUBS
#define USE_TK_STUBS
-#endif
-#undef USE_TK_STUB_PROCS
#include "tkInt.h"
@@ -81,10 +74,6 @@ static int isDigit(const int c)
*----------------------------------------------------------------------
*/
-#ifdef Tk_InitStubs
-#undef Tk_InitStubs
-#endif
-
CONST char *
Tk_InitStubs(
Tcl_Interp *interp,
@@ -114,6 +103,8 @@ Tk_InitStubs(
p++; q++;
}
if (*p) {
+ /* Construct error message */
+ Tcl_PkgRequireEx(interp, "Tk", version, 1, NULL);
return NULL;
}
} else {