file: Move src/nvim/file.* to src/nvim/os/fileio.*

This commit is contained in:
ZyX
2016-06-23 21:17:24 +03:00
parent fec7983ecd
commit 2dd154457c
4 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
/// @file file.c /// @file fileio.c
/// ///
/// Buffered reading/writing to a file. Unlike fileio.c this is not dealing with /// Buffered reading/writing to a file. Unlike fileio.c this is not dealing with
/// Neovim stuctures for buffer, with autocommands, etc: just fopen/fread/fwrite /// Neovim stuctures for buffer, with autocommands, etc: just fopen/fread/fwrite
@@ -18,7 +18,7 @@
#include <uv.h> #include <uv.h>
#include "nvim/file.h" #include "nvim/os/fileio.h"
#include "nvim/memory.h" #include "nvim/memory.h"
#include "nvim/os/os.h" #include "nvim/os/os.h"
#include "nvim/globals.h" #include "nvim/globals.h"
@@ -26,7 +26,7 @@
#include "nvim/macros.h" #include "nvim/macros.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
# include "file.c.generated.h" # include "os/fileio.c.generated.h"
#endif #endif
/// Open file /// Open file

View File

@@ -1,5 +1,5 @@
#ifndef NVIM_FILE_H #ifndef NVIM_OS_FILEIO_H
#define NVIM_FILE_H #define NVIM_OS_FILEIO_H
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@@ -67,6 +67,6 @@ enum {
}; };
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
# include "file.h.generated.h" # include "os/fileio.h.generated.h"
#endif #endif
#endif // NVIM_FILE_H #endif // NVIM_OS_FILEIO_H

View File

@@ -35,7 +35,7 @@
#include "nvim/version.h" #include "nvim/version.h"
#include "nvim/path.h" #include "nvim/path.h"
#include "nvim/fileio.h" #include "nvim/fileio.h"
#include "nvim/file.h" #include "nvim/os/fileio.h"
#include "nvim/strings.h" #include "nvim/strings.h"
#include "nvim/quickfix.h" #include "nvim/quickfix.h"
#include "nvim/eval/encode.h" #include "nvim/eval/encode.h"

View File

@@ -7,7 +7,7 @@ local ok = helpers.ok
local ffi = helpers.ffi local ffi = helpers.ffi
local cimport = helpers.cimport local cimport = helpers.cimport
local m = cimport('./src/nvim/file.h') local m = cimport('./src/nvim/os/fileio.h')
local s = '' local s = ''
for i = 0, 255 do for i = 0, 255 do