From e7a28cd82e797c533d8b3b3856ce317762ca165a Mon Sep 17 00:00:00 2001 From: dgp Date: Mon, 13 Mar 2006 18:18:53 +0000 Subject: * generic/tkCmds.c: Purged remaining references to * macosx/tkMacOSXPort.h: errno, and errno.h. Standardized * macosx/tkMacOSXWm.c: the logic for using header files from * macosx/tkMacOSXWm.h: the compat directory. Thanks Joe * unix/tkUnixPort.h: English for the patch. [Patch 1445404] --- ChangeLog | 8 ++++++++ generic/tkCmds.c | 3 +-- macosx/tkMacOSXPort.h | 27 ++++----------------------- macosx/tkMacOSXWm.c | 3 +-- macosx/tkMacOSXWm.h | 3 +-- unix/tkUnixPort.h | 13 +++---------- 6 files changed, 18 insertions(+), 39 deletions(-) diff --git a/ChangeLog b/ChangeLog index ee310ef..f8b1007 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-03-13 Don Porter + + * generic/tkCmds.c: Purged remaining references to + * macosx/tkMacOSXPort.h: errno, and errno.h. Standardized + * macosx/tkMacOSXWm.c: the logic for using header files from + * macosx/tkMacOSXWm.h: the compat directory. Thanks Joe + * unix/tkUnixPort.h: English for the patch. [Patch 1445404] + 2006-03-11 Donal K. Fellows * library/bgerror.tcl (::tk::dialog::error::bgerror): Truncated error diff --git a/generic/tkCmds.c b/generic/tkCmds.c index d8c91b1..cc63e25 100644 --- a/generic/tkCmds.c +++ b/generic/tkCmds.c @@ -11,12 +11,11 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCmds.c,v 1.31.2.2 2004/11/12 23:54:54 hobbs Exp $ + * RCS: @(#) $Id: tkCmds.c,v 1.31.2.3 2006/03/13 18:18:59 dgp Exp $ */ #include "tkPort.h" #include "tkInt.h" -#include #if defined(WIN32) #include "tkWinInt.h" diff --git a/macosx/tkMacOSXPort.h b/macosx/tkMacOSXPort.h index 81f190b..61e2795 100644 --- a/macosx/tkMacOSXPort.h +++ b/macosx/tkMacOSXPort.h @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXPort.h,v 1.3.2.4 2006/02/09 19:09:43 das Exp $ + * RCS: @(#) $Id: tkMacOSXPort.h,v 1.3.2.5 2006/03/13 18:19:00 dgp Exp $ */ #ifndef _TKMACPORT @@ -35,18 +35,10 @@ #include #include #include -#ifdef HAVE_LIMITS_H -# include -#else -# include "../compat/limits.h" -#endif +#include #include #include -#ifdef NO_STDLIB_H -# include "../compat/stdlib.h" -#else -# include -#endif +#include #include #include #include @@ -67,11 +59,7 @@ # include # endif #endif -#ifdef HAVE_UNISTD_H -# include -#else -# include "../compat/unistd.h" -#endif +#include #include #include #include @@ -118,13 +106,6 @@ #define MASK_SIZE howmany(FD_SETSIZE, NFDBITS) /* - * Not all systems declare the errno variable in errno.h. so this - * file does it explicitly. - */ - -extern int errno; - -/* * Define "NBBY" (number of bits per byte) if it's not already defined. */ diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 977a0e5..ba5abec 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -12,14 +12,13 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.16 2006/02/09 19:09:43 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.17 2006/03/13 18:19:00 dgp Exp $ */ #include #include "tkPort.h" #include "tkInt.h" #include "tkMacOSXInt.h" -#include #include "tkScrollbar.h" #include "tkMacOSXWm.h" #include "tkMacOSXEvent.h" diff --git a/macosx/tkMacOSXWm.h b/macosx/tkMacOSXWm.h index 5c33a5d..3753098 100644 --- a/macosx/tkMacOSXWm.h +++ b/macosx/tkMacOSXWm.h @@ -50,7 +50,7 @@ * software in accordance with the terms specified in this * license. * - * RCS: @(#) $Id: tkMacOSXWm.h,v 1.2.2.2 2005/08/09 07:40:02 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.h,v 1.2.2.3 2006/03/13 18:19:01 dgp Exp $ */ #ifndef _TKMACWM @@ -60,7 +60,6 @@ #include "tkPort.h" #include "tkInt.h" #include "tkMacOSXInt.h" -#include #include "tkScrollbar.h" /* diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h index dbde1f2..223e160 100644 --- a/unix/tkUnixPort.h +++ b/unix/tkUnixPort.h @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixPort.h,v 1.8 2002/06/14 13:35:49 dkf Exp $ + * RCS: @(#) $Id: tkUnixPort.h,v 1.8.2.1 2006/03/13 18:19:01 dgp Exp $ */ #ifndef _UNIXPORT @@ -37,7 +37,7 @@ #include #include #include -#ifdef HAVE_LIMITS_H +#ifndef NO_LIMITS_H # include #else # include "../compat/limits.h" @@ -69,7 +69,7 @@ # include # endif #endif -#ifdef HAVE_UNISTD_H +#ifndef NO_UNISTD_H # include #else # include "../compat/unistd.h" @@ -120,13 +120,6 @@ #define MASK_SIZE howmany(FD_SETSIZE, NFDBITS) /* - * Not all systems declare the errno variable in errno.h. so this - * file does it explicitly. - */ - -extern int errno; - -/* * Define "NBBY" (number of bits per byte) if it's not already defined. */ -- cgit v0.12