comparison src/bufwrite.c @ 35355:34a2b628cba5 v9.1.0472

patch 9.1.0472: Inconsistencies between functions for option flags Commit: https://github.com/vim/vim/commit/aa925eeb97bd294d4a5253a3194949a37cbc8365 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Jun 9 18:24:05 2024 +0200 patch 9.1.0472: Inconsistencies between functions for option flags Problem: Inconsistencies between functions for option flags. Solution: Consistently use "unsigned int" as return type and rename get_bkc_value() to get_bkc_flags() (zeertzjq). closes: #14925 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Jun 2024 18:30:02 +0200
parents dcfbfe57141c
children 004a419cc521
comparison
equal deleted inserted replaced
35354:244569f84c33 35355:34a2b628cba5
688 #endif 688 #endif
689 #ifdef FEAT_PERSISTENT_UNDO 689 #ifdef FEAT_PERSISTENT_UNDO
690 int write_undo_file = FALSE; 690 int write_undo_file = FALSE;
691 context_sha256_T sha_ctx; 691 context_sha256_T sha_ctx;
692 #endif 692 #endif
693 unsigned int bkc = get_bkc_value(buf); 693 unsigned int bkc = get_bkc_flags(buf);
694 pos_T orig_start = buf->b_op_start; 694 pos_T orig_start = buf->b_op_start;
695 pos_T orig_end = buf->b_op_end; 695 pos_T orig_end = buf->b_op_end;
696 696
697 if (fname == NULL || *fname == NUL) // safety check 697 if (fname == NULL || *fname == NUL) // safety check
698 return FAIL; 698 return FAIL;