LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0005-Ensuring-a-space-is-printed-in-return-type-AFTER-the.patch of Package ctags (Project home:michals:arduino)

From b27f1a9c3468618eb6b2a02b33a9058f3ca567e6 Mon Sep 17 00:00:00 2001
From: Federico Fissore <federico@fissore.org>
Date: Mon, 23 Nov 2015 10:47:18 +0100
Subject: [PATCH 05/19] Ensuring a space is printed in return type AFTER the
 keyword

---
 c.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/c.c b/c.c
index 727d6bb..c40cc42 100644
--- a/c.c
+++ b/c.c
@@ -2202,11 +2202,11 @@ static void parseReturnType (statementInfo *const st)
 				vStringPut (ReturnType, '&');
 				break;
 
-			case TOKEN_KEYWORD:
-				vStringPut (ReturnType, ' ');
-				
 			default:
 				vStringCat (ReturnType, curr_tok->name);
+				if (curr_tok->type == TOKEN_KEYWORD) {
+					vStringPut (ReturnType, ' ');
+				}
 				break;				
 		}
 	}
-- 
2.11.0