aboutsummaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-08 11:12:03 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-12 21:26:56 -0300
commitba11128077845d286d9f1a8282e1404d2c80b2a5 (patch)
tree967af0e44e7e248b462bbc8df686ec0fc0186d2c /src/eval.c
parentd98ca3ea98aee41354a45124cfd9f8f6dfb3017a (diff)
downloadrneovim-ba11128077845d286d9f1a8282e1404d2c80b2a5.tar.gz
rneovim-ba11128077845d286d9f1a8282e1404d2c80b2a5.tar.bz2
rneovim-ba11128077845d286d9f1a8282e1404d2c80b2a5.zip
API: Implement vim_eval
The vimscript object conversion function was adapted from the version found in 'if_py_both.h' in the upstream source. It was also required to re-add the `dict_lookup` function that was lost during the initial import.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index 8ed3a0b2dc..98ab1ea2fe 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -5261,6 +5261,11 @@ dictitem_T *dict_lookup(hashitem_T *hi)
}
#endif
+dictitem_T * dict_lookup(hashitem_T *hi)
+{
+ return HI2DI(hi);
+}
+
/*
* Return TRUE when two dictionaries have exactly the same key/values.
*/