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

master
Benno Schulenberg 2017-08-06 13:32:44 +02:00
parent 67915f5dae
commit 11072ed587
10 changed files with 30 additions and 32 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>
#ifdef ENABLE_UTF8 #include <errno.h>
#include <langinfo.h> #include <fcntl.h>
#endif
#include <locale.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#include <getopt.h> #include <getopt.h>
#ifndef NANO_TINY #ifndef NANO_TINY
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
#ifdef ENABLE_UTF8
#include <langinfo.h>
#endif
#include <locale.h>
#include <string.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#include <unistd.h>
#ifdef ENABLE_MOUSE #ifdef ENABLE_MOUSE
static int oldinterval = -1; static int oldinterval = -1;

View File

@ -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

View File

@ -24,11 +24,11 @@
#include "proto.h" #include "proto.h"
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#ifndef NANO_TINY #ifndef NANO_TINY
static pid_t pid = -1; static pid_t pid = -1;

View File

@ -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. */

View File

@ -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