aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames McCoy <vega.james@gmail.com>2014-03-13 21:26:26 -0400
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-14 21:54:32 -0300
commita86b1a129ebedec1d86be2fd06a4976396e7f411 (patch)
tree89a1b2e20c7a3f33b2f536dc586220dc453ffd98 /src
parent046bc5f478d199e838ddcce621d625e7df45adf5 (diff)
downloadrneovim-a86b1a129ebedec1d86be2fd06a4976396e7f411.tar.gz
rneovim-a86b1a129ebedec1d86be2fd06a4976396e7f411.tar.bz2
rneovim-a86b1a129ebedec1d86be2fd06a4976396e7f411.zip
Use include paths relative to src/
As described in Google's style guide, the basis for Neovim's > All of a project's header files should be listed as descendants of the > project's source directory without use of UNIX directory shortcuts . > (the current directory) or .. (the parent directory). Add src as an include directory to facilitate this.
Diffstat (limited to 'src')
-rw-r--r--src/os/env.c4
-rw-r--r--src/os/fs.c8
-rw-r--r--src/os/mem.c2
-rw-r--r--src/os/os.h2
-rw-r--r--src/os/users.c6
5 files changed, 11 insertions, 11 deletions
diff --git a/src/os/env.c b/src/os/env.c
index 9025b1c8ac..546caa50b8 100644
--- a/src/os/env.c
+++ b/src/os/env.c
@@ -13,8 +13,8 @@
#include <uv.h>
-#include "os.h"
-#include "../misc2.h"
+#include "os/os.h"
+#include "misc2.h"
#ifdef HAVE_CRT_EXTERNS_H
#include <crt_externs.h>
diff --git a/src/os/fs.c b/src/os/fs.c
index ee7424d745..e8525cb279 100644
--- a/src/os/fs.c
+++ b/src/os/fs.c
@@ -13,10 +13,10 @@
#include <uv.h>
-#include "os.h"
-#include "../message.h"
-#include "../misc1.h"
-#include "../misc2.h"
+#include "os/os.h"
+#include "message.h"
+#include "misc1.h"
+#include "misc2.h"
int mch_chdir(char *path) {
if (p_verbose >= 5) {
diff --git a/src/os/mem.c b/src/os/mem.c
index 20abd58261..fa93fe8398 100644
--- a/src/os/mem.c
+++ b/src/os/mem.c
@@ -13,7 +13,7 @@
#include <uv.h>
-#include "os.h"
+#include "os/os.h"
/*
* Return total amount of memory available in Kbyte.
diff --git a/src/os/os.h b/src/os/os.h
index eefa015a33..0d64f489cd 100644
--- a/src/os/os.h
+++ b/src/os/os.h
@@ -1,7 +1,7 @@
#ifndef NEOVIM_OS_OS_H
#define NEOVIM_OS_OS_H
-#include "../vim.h"
+#include "vim.h"
long_u mch_total_mem(int special);
int mch_chdir(char *path);
diff --git a/src/os/users.c b/src/os/users.c
index 2d33688d97..2104d8080e 100644
--- a/src/os/users.c
+++ b/src/os/users.c
@@ -13,9 +13,9 @@
#include <uv.h>
-#include "os.h"
-#include "../garray.h"
-#include "../misc2.h"
+#include "os/os.h"
+#include "garray.h"
+#include "misc2.h"
#ifdef HAVE_PWD_H
# include <pwd.h>
#endif