Subject: | |
From: | |
Reply To: | |
Date: | Sun, 11 Dec 2011 18:52:21 -0500 |
Content-Type: | multipart/mixed |
Parts/Attachments: |
|
|
Attached is indent-2.2.10-5.2.el6.src.rpm
Difference between indent-2.2.10-5.1.el6.i686 and
indent-2.2.10-5.2.el6.i686 is
indent-2.2.9-no-double-const.patch
diff -burp indent-2.2.10-orig/src/indent.c indent-2.2.10/src/indent.c
--- indent-2.2.10-orig/src/indent.c 2008-03-11 14:50:42.000000000 -0400
+++ indent-2.2.10/src/indent.c 2011-12-11 16:39:19.146289250 -0500
@@ -1534,7 +1534,7 @@ static void handle_token_decl(
if ((parser_state_tos->last_token == rparen) &&
parser_state_tos->in_parameter_declaration &&
parser_state_tos->saw_double_colon &&
- !strncmp (token, "const", 5))
+ ! (strncmp (token, "const", 5)==0))
{
char * t_ptr;
set_buf_break (bb_const_qualifier, paren_target);
This prevents indent from printing the "const" keyword twice on const
function definitions in C++
Cheers
--
Michael Jones
Software Engineer
CyberMetrix
2860 N National Rd #A
Columbus, IN 47201-4746 USA
812-375-5868
|
|
|