From 28275fe5c3eedd7d5c5954178a28884a7a7b9483 Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 18 Apr 2016 01:32:00 +0300 Subject: [PATCH] *: Fix preincrement lint errors --- src/nvim/eval.c | 12 ++++++------ src/nvim/fileio.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index aaad9fab34..9d370632a1 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -478,7 +478,7 @@ void eval_init(void) hash_init(&compat_hashtab); hash_init(&func_hashtab); - for (size_t i = 0; i < ARRAY_SIZE(vimvars); ++i) { + for (size_t i = 0; i < ARRAY_SIZE(vimvars); i++) { p = &vimvars[i]; STRCPY(p->vv_di.di_key, p->vv_name); if (p->vv_flags & VV_RO) @@ -537,7 +537,7 @@ void eval_clear(void) { struct vimvar *p; - for (size_t i = 0; i < ARRAY_SIZE(vimvars); ++i) { + for (size_t i = 0; i < ARRAY_SIZE(vimvars); i++) { p = &vimvars[i]; if (p->vv_di.di_tv.v_type == VAR_STRING) { xfree(p->vv_str); @@ -20069,10 +20069,10 @@ call_user_func ( msg_outnum((long)argvars[i].vval.v_number); } else { // Do not want errors such as E724 here. - ++emsg_off; + emsg_off++; char_u *s = (char_u *) encode_tv2string(&argvars[i], NULL); char_u *tofree = s; - --emsg_off; + emsg_off--; if (s != NULL) { if (vim_strsize(s) > MSG_BUF_CLEN) { trunc_string(s, buf, MSG_BUF_CLEN, MSG_BUF_LEN); @@ -20163,10 +20163,10 @@ call_user_func ( // The value may be very long. Skip the middle part, so that we // have some idea how it starts and ends. smsg() would always // truncate it at the end. Don't want errors such as E724 here. - ++emsg_off; + emsg_off++; char_u *s = (char_u *) encode_tv2string(fc->rettv, NULL); char_u *tofree = s; - --emsg_off; + emsg_off--; if (s != NULL) { if (vim_strsize(s) > MSG_BUF_CLEN) { trunc_string(s, buf, MSG_BUF_CLEN, MSG_BUF_LEN); diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index f4fc744e04..32e1b645d0 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4816,11 +4816,11 @@ buf_check_timestamp ( busy = true; set_vim_var_string(VV_FCS_REASON, reason, -1); set_vim_var_string(VV_FCS_CHOICE, "", -1); - ++allbuf_lock; + allbuf_lock++; n = apply_autocmds(EVENT_FILECHANGEDSHELL, - buf->b_fname, buf->b_fname, FALSE, buf); - --allbuf_lock; - busy = FALSE; + buf->b_fname, buf->b_fname, false, buf); + allbuf_lock--; + busy = false; if (n) { if (!buf_valid(buf)) EMSG(_("E246: FileChangedShell autocommand deleted buffer"));