Commit 80686bb5 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove includes that appear to be superfluous

Without them, nano still compiles for me, with everything enabled,
even when using --enable-debug, --enable-utf8, and --with-slang.
parent 969e99bc
Showing with 2 additions and 28 deletions
+2 -28
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "proto.h" #include "proto.h"
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "proto.h" #include "proto.h"
#include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "proto.h" #include "proto.h"
#include <string.h> #include <string.h>
#include <stdio.h>
static bool keep_cutbuffer = FALSE; static bool keep_cutbuffer = FALSE;
/* Should we keep the contents of the cutbuffer? */ /* Should we keep the contents of the cutbuffer? */
......
...@@ -21,13 +21,10 @@ ...@@ -21,13 +21,10 @@
#include "proto.h" #include "proto.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <ctype.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
#include <strings.h> #include <strings.h>
#include "assert.h"
/* Global variables. */ /* Global variables. */
#ifndef NANO_TINY #ifndef NANO_TINY
......
...@@ -22,9 +22,7 @@ ...@@ -22,9 +22,7 @@
#include "proto.h" #include "proto.h"
#include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h>
#include <errno.h> #include <errno.h>
#ifdef ENABLE_HELP #ifdef ENABLE_HELP
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "proto.h" #include "proto.h"
#include <string.h> #include <string.h>
#include <ctype.h>
/* Move to the first line of the file. */ /* Move to the first line of the file. */
void do_first_line(void) void do_first_line(void)
......
...@@ -22,14 +22,11 @@ ...@@ -22,14 +22,11 @@
#include "proto.h" #include "proto.h"
#include "revision.h" #include "revision.h"
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <locale.h>
#ifdef ENABLE_UTF8 #ifdef ENABLE_UTF8
#include <langinfo.h> #include <langinfo.h>
#endif #endif
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
#include "proto.h" #include "proto.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h> #include <string.h>
static char *prompt = NULL; static char *prompt = NULL;
......
...@@ -23,9 +23,7 @@ ...@@ -23,9 +23,7 @@
#include "proto.h" #include "proto.h"
#include <glob.h> #include <glob.h>
#include <stdarg.h>
#include <string.h> #include <string.h>
#include <stdio.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
......
...@@ -22,11 +22,9 @@ ...@@ -22,11 +22,9 @@
#include "proto.h" #include "proto.h"
#include <string.h> #include <string.h>
#include <stdio.h> #ifdef DEBUG
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <time.h> #include <time.h>
#endif
static bool came_full_circle = FALSE; static bool came_full_circle = FALSE;
/* Have we reached the starting line again while searching? */ /* Have we reached the starting line again while searching? */
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "proto.h" #include "proto.h"
#include <stdio.h>
#include <signal.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -22,12 +22,10 @@ ...@@ -22,12 +22,10 @@
#include "proto.h" #include "proto.h"
#include <string.h> #include <string.h>
#include <stdio.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif
#include <ctype.h>
#include <errno.h> #include <errno.h>
/* Return the user's home directory. We use $HOME, and if that fails, /* Return the user's home directory. We use $HOME, and if that fails,
......
...@@ -26,10 +26,7 @@ ...@@ -26,10 +26,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
#include <stdio.h>
#include <stdarg.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <ctype.h> #include <ctype.h>
#ifdef REVISION #ifdef REVISION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment