diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-30 20:52:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-30 20:52:27 +0100 |
commit | c667da5185ce5dce914d2006d62da2be0cedb384 (patch) | |
tree | cd06b08e9fb7d701653850cd33524d3f1f5acaaf /src/beval.c | |
parent | 71136db1bfbc67c2e55f8070cdf0a241c643e45b (diff) | |
download | vim-git-c667da5185ce5dce914d2006d62da2be0cedb384.tar.gz |
patch 8.1.2368: using old C style commentsv8.1.2368
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
Diffstat (limited to 'src/beval.c')
-rw-r--r-- | src/beval.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/beval.c b/src/beval.c index 8ef8e8e1d..1bc31a17a 100644 --- a/src/beval.c +++ b/src/beval.c @@ -239,13 +239,13 @@ general_beval_cb(BalloonEval *beval, int state UNUSED) #endif static int recursive = FALSE; - /* Don't do anything when 'ballooneval' is off, messages scrolled the - * windows up or we have no beval area. */ + // Don't do anything when 'ballooneval' is off, messages scrolled the + // windows up or we have no beval area. if (!can_use_beval() || beval == NULL) return; - /* Don't do this recursively. Happens when the expression evaluation - * takes a long time and invokes something that checks for CTRL-C typed. */ + // Don't do this recursively. Happens when the expression evaluation + // takes a long time and invokes something that checks for CTRL-C typed. if (recursive) return; recursive = TRUE; @@ -257,7 +257,7 @@ general_beval_cb(BalloonEval *beval, int state UNUSED) : wp->w_buffer->b_p_bexpr; if (*bexpr != NUL) { - /* Convert window pointer to number. */ + // Convert window pointer to number. for (cw = firstwin; cw != wp; cw = cw->w_next) ++winnr; @@ -285,9 +285,9 @@ general_beval_cb(BalloonEval *beval, int state UNUSED) vim_free(result); result = eval_to_string(bexpr, NULL, TRUE); - /* Remove one trailing newline, it is added when the result was a - * list and it's hardly ever useful. If the user really wants a - * trailing newline he can add two and one remains. */ + // Remove one trailing newline, it is added when the result was a + // list and it's hardly ever useful. If the user really wants a + // trailing newline he can add two and one remains. if (result != NULL) { len = STRLEN(result); @@ -322,4 +322,3 @@ general_beval_cb(BalloonEval *beval, int state UNUSED) } #endif - |