bug-global
[Top][All Lists]
Advanced

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

[PATCH] gctags warning


From: Hideki IWAMOTO
Subject: [PATCH] gctags warning
Date: Sat, 08 Mar 2003 20:15:06 +0900

>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: 
unexpected eof. [+%d %s]\n", lineno, curfile);
                                                break;
                                        }
-                                       if ((wflag && level != 
typedef_savelevel) || c != '}') {
-                                               fprintf(stderr, "Warning: 
uneven {}. [+%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: 
unexpected eof. [+%d %s]\n", lineno, curfile);
                                                break;
                                        }
-                                       if ((wflag && level != 
typedef_savelevel) || c != '}') {
-                                               fprintf(stderr, "Warning: 
uneven {}. [+%d %s]\n", lineno, curfile);
-                                               break;
-                                       }
                                } else if (c == SYMBOL) {
                                        if (target == REF && defined(token))
                                                PUT(token, lineno, sp);

----
Hideki IWAMOTO  address@hidden




reply via email to

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