summaryrefslogtreecommitdiff
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-10 20:20:05 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-10 20:20:05 +0100
commit8a5883b7488e492419dde7e1637cc72f2d566ba4 (patch)
tree512e019310a24c164eb3d5577fcc873d3df4949b /src/ex_eval.c
parent95f096030ed1a8afea028f2ea295d6f6a70f466f (diff)
downloadvim-git-8a5883b7488e492419dde7e1637cc72f2d566ba4.tar.gz
patch 8.0.0075v8.0.0075
Problem: Using number for exception type lacks type checking. Solution: Use an enum.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 7589f8e0d..17e0fdb52 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -16,7 +16,7 @@
#if defined(FEAT_EVAL) || defined(PROTO)
static void free_msglist(struct msglist *l);
-static int throw_exception(void *, int, char_u *);
+static int throw_exception(void *, except_type_T, char_u *);
static char_u *get_end_emsg(struct condstack *cstack);
/*
@@ -422,7 +422,7 @@ do_intthrow(struct condstack *cstack)
char_u *
get_exception_string(
void *value,
- int type,
+ except_type_T type,
char_u *cmdname,
int *should_free)
{
@@ -503,7 +503,7 @@ get_exception_string(
* error exception.
*/
static int
-throw_exception(void *value, int type, char_u *cmdname)
+throw_exception(void *value, except_type_T type, char_u *cmdname)
{
except_T *excp;
int should_free;