aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/encode.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-02-06 02:46:23 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:45:49 +0300
commit6167ce6df2753d5474ad49aea19f5957128ab015 (patch)
tree525c160abf96abf5eae58a6bcfab46ae4d6cd728 /src/nvim/eval/encode.c
parenta3b87fc19b652065d96cec8f571d3245f1fc2446 (diff)
downloadrneovim-6167ce6df2753d5474ad49aea19f5957128ab015.tar.gz
rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.tar.bz2
rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.zip
eval: Remove v:none
To get v:none back just rever this commit. This will not make json*() functions compatible with Vim though.
Diffstat (limited to 'src/nvim/eval/encode.c')
-rw-r--r--src/nvim/eval/encode.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c
index 0fc975ed42..1550a61f7f 100644
--- a/src/nvim/eval/encode.c
+++ b/src/nvim/eval/encode.c
@@ -55,7 +55,6 @@ typedef kvec_t(MPConvStackVal) MPConvStack;
const char *const encode_special_var_names[] = {
[kSpecialVarNull] = "null",
- [kSpecialVarNone] = "none",
[kSpecialVarTrue] = "true",
[kSpecialVarFalse] = "false",
};
@@ -358,10 +357,6 @@ static int name##_convert_one_value(firstargtype firstargname, \
CONV_BOOL(tv->vval.v_special == kSpecialVarTrue); \
break; \
} \
- case kSpecialVarNone: { \
- CONV_NONE_VAL(); \
- break; \
- } \
} \
break; \
} \
@@ -726,9 +721,6 @@ encode_vim_to_##name##_error_ret: \
#define CONV_BOOL(num) \
ga_concat(gap, ((num)? "v:true": "v:false"))
-#define CONV_NONE_VAL() \
- ga_concat(gap, "v:none")
-
#define CONV_UNSIGNED_NUMBER(num)
#define CONV_DICT_START(len) \
@@ -1074,9 +1066,6 @@ static inline bool check_json_key(const typval_T *const tv)
} \
} while (0)
-#undef CONV_NONE_VAL
-#define CONV_NONE_VAL()
-
DEFINE_VIML_CONV_FUNCTIONS(static, json, garray_T *const, gap)
#undef CONV_STRING
@@ -1090,7 +1079,6 @@ DEFINE_VIML_CONV_FUNCTIONS(static, json, garray_T *const, gap)
#undef CONV_EMPTY_DICT
#undef CONV_NIL
#undef CONV_BOOL
-#undef CONV_NONE_VAL
#undef CONV_UNSIGNED_NUMBER
#undef CONV_DICT_START
#undef CONV_DICT_END
@@ -1226,10 +1214,6 @@ char *encode_tv2json(typval_T *tv, size_t *len)
#define CONV_NIL() \
msgpack_pack_nil(packer)
-#define CONV_NONE_VAL() \
- return conv_error(_("E953: Attempt to convert v:none in %s, %s"), \
- mpstack, objname)
-
#define CONV_BOOL(num) \
do { \
if ((num)) { \
@@ -1277,7 +1261,6 @@ DEFINE_VIML_CONV_FUNCTIONS(, msgpack, msgpack_packer *const, packer)
#undef CONV_EMPTY_DICT
#undef CONV_NIL
#undef CONV_BOOL
-#undef CONV_NONE_VAL
#undef CONV_UNSIGNED_NUMBER
#undef CONV_DICT_START
#undef CONV_DICT_END