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.
This commit is contained in:
James McCoy 2014-03-13 21:26:26 -04:00 committed by Thiago de Arruda
parent 046bc5f478
commit a86b1a129e
6 changed files with 12 additions and 11 deletions

View File

@ -46,6 +46,7 @@ find_package(LibUV REQUIRED)
include_directories(${LibUV_INCLUDE_DIRS})
include_directories ("${PROJECT_BINARY_DIR}/config")
include_directories ("${PROJECT_SOURCE_DIR}/src")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

View File

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

View File

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

View File

@ -13,7 +13,7 @@
#include <uv.h>
#include "os.h"
#include "os/os.h"
/*
* Return total amount of memory available in Kbyte.

View File

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

View File

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