mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
api/internal: Remove set
field from Error type.
This commit is contained in:
@@ -8,9 +8,11 @@
|
||||
#define ARRAY_DICT_INIT {.size = 0, .capacity = 0, .items = NULL}
|
||||
#define STRING_INIT {.data = NULL, .size = 0}
|
||||
#define OBJECT_INIT { .type = kObjectTypeNil }
|
||||
#define ERROR_INIT { .set = false, .msg = NULL }
|
||||
#define ERROR_INIT { .type = kErrorTypeNone, .msg = NULL }
|
||||
#define REMOTE_TYPE(type) typedef handle_T type
|
||||
|
||||
#define ERROR_SET(e) ((e)->type != kErrorTypeNone)
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# define ArrayOf(...) Array
|
||||
# define DictionaryOf(...) Dictionary
|
||||
@@ -20,6 +22,7 @@ typedef int handle_T;
|
||||
|
||||
// Basic types
|
||||
typedef enum {
|
||||
kErrorTypeNone = -1,
|
||||
kErrorTypeException,
|
||||
kErrorTypeValidation
|
||||
} ErrorType;
|
||||
@@ -39,7 +42,6 @@ typedef enum {
|
||||
typedef struct {
|
||||
ErrorType type;
|
||||
char *msg;
|
||||
bool set;
|
||||
} Error;
|
||||
|
||||
typedef bool Boolean;
|
||||
|
Reference in New Issue
Block a user