aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_eval.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-07-26 07:09:30 -0400
committerGitHub <noreply@github.com>2017-07-26 07:09:30 -0400
commit0d24af8112b41f0ff201e35135ed7bcef9fc8415 (patch)
tree5f5763470275b9ec3433703acb1ab4cc81fabfea /src/nvim/ex_eval.c
parent86f0cd7902bc232ea51b06b2c4dd4758a479b3b4 (diff)
parent09470eb673e7582e6103173754fff85ee0e1d232 (diff)
downloadrneovim-0d24af8112b41f0ff201e35135ed7bcef9fc8415.tar.gz
rneovim-0d24af8112b41f0ff201e35135ed7bcef9fc8415.tar.bz2
rneovim-0d24af8112b41f0ff201e35135ed7bcef9fc8415.zip
Merge pull request #7071 from jbradaric/vim-8.0.0075
vim-patch:8.0.0075
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r--src/nvim/ex_eval.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c
index 5d664b94a8..c029df2f13 100644
--- a/src/nvim/ex_eval.c
+++ b/src/nvim/ex_eval.c
@@ -374,10 +374,9 @@ int do_intthrow(struct condstack *cstack)
return TRUE;
}
-/*
- * Get an exception message that is to be stored in current_exception->value.
- */
-char_u *get_exception_string(void *value, int type, char_u *cmdname, int *should_free)
+// Get an exception message that is to be stored in current_exception->value.
+char_u *get_exception_string(void *value, except_type_T type, char_u *cmdname,
+ int *should_free)
{
char_u *ret, *mesg;
char_u *p, *val;
@@ -435,13 +434,11 @@ char_u *get_exception_string(void *value, int type, char_u *cmdname, int *should
}
-/*
- * Throw a new exception. Return FAIL when out of memory or it was tried to
- * throw an illegal user exception. "value" is the exception string for a
- * user or interrupt exception, or points to a message list in case of an
- * error exception.
- */
-static int throw_exception(void *value, int type, char_u *cmdname)
+// Throw a new exception. Return FAIL when out of memory or it was tried to
+// throw an illegal user exception. "value" is the exception string for a
+// user or interrupt exception, or points to a message list in case of an
+// error exception.
+static int throw_exception(void *value, except_type_T type, char_u *cmdname)
{
except_T *excp;
int should_free;