mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
os/: remove redundant define
This commit is contained in:
parent
07cc72ad5d
commit
c9a0875ea8
@ -21,12 +21,6 @@ typedef struct {
|
|||||||
uv_dirent_t ent; ///< @private The entry information.
|
uv_dirent_t ent; ///< @private The entry information.
|
||||||
} Directory;
|
} Directory;
|
||||||
|
|
||||||
/// Converts libuv error (negative int) to error description string.
|
|
||||||
#define os_strerror uv_strerror
|
|
||||||
|
|
||||||
/// Converts system error code to libuv error code.
|
|
||||||
#define os_translate_sys_error uv_translate_sys_error
|
|
||||||
|
|
||||||
// Values returned by os_nodetype()
|
// Values returned by os_nodetype()
|
||||||
#define NODE_NORMAL 0 // file or directory, check with os_isdir()
|
#define NODE_NORMAL 0 // file or directory, check with os_isdir()
|
||||||
#define NODE_WRITABLE 1 // something we can write to (character
|
#define NODE_WRITABLE 1 // something we can write to (character
|
||||||
|
@ -32,11 +32,12 @@
|
|||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Function to convert libuv error to char * error description
|
/// Converts libuv error (negative int) to error description string.
|
||||||
///
|
|
||||||
/// negative libuv error codes are returned by a number of os functions.
|
|
||||||
#define os_strerror uv_strerror
|
#define os_strerror uv_strerror
|
||||||
|
|
||||||
|
/// Converts system error code to libuv error code.
|
||||||
|
#define os_translate_sys_error uv_translate_sys_error
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# define os_strtok strtok_s
|
# define os_strtok strtok_s
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user