All,
Following on from the previous exchange, I went through and checked
the rest of the code for unnecessary header includes. I found several
in three files. I've attached a patch (which is inlined at the end of
the email; I'm not sure what the proper rule is for attaching patches
in plaintext).
Cheers,
Alexander
Patch for unnecessary includes:
diff a/global.c b/global.c
--- a/global.c
+++ b/global.c
@@ -19,9 +19,7 @@
#include <errno.h>
#include <limits.h>
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include "ed.h"
diff a/regex.c b/regex.c
--- a/regex.c
+++ b/regex.c
@@ -17,11 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stddef.h>
-#include <errno.h>
#include <regex.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include "ed.h"
diff a/signal.c b/signal.c
--- a/signal.c
+++ b/signal.c
@@ -17,14 +17,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <setjmp.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
-#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>