Mercurial > vim
comparison src/blowfish.c @ 24768:7334bf933510 v8.2.2922
patch 8.2.2922: computing array length is done in various ways
Commit: https://github.com/vim/vim/commit/eeec2548785b2dd245a31ab25d7bde0f88ea1a6d
Author: K.Takata <kentkt@csc.jp>
Date: Wed Jun 2 13:28:16 2021 +0200
patch 8.2.2922: computing array length is done in various ways
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes https://github.com/vim/vim/issues/8305)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Jun 2021 13:30:05 +0200 |
parents | aadd1cae2ff5 |
children | 7e9e53a0368f |
comparison
equal
deleted
inserted
replaced
24767:00b56eac455d | 24768:7334bf933510 |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #include "vim.h" | 22 #include "vim.h" |
23 | 23 |
24 #if defined(FEAT_CRYPT) || defined(PROTO) | 24 #if defined(FEAT_CRYPT) || defined(PROTO) |
25 | |
26 #define ARRAY_LENGTH(A) (sizeof(A)/sizeof(A[0])) | |
27 | 25 |
28 #define BF_BLOCK 8 | 26 #define BF_BLOCK 8 |
29 #define BF_BLOCK_MASK 7 | 27 #define BF_BLOCK_MASK 7 |
30 #define BF_MAX_CFB_LEN (8 * BF_BLOCK) | 28 #define BF_MAX_CFB_LEN (8 * BF_BLOCK) |
31 | 29 |