bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] g[c]tags fault


From: Eric PAIRE
Subject: [PATCH] g[c]tags fault
Date: Mon, 26 Mar 2001 15:34:39 +0200

Hi,

I have used globals for the first time in a large C/C++ project and it showed
up with a segmentation fault. After some investigation, I discovered that
gctags eats up the first token after a // comment in a line beginning with
a preprocessor conditional directive (which is particularly annoying when
this tag is a new block entry as #if ;-)

The attached fix seems to correct this problem.

Amicalement,
-Eric
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ Eric PAIRE
Web  : http://www.ri.silicomp.com/~paire  | Groupe SILICOMP - Research Institute
Email: address@hidden         | 2, avenue de Vignate
Phone: +33 (0) 476 63 48 71               | F-38610 Gieres
Fax  : +33 (0) 476 51 05 32               | FRANCE
------  Cut Here  ------  Cut Here  ------  Cut Here  ------  Cut Here  ------
--- libutil/token.c     Mon Mar 26 15:21:45 2001
+++ libutil/token.c~    Sat Sep  2 23:54:40 2000
@@ -154,7 +154,6 @@
                                while ((c = nextchar()) != EOF)
                                        if (c == '\n')
                                                break;
-                               break;
                        } else if (c == '*') {
                                while ((c = nextchar()) != EOF) {
                                        if (c == '*') {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]