summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-06-04 20:17:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-06-04 20:17:09 (GMT)
commit9baeae995f31e23bd116f478c93131015e25e069 (patch)
treefd1a797b36b52d015cd4713559b3f026ae48cd58 /generic/tcl.h
parentde5cff5c3f21cae7dc4f054d239b6ad2e02fe427 (diff)
downloadtcl-9baeae995f31e23bd116f478c93131015e25e069.zip
tcl-9baeae995f31e23bd116f478c93131015e25e069.tar.gz
tcl-9baeae995f31e23bd116f478c93131015e25e069.tar.bz2
* 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.
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h13
1 files changed, 12 insertions, 1 deletions
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