summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--generic/tcl.h13
2 files changed, 19 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bc2e7b..f1e7204 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-06-04 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tcl.h: Restored #include <stdio.h> to tcl.h,
+ rejecting the "fix" for "Bug" 945570. Tcl_FSSeek() needs the
+ values of SEEK_SET, etc. and too many extensions rely on tcl.h
+ providing stdio.h for them.
+
2004-06-02 Jeff Hobbs <jeffh@ActiveState.com>
* win/tclWinFile.c (TclpFindExecutable): when using
diff --git a/generic/tcl.h b/generic/tcl.h
index cadd278..ccbb453 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tcl.h,v 1.179 2004/05/25 08:37:31 dkf Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.180 2004/06/04 20:17:10 dgp Exp $
*/
#ifndef _TCL
@@ -138,6 +138,17 @@ extern "C" {
#endif /* TCL_THREADS */
/*
+ * Tcl's public routine Tcl_FSSeek() uses the values SEEK_SET,
+ * SEEK_CUR, and SEEK_END, all #define'd by stdio.h .
+ *
+ * Also, many extensions need stdio.h, and they've grown accustomed
+ * to tcl.h providing it for them rather than #include-ing it themselves
+ * as they should, so also for their sake, we keep the #include to be
+ * consistent with prior Tcl releases.
+ */
+#include <stdio.h>
+
+/*
* Definitions that allow Tcl functions with variable numbers of
* arguments to be used with either varargs.h or stdarg.h. TCL_VARARGS
* is used in procedure prototypes. TCL_VARARGS_DEF is used to declare