strbuf: avoid shadowing global comment_line_char name
commit2786d058b6b25ab5f8d0994d24f4f4dc9442a41a
authorJeff King <peff@peff.net>
Tue, 12 Mar 2024 09:17:22 +0000 (12 05:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Mar 2024 20:28:10 +0000 (12 13:28 -0700)
tree81a4c65780e0c9b8332000d429a53f343b5d8e35
parent1751e581a333f01b074903b6e34c838db3132824
strbuf: avoid shadowing global comment_line_char name

Several comment-related strbuf functions take a comment_line_char
parameter. There's also a global comment_line_char variable, which is
closely related (most callers pass it in as this parameter). Let's avoid
shadowing the global name. This makes it more obvious that we're not
using the global value, and it will be especially helpful as we refactor
the global in future patches (in particular, any macro trickery wouldn't
work because the preprocessor doesn't respect scope).

We'll use "comment_prefix". That should be descriptive enough, and as a
bonus is more neutral with respect to the "char" type (since we'll
eventually swap it out for a string).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strbuf.c
strbuf.h