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 @@
#include "proto.h"
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#ifdef ENABLE_BROWSER
......
......@@ -21,8 +21,8 @@
#include "proto.h"
#include <string.h>
#include <ctype.h>
#include <string.h>
#ifdef ENABLE_UTF8
#include <wchar.h>
......
......@@ -21,13 +21,12 @@
#include "proto.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
#ifdef HAVE_MAGIC_H
#include <magic.h>
#endif
#include <string.h>
#include <unistd.h>
#ifndef DISABLE_COLOR
......
......@@ -21,14 +21,14 @@
#include "proto.h"
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
#include <libgen.h>
#include <string.h>
#include <unistd.h>
#define LOCKBUFSIZE 8192
......
......@@ -22,8 +22,8 @@
#include "proto.h"
#include <string.h>
#include <errno.h>
#include <string.h>
#ifdef ENABLE_HELP
......
......@@ -22,22 +22,22 @@
#include "proto.h"
#include "revision.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#ifndef NANO_TINY
#include <sys/ioctl.h>
#endif
#ifdef ENABLE_UTF8
#include <langinfo.h>
#endif
#include <locale.h>
#include <string.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#include <getopt.h>
#ifndef NANO_TINY
#include <sys/ioctl.h>
#endif
#include <unistd.h>
#ifdef ENABLE_MOUSE
static int oldinterval = -1;
......
......@@ -22,11 +22,11 @@
#include "proto.h"
#include <ctype.h>
#include <errno.h>
#include <glob.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <ctype.h>
#ifdef ENABLE_NANORC
......
......@@ -24,11 +24,11 @@
#include "proto.h"
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#ifndef NANO_TINY
static pid_t pid = -1;
......
......@@ -21,12 +21,12 @@
#include "proto.h"
#include <string.h>
#include <unistd.h>
#include <errno.h>
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
#include <errno.h>
#include <string.h>
#include <unistd.h>
/* 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. */
......
......@@ -22,12 +22,11 @@
#include "proto.h"
#include "revision.h"
#include <ctype.h>
#ifdef __linux__
#include <sys/ioctl.h>
#endif
#include <string.h>
#include <ctype.h>
#ifdef 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