mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
FileID: implement FileID
struct
`FileID` should encapsulate `st_dev` and `st_ino`. It is a new abstraction used to check if two files are the same. `FileID`s will be embeded inside other struts like `buf_t` or `ff_visited_T`, where a full `FileInfo` would be to big.
This commit is contained in:
@@ -2,14 +2,9 @@
|
||||
#define NVIM_OS_OS_H
|
||||
#include <uv.h>
|
||||
|
||||
#include "nvim/os/fs_defs.h"
|
||||
#include "nvim/vim.h"
|
||||
|
||||
/// Struct which encapsulates stat information.
|
||||
typedef struct {
|
||||
// TODO(stefan991): make stat private
|
||||
uv_stat_t stat;
|
||||
} FileInfo;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "os/fs.h.generated.h"
|
||||
# include "os/mem.h.generated.h"
|
||||
|
Reference in New Issue
Block a user