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:
Stefan Hoffmann
2014-05-10 11:49:25 +02:00
parent 8a85b37253
commit 4a22fb06b9
4 changed files with 152 additions and 7 deletions

View File

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