From: <zw...@ma...> - 2009-05-12 09:45:04
|
Author: zwelch Date: 2009-05-12 09:44:57 +0200 (Tue, 12 May 2009) New Revision: 1758 Modified: trunk/src/helper/jim-eventloop.c trunk/src/helper/jim.c Log: Audit and reduce #include directives in jim source files. Modified: trunk/src/helper/jim-eventloop.c =================================================================== --- trunk/src/helper/jim-eventloop.c 2009-05-12 07:35:00 UTC (rev 1757) +++ trunk/src/helper/jim-eventloop.c 2009-05-12 07:44:57 UTC (rev 1758) @@ -61,13 +61,6 @@ #include "jim-eventloop.h" #endif -/* POSIX includes */ -#include <sys/time.h> -#include <sys/types.h> -#include <unistd.h> -#include <stdio.h> -#include <errno.h> - #include "replacements.h" Modified: trunk/src/helper/jim.c =================================================================== --- trunk/src/helper/jim.c 2009-05-12 07:35:00 UTC (rev 1757) +++ trunk/src/helper/jim.c 2009-05-12 07:44:57 UTC (rev 1758) @@ -53,20 +53,8 @@ #define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */ #endif /* JIM_ANSIC */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> #include <stdarg.h> -#include <ctype.h> #include <limits.h> -#include <assert.h> -#include <errno.h> -#include <time.h> -#if defined(WIN32) -/* sys/time - need is different */ -#else -#include <sys/time.h> // for gettimeofday() -#endif #include "replacements.h" @@ -90,10 +78,6 @@ #endif /* WIN32 */ #endif /* JIM_DYNLIB */ -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #ifdef __ECOS #include <cyg/jimtcl/jim.h> #else |