bug-global
[Top][All Lists]
Advanced

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

Re: [PATCH] gctags warning


From: Shigio Yamaguchi
Subject: Re: [PATCH] gctags warning
Date: Wed, 19 Mar 2003 17:20:33 +0900

Committed. Thank you.

> >cat eof.c
> typedef struct foo bar
> >gctags -dt eof.c 
> Warning: uneven {}. [+1 eof.c]
> 
> Since brace is not included in the source code,
> gctags should not output this warning message.
> 
> 
> 
> Index: gctags/C.c
> ===================================================================
> RCS file: /cvsroot/global/global/gctags/C.c,v
> retrieving revision 1.23
> diff -u -r1.23 C.c
> --- gctags/C.c        5 Mar 2003 16:04:12 -0000       1.23
> +++ gctags/C.c        8 Mar 2003 11:07:19 -0000
> @@ -374,10 +374,6 @@
>                                               fprintf(stderr, "Warning: unexp
ected eof. [+%d %s]\n", lineno, curfile);
>                                               break;
>                                       }
> -                                     if ((wflag && level != typedef_saveleve
l) || c != '}') {
> -                                             fprintf(stderr, "Warning: uneve
n {}. [+%d %s]\n", lineno, curfile);
> -                                             break;
> -                                     }
>                               } else if (c == SYMBOL) {
>                                       if (target == REF && defined(token))
>                                               PUT(token, lineno, sp);
> Index: gctags/Cpp.c
> ===================================================================
> RCS file: /cvsroot/global/global/gctags/Cpp.c,v
> retrieving revision 1.21
> diff -u -r1.21 Cpp.c
> --- gctags/Cpp.c      5 Mar 2003 16:04:12 -0000       1.21
> +++ gctags/Cpp.c      8 Mar 2003 11:07:19 -0000
> @@ -420,10 +420,6 @@
>                                               fprintf(stderr, "Warning: unexp
ected eof. [+%d %s]\n", lineno, curfile);
>                                               break;
>                                       }
> -                                     if ((wflag && level != typedef_saveleve
l) || c != '}') {
> -                                             fprintf(stderr, "Warning: uneve
n {}. [+%d %s]\n", lineno, curfile);
> -                                             break;
> -                                     }
>                               } else if (c == SYMBOL) {
>                                       if (target == REF && defined(token))
>                                               PUT(token, lineno, sp);
> 
> ----
> Hideki IWAMOTO  address@hidden
> 
> 
> _______________________________________________
> Bug-global mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-global
> 
> 
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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