Mercurial > vim
comparison src/macros.h @ 32395:2ed95122d59c v9.0.1529
patch 9.0.1529: code style test doesn't check for space after "if"
Commit: https://github.com/vim/vim/commit/c9471b18728b1b37c04845ca2bc59fc981308b2d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 9 15:00:00 2023 +0100
patch 9.0.1529: code style test doesn't check for space after "if"
Problem: Code style test doesn't check for space after "if".
Solution: Add a test for space.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 May 2023 16:15:05 +0200 |
parents | 6e96bd314ffe |
children | 448aef880252 |
comparison
equal
deleted
inserted
replaced
32394:0db2ebbe7711 | 32395:2ed95122d59c |
---|---|
238 | 238 |
239 #define MB_COPY_CHAR(f, t) do { if (has_mbyte) mb_copy_char(&(f), &(t)); else *(t)++ = *(f)++; } while (0) | 239 #define MB_COPY_CHAR(f, t) do { if (has_mbyte) mb_copy_char(&(f), &(t)); else *(t)++ = *(f)++; } while (0) |
240 #define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : (int)STRLEN(p)) | 240 #define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : (int)STRLEN(p)) |
241 #define MB_CHAR2LEN(c) (has_mbyte ? mb_char2len(c) : 1) | 241 #define MB_CHAR2LEN(c) (has_mbyte ? mb_char2len(c) : 1) |
242 #define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p)) | 242 #define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p)) |
243 #define MB_CHAR2BYTES(c, b) do { if (has_mbyte) (b) += (*mb_char2bytes)((c), (b)); else *(b)++ = (c); } while(0) | 243 #define MB_CHAR2BYTES(c, b) do { if (has_mbyte) (b) += (*mb_char2bytes)((c), (b)); else *(b)++ = (c); } while (0) |
244 | 244 |
245 #ifdef FEAT_AUTOCHDIR | 245 #ifdef FEAT_AUTOCHDIR |
246 # define DO_AUTOCHDIR do { if (p_acd) do_autochdir(); } while (0) | 246 # define DO_AUTOCHDIR do { if (p_acd) do_autochdir(); } while (0) |
247 #else | 247 #else |
248 # define DO_AUTOCHDIR do { /**/ } while (0) | 248 # define DO_AUTOCHDIR do { /**/ } while (0) |