summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-04-06 22:25:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-04-06 22:25:46 (GMT)
commitda705965dccc8a0dd3cb919814226e0c4ec0385c (patch)
treef364fcb944511bb8790be7882532203c0195be6b /compat
parent7bf9dfccb2afbac70ebc42a88d57741b4a2df416 (diff)
downloadtcl-da705965dccc8a0dd3cb919814226e0c4ec0385c.zip
tcl-da705965dccc8a0dd3cb919814226e0c4ec0385c.tar.gz
tcl-da705965dccc8a0dd3cb919814226e0c4ec0385c.tar.bz2
Patch 922727 committed. Implements three changes:
* generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
Diffstat (limited to 'compat')
-rw-r--r--compat/gettod.c3
-rw-r--r--compat/memcmp.c1
-rw-r--r--compat/opendir.c3
-rw-r--r--compat/strftime.c5
-rw-r--r--compat/strstr.c4
-rw-r--r--compat/strtod.c3
-rw-r--r--compat/strtol.c3
-rw-r--r--compat/strtoll.c3
-rw-r--r--compat/strtoul.c3
-rw-r--r--compat/strtoull.c3
-rw-r--r--compat/waitpid.c3
11 files changed, 13 insertions, 21 deletions
diff --git a/compat/gettod.c b/compat/gettod.c
index 9fc0ca5..98758e6 100644
--- a/compat/gettod.c
+++ b/compat/gettod.c
@@ -9,10 +9,9 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: gettod.c,v 1.2 1998/09/14 18:39:44 stanton Exp $
+ * RCS: @(#) $Id: gettod.c,v 1.3 2004/04/06 22:25:47 dgp Exp $
*/
-#include "tcl.h"
#include "tclPort.h"
#include <sys/timeb.h>
diff --git a/compat/memcmp.c b/compat/memcmp.c
index 09a5724..68e18c5 100644
--- a/compat/memcmp.c
+++ b/compat/memcmp.c
@@ -11,7 +11,6 @@
* SCCS: @(#) memcmp.c 1.2 98/01/19 10:48:58
*/
-#include "tcl.h"
#include "tclPort.h"
/*
diff --git a/compat/opendir.c b/compat/opendir.c
index 8eec7db..0b97156 100644
--- a/compat/opendir.c
+++ b/compat/opendir.c
@@ -7,11 +7,10 @@
* originally from Larry Wall.
*
*
- * RCS: @(#) $Id: opendir.c,v 1.2 1998/09/14 18:39:44 stanton Exp $
+ * RCS: @(#) $Id: opendir.c,v 1.3 2004/04/06 22:25:48 dgp Exp $
*/
#include "tclInt.h"
-#include "tclPort.h"
#undef DIRSIZ
#define DIRSIZ(dp) \
diff --git a/compat/strftime.c b/compat/strftime.c
index 6bce830..9828e79 100644
--- a/compat/strftime.c
+++ b/compat/strftime.c
@@ -10,7 +10,7 @@
*
* Changes 2002 Copyright (c) 2002 ActiveState Corporation.
*
- * RCS: @(#) $Id: strftime.c,v 1.14 2003/08/27 19:31:00 davygrvy Exp $
+ * RCS: @(#) $Id: strftime.c,v 1.15 2004/04/06 22:25:48 dgp Exp $
*/
/*
@@ -47,14 +47,13 @@
*/
#if defined(LIBC_SCCS)
-static char *rcsid = "$Id: strftime.c,v 1.14 2003/08/27 19:31:00 davygrvy Exp $";
+static char *rcsid = "$Id: strftime.c,v 1.15 2004/04/06 22:25:48 dgp Exp $";
#endif /* LIBC_SCCS */
#include <time.h>
#include <string.h>
#include <locale.h>
#include "tclInt.h"
-#include "tclPort.h"
#define TM_YEAR_BASE 1900
#define IsLeapYear(x) ((x % 4 == 0) && (x % 100 != 0 || x % 400 == 0))
diff --git a/compat/strstr.c b/compat/strstr.c
index c83c209..d1f8516 100644
--- a/compat/strstr.c
+++ b/compat/strstr.c
@@ -9,9 +9,11 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strstr.c,v 1.3 2002/01/26 01:10:08 dgp Exp $
+ * RCS: @(#) $Id: strstr.c,v 1.4 2004/04/06 22:25:48 dgp Exp $
*/
+#include "tcl.h"
+
/*
*----------------------------------------------------------------------
*
diff --git a/compat/strtod.c b/compat/strtod.c
index 063e175..b75d72e 100644
--- a/compat/strtod.c
+++ b/compat/strtod.c
@@ -9,11 +9,10 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtod.c,v 1.6 2002/02/25 14:26:12 dgp Exp $
+ * RCS: @(#) $Id: strtod.c,v 1.7 2004/04/06 22:25:48 dgp Exp $
*/
#include "tclInt.h"
-#include "tclPort.h"
#include <ctype.h>
#ifndef TRUE
diff --git a/compat/strtol.c b/compat/strtol.c
index 78b0d59..b91e7d0 100644
--- a/compat/strtol.c
+++ b/compat/strtol.c
@@ -9,12 +9,11 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtol.c,v 1.4 2002/02/25 16:23:26 dgp Exp $
+ * RCS: @(#) $Id: strtol.c,v 1.5 2004/04/06 22:25:48 dgp Exp $
*/
#include <ctype.h>
#include "tclInt.h"
-#include "tclPort.h"
/*
diff --git a/compat/strtoll.c b/compat/strtoll.c
index a28ffea..7d10eb4 100644
--- a/compat/strtoll.c
+++ b/compat/strtoll.c
@@ -9,10 +9,9 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtoll.c,v 1.6 2004/03/19 18:33:51 kennykb Exp $
+ * RCS: @(#) $Id: strtoll.c,v 1.7 2004/04/06 22:25:48 dgp Exp $
*/
-#include "tcl.h"
#include "tclInt.h"
#include <ctype.h>
diff --git a/compat/strtoul.c b/compat/strtoul.c
index 912e252..92637e1 100644
--- a/compat/strtoul.c
+++ b/compat/strtoul.c
@@ -9,11 +9,10 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtoul.c,v 1.5 2002/02/25 10:36:32 dkf Exp $
+ * RCS: @(#) $Id: strtoul.c,v 1.6 2004/04/06 22:25:48 dgp Exp $
*/
#include "tclInt.h"
-#include "tclPort.h"
/*
* The table below is used to convert from ASCII digits to a
diff --git a/compat/strtoull.c b/compat/strtoull.c
index 654173c..f46e78f 100644
--- a/compat/strtoull.c
+++ b/compat/strtoull.c
@@ -9,10 +9,9 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtoull.c,v 1.6 2004/03/19 18:33:52 kennykb Exp $
+ * RCS: @(#) $Id: strtoull.c,v 1.7 2004/04/06 22:25:48 dgp Exp $
*/
-#include "tcl.h"
#include "tclInt.h"
#include <ctype.h>
diff --git a/compat/waitpid.c b/compat/waitpid.c
index 00113cf..365d51e 100644
--- a/compat/waitpid.c
+++ b/compat/waitpid.c
@@ -12,10 +12,9 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: waitpid.c,v 1.3 2000/01/11 22:08:50 hobbs Exp $
+ * RCS: @(#) $Id: waitpid.c,v 1.4 2004/04/06 22:25:48 dgp Exp $
*/
-#include "tclInt.h"
#include "tclPort.h"
#ifndef pid_t