mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
file: Move src/nvim/file.* to src/nvim/os/fileio.*
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// @file file.c
|
||||
/// @file fileio.c
|
||||
///
|
||||
/// 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
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
#include "nvim/file.h"
|
||||
#include "nvim/os/fileio.h"
|
||||
#include "nvim/memory.h"
|
||||
#include "nvim/os/os.h"
|
||||
#include "nvim/globals.h"
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "nvim/macros.h"
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "file.c.generated.h"
|
||||
# include "os/fileio.c.generated.h"
|
||||
#endif
|
||||
|
||||
/// Open file
|
@@ -1,5 +1,5 @@
|
||||
#ifndef NVIM_FILE_H
|
||||
#define NVIM_FILE_H
|
||||
#ifndef NVIM_OS_FILEIO_H
|
||||
#define NVIM_OS_FILEIO_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
@@ -67,6 +67,6 @@ enum {
|
||||
};
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "file.h.generated.h"
|
||||
# include "os/fileio.h.generated.h"
|
||||
#endif
|
||||
#endif // NVIM_FILE_H
|
||||
#endif // NVIM_OS_FILEIO_H
|
@@ -35,7 +35,7 @@
|
||||
#include "nvim/version.h"
|
||||
#include "nvim/path.h"
|
||||
#include "nvim/fileio.h"
|
||||
#include "nvim/file.h"
|
||||
#include "nvim/os/fileio.h"
|
||||
#include "nvim/strings.h"
|
||||
#include "nvim/quickfix.h"
|
||||
#include "nvim/eval/encode.h"
|
||||
|
@@ -7,7 +7,7 @@ local ok = helpers.ok
|
||||
local ffi = helpers.ffi
|
||||
local cimport = helpers.cimport
|
||||
|
||||
local m = cimport('./src/nvim/file.h')
|
||||
local m = cimport('./src/nvim/os/fileio.h')
|
||||
|
||||
local s = ''
|
||||
for i = 0, 255 do
|
Reference in New Issue
Block a user