diff options
author | dgp <dgp@users.sourceforge.net> | 2004-06-04 20:17:09 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-06-04 20:17:09 (GMT) |
commit | 9baeae995f31e23bd116f478c93131015e25e069 (patch) | |
tree | fd1a797b36b52d015cd4713559b3f026ae48cd58 | |
parent | de5cff5c3f21cae7dc4f054d239b6ad2e02fe427 (diff) | |
download | tcl-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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | generic/tcl.h | 13 |
2 files changed, 19 insertions, 1 deletions
@@ -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 |