aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-06-06 21:35:44 -0400
committerJames McCoy <jamessan@jamessan.com>2017-06-06 21:38:31 -0400
commitca1ba1085a2be1f8963b48c9ccf3936359959924 (patch)
tree9440bfffd38ff3cdf98127c95764db1f84adadb7 /src/nvim/eval.c
parentaf59a290d8fb22a1b33be39c2fe1a6ab6848ee6d (diff)
downloadrneovim-ca1ba1085a2be1f8963b48c9ccf3936359959924.tar.gz
rneovim-ca1ba1085a2be1f8963b48c9ccf3936359959924.tar.bz2
rneovim-ca1ba1085a2be1f8963b48c9ccf3936359959924.zip
lint
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 73e19d604d..94916e3e3c 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -3915,24 +3915,21 @@ static int eval5(char_u **arg, typval_T *rettv, int evaluate)
// TODO(ZyX-I): move to eval/expressions
-/*
- * Handle fifth level expression:
- * * number multiplication
- * / number division
- * % number modulo
- *
- * "arg" must point to the first non-white of the expression.
- * "arg" is advanced to the next non-white after the recognized expression.
- *
- * Return OK or FAIL.
- */
-static int
-eval6 (
- char_u **arg,
- typval_T *rettv,
- int evaluate,
- int want_string /* after "." operator */
-) FUNC_ATTR_NO_SANITIZE_UNDEFINED
+/// Handle fifth level expression:
+/// - * number multiplication
+/// - / number division
+/// - % number modulo
+///
+/// @param[in,out] arg Points to the first non-whitespace character of the
+/// expression. Is advanced to the next non-whitespace
+/// character after the recognized expression.
+/// @param[out] rettv Location where result is saved.
+/// @param[in] evaluate If not true, rettv is not populated.
+/// @param[in] want_string True if "." is string_concatenation, otherwise
+/// float
+/// @return OK or FAIL.
+static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string)
+ FUNC_ATTR_NO_SANITIZE_UNDEFINED
{
typval_T var2;
int op;