Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37045430
en ru br
Репозитории ALT
S:5.8-alt6
5.1: 5.6-alt1
4.1: 5.6-alt1
4.0: 5.6-alt1
3.0: 5.5.4-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: ctags

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0012-Make-sure-we-don-t-throw-things-away-while-collectin.patch
Скачать


From fe0ba956daf1f3940543e3dce8ec0befcab4d386 Mon Sep 17 00:00:00 2001
From: Daniel Garcia <danielgarcia@gmail.com>
Date: Wed, 24 Feb 2016 00:59:15 -0800
Subject: [PATCH 12/19] Make sure we don't throw things away while collecting
 the signature, though
---
 c.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/c.c b/c.c
index b975453..386af29 100644
--- a/c.c
+++ b/c.c
@@ -1395,7 +1395,9 @@ static void skipToMatch (const char *const pair)
 			// watch out for '<<' in template arguments
 			int x = cppGetc ();
 			if(c == '<' && x == '<') { 
-				// we've found a << - do nothing
+				// we've found a << - do nothing except record the signature
+				if (CollectingSignature)
+					vStringPut(Signature, x);
 			} else {
 				cppUngetc (x);
 				++matchLevel;
@@ -1411,7 +1413,9 @@ static void skipToMatch (const char *const pair)
 			// watch out for '>>' in template arguments
 			int x = cppGetc ();
 			if(c == '>' && x == '>') { 
-				// we've found a >> in a template - skip it
+				// we've found a >> - do nothing except record the signature
+				if (CollectingSignature)
+					vStringPut(Signature, x);
 			} else {
 				cppUngetc (x);
 				--matchLevel;
-- 
2.11.0
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin