Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
11072ed5
Commit
11072ed5
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: sort the includes, so it's a little easier to see what is there
parent
67915f5d
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
src/browser.c
+1
-1
src/browser.c
src/chars.c
+1
-1
src/chars.c
src/color.c
+2
-3
src/color.c
src/files.c
+4
-4
src/files.c
src/help.c
+1
-1
src/help.c
src/nano.c
+8
-8
src/nano.c
src/rcfile.c
+2
-2
src/rcfile.c
src/text.c
+3
-3
src/text.c
src/utils.c
+3
-3
src/utils.c
src/winio.c
+1
-2
src/winio.c
with
26 additions
and
28 deletions
+26
-28
src/browser.c
View file @
11072ed5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/chars.c
View file @
11072ed5
...
...
@@ -21,8 +21,8 @@
#include "proto.h"
#include <string.h>
#include <ctype.h>
#include <string.h>
#ifdef ENABLE_UTF8
#include <wchar.h>
...
...
This diff is collapsed.
Click to expand it.
src/color.c
View file @
11072ed5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/files.c
View file @
11072ed5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/help.c
View file @
11072ed5
...
...
@@ -22,8 +22,8 @@
#include "proto.h"
#include <string.h>
#include <errno.h>
#include <string.h>
#ifdef ENABLE_HELP
...
...
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
11072ed5
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/rcfile.c
View file @
11072ed5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/text.c
View file @
11072ed5
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/utils.c
View file @
11072ed5
...
...
@@ -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. */
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
11072ed5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help