File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111#include <string.h>
1212#include <ctype.h>
1313
14- static const char comment_line_char = '#' ;
14+ #define COMMENT_LINE_CHAR '#'
1515
1616static const char * const git_generated_prefixes [] = {
1717 "Signed-off-by: " ,
@@ -119,7 +119,7 @@ static int ignore_non_trailer(const char *buf, size_t len)
119119 else
120120 next_line ++ ;
121121
122- if (buf [bol ] == comment_line_char || buf [bol ] == '\n' ) {
122+ if (buf [bol ] == COMMENT_LINE_CHAR || buf [bol ] == '\n' ) {
123123 /* is this the first of the run of comments? */
124124 if (!boc )
125125 boc = bol ;
@@ -176,7 +176,7 @@ static int find_trailer_start(const char *buf, size_t len)
176176
177177 /* The first paragraph is the title and cannot be trailers */
178178 for (s = buf ; s < buf + len ; s = next_line (s )) {
179- if (s [0 ] == comment_line_char )
179+ if (s [0 ] == COMMENT_LINE_CHAR )
180180 continue ;
181181 if (is_blank_line (s ))
182182 break ;
@@ -196,7 +196,7 @@ static int find_trailer_start(const char *buf, size_t len)
196196 const char * const * p ;
197197 int separator_pos ;
198198
199- if (bol [0 ] == comment_line_char ) {
199+ if (bol [0 ] == COMMENT_LINE_CHAR ) {
200200 non_trailer_lines += possible_continuation_lines ;
201201 possible_continuation_lines = 0 ;
202202 continue ;
You can’t perform that action at this time.
0 commit comments