diff options
author | dgp <dgp@users.sourceforge.net> | 2007-09-18 16:07:48 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-09-18 16:07:48 (GMT) |
commit | 130c96273e714020ab719a63c2d62d4a05c372ce (patch) | |
tree | 965eb91915d249b1c9d6f4930814b44acefb0f66 /generic/tclStubLib.c | |
parent | 6cd49b7a754dcce9b611e4e4042a92a448e3a63e (diff) | |
download | tcl-130c96273e714020ab719a63c2d62d4a05c372ce.zip tcl-130c96273e714020ab719a63c2d62d4a05c372ce.tar.gz tcl-130c96273e714020ab719a63c2d62d4a05c372ce.tar.bz2 |
* generic/tclStubLib.c: Remove C library calls from Tcl_InitStubs()
* win/makefile.vc: so that we don't need the C library linked
in to libtclStub.
Diffstat (limited to 'generic/tclStubLib.c')
-rw-r--r-- | generic/tclStubLib.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/generic/tclStubLib.c b/generic/tclStubLib.c index be2a1fa..9fbd848 100644 --- a/generic/tclStubLib.c +++ b/generic/tclStubLib.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: tclStubLib.c,v 1.16 2007/09/17 14:50:44 dgp Exp $ + * RCS: @(#) $Id: tclStubLib.c,v 1.17 2007/09/18 16:07:50 dgp Exp $ */ /* @@ -107,7 +107,13 @@ Tcl_InitStubs( count += !isdigit(*p++); } if (count == 1) { - if (0 != strncmp(version, actualVersion, strlen(version))) { + CONST char *q = actualVersion; + + p = version; + while (*p && (*p == *q)) { + p++; q++; + } + if (*p) { return NULL; } } else { |