Commit 11072ed5 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: sort the includes, so it's a little easier to see what is there

No related merge requests found
Showing with 26 additions and 28 deletions
+26 -28
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
#include "proto.h" #include "proto.h"
#include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h>
#ifdef ENABLE_BROWSER #ifdef ENABLE_BROWSER
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
#include "proto.h" #include "proto.h"
#include <string.h>
#include <ctype.h> #include <ctype.h>
#include <string.h>
#ifdef ENABLE_UTF8 #ifdef ENABLE_UTF8
#include <wchar.h> #include <wchar.h>
......
...@@ -21,13 +21,12 @@ ...@@ -21,13 +21,12 @@
#include "proto.h" #include "proto.h"
#include <string.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#ifdef HAVE_MAGIC_H #ifdef HAVE_MAGIC_H
#include <magic.h> #include <magic.h>
#endif #endif
#include <string.h>
#include <unistd.h>
#ifndef DISABLE_COLOR #ifndef DISABLE_COLOR
......
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
#include "proto.h" #include "proto.h"
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif
#include <libgen.h> #include <string.h>
#include <unistd.h>
#define LOCKBUFSIZE 8192 #define LOCKBUFSIZE 8192
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#include "proto.h" #include "proto.h"
#include <string.h>
#include <errno.h> #include <errno.h>
#include <string.h>
#ifdef ENABLE_HELP #ifdef ENABLE_HELP
......
...@@ -22,22 +22,22 @@ ...@@ -22,22 +22,22 @@
#include "proto.h" #include "proto.h"
#include "revision.h" #include "revision.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#ifndef NANO_TINY
#include <sys/ioctl.h>
#endif
#ifdef ENABLE_UTF8 #ifdef ENABLE_UTF8
#include <langinfo.h> #include <langinfo.h>
#endif #endif
#include <locale.h> #include <locale.h>
#include <string.h>
#ifdef HAVE_TERMIOS_H #ifdef HAVE_TERMIOS_H
#include <termios.h> #include <termios.h>
#endif #endif
#include <getopt.h> #include <unistd.h>
#ifndef NANO_TINY
#include <sys/ioctl.h>
#endif
#ifdef ENABLE_MOUSE #ifdef ENABLE_MOUSE
static int oldinterval = -1; static int oldinterval = -1;
......
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
#include "proto.h" #include "proto.h"
#include <ctype.h>
#include <errno.h>
#include <glob.h> #include <glob.h>
#include <string.h> #include <string.h>
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h>
#ifdef ENABLE_NANORC #ifdef ENABLE_NANORC
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
#include "proto.h" #include "proto.h"
#include <unistd.h> #include <errno.h>
#include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <errno.h>
#ifndef NANO_TINY #ifndef NANO_TINY
static pid_t pid = -1; static pid_t pid = -1;
......
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
#include "proto.h" #include "proto.h"
#include <string.h> #include <errno.h>
#include <unistd.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif #endif
#include <errno.h> #include <string.h>
#include <unistd.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,
* we fall back on the home directory of the effective user ID. */ * we fall back on the home directory of the effective user ID. */
......
...@@ -22,12 +22,11 @@ ...@@ -22,12 +22,11 @@
#include "proto.h" #include "proto.h"
#include "revision.h" #include "revision.h"
#include <ctype.h>
#ifdef __linux__ #ifdef __linux__
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
#include <string.h> #include <string.h>
#include <ctype.h>
#ifdef REVISION #ifdef REVISION
#define BRANDING REVISION #define BRANDING 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