summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-09-26 14:06:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-09-26 14:06:57 (GMT)
commitc211c9903b52974bb4397841b10bcdefeb0329c1 (patch)
tree6fcd82883a09db577738e5402d39b10e4ce99ae0
parent6c5ebb728f871cf1ab1cd3ca4430d45a0e2a2375 (diff)
downloadtcl-c211c9903b52974bb4397841b10bcdefeb0329c1.zip
tcl-c211c9903b52974bb4397841b10bcdefeb0329c1.tar.gz
tcl-c211c9903b52974bb4397841b10bcdefeb0329c1.tar.bz2
* generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows
demonstrates, "#define NULL 0" is just wrong, and as a quotable chat figure observed, "If NULL isn't defined, we're not using a C compiler." Improper fallback definition of NULL removed.
-rw-r--r--ChangeLog7
-rw-r--r--generic/tcl.h5
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b11e06f..18adec0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-26 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows
+ demonstrates, "#define NULL 0" is just wrong, and as a quotable chat
+ figure observed, "If NULL isn't defined, we're not using a C compiler."
+ Improper fallback definition of NULL removed.
+
2006-09-25 Andreas Kupries <andreask@activestate.com>
* generic/tclIO.c (Tcl_StackChannel): Fixed [SF Tcl Bug 1564642],
diff --git a/generic/tcl.h b/generic/tcl.h
index b19fe11..d3961eb 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.153.2.26 2006/08/18 07:45:42 das Exp $
+ * RCS: @(#) $Id: tcl.h,v 1.153.2.27 2006/09/26 14:06:57 dgp Exp $
*/
#ifndef _TCL
@@ -315,9 +315,6 @@ typedef long LONG;
/*
* Miscellaneous declarations.
*/
-#ifndef NULL
-# define NULL 0
-#endif
#ifndef _CLIENTDATA
# ifndef NO_VOID