bug-global
[Top][All Lists]
Advanced

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

Re: [PATCH] g[c]tags fault


From: Shigio Yamaguchi
Subject: Re: [PATCH] g[c]tags fault
Date: Thu, 29 Mar 2001 01:52:48 +0900

Hi,
I have fixed the bug. Please see CVS version of GLOBAL.
Thank you for your bug report!

-------------------------------------------------------
[test.c]
-------------------------------------------------------
main() {
#if A // text
#if B // text
#if C // text
#if D // text
#if E // text
#if F // text
#if G // text
        foo(0);
#endif
#endif
#endif
#endif
#endif
#endif
        exit(1);
}

-------------------------------------------------------
[bug version]
-------------------------------------------------------

% gctags --debug -w test.c
[0001]main() {
main               1 test.c           main() {
[0001]{
[0002]#if
[0010]#endif
Warning: uneven level. [+11 test.c]
[0011]#endif
[0012]#endif
[0013]#endif
[0014]#endif
[0015]#endif
Warning: missing left '{' [+17 test.c].
[0017]}
Warning: #if block unmatched. (last at level -5.)[+18 test.c]

-------------------------------------------------------
[fixed version]
-------------------------------------------------------

% ./gctags --debug -w test.c
[0001]main() {
main               1 test.c           main() {
[0001]{
[0002]#if
[0003]    #if
[0004]        #if
[0005]            #if
[0006]                #if
[0007]                    #if
[0008]                        #if
[0010]                        #endif
[0011]                    #endif
[0012]                #endif
[0013]            #endif
[0014]        #endif
[0015]    #endif
[0017]}
Warning: #if block unmatched. (last at level 1.)[+18 test.c]
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)




reply via email to

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