bug-global
[Top][All Lists]
Advanced

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

Re: [PATCH] seems_datatype in gctags


From: Hideki IWAMOTO
Subject: Re: [PATCH] seems_datatype in gctags
Date: Wed, 19 Mar 2003 23:36:23 +0900

On Wed, 19 Mar 2003 20:30:18 +0900, Shigio Yamaguchi wrote...
> Fixed by modified patch like follows.
> This patch is logically equal to your patch, I think.
> 

No. 
The patch which I sent has two change.

Index: gctags/C.c
===================================================================
RCS file: /cvsroot/global/global/gctags/C.c,v
retrieving revision 1.30
diff -u -r1.30 C.c
--- gctags/C.c  19 Mar 2003 12:59:41 -0000      1.30
+++ gctags/C.c  19 Mar 2003 14:23:17 -0000
@@ -511,10 +511,12 @@
                /* pick up symbol */
                if (c == SYMBOL) {
                        if (target == REF) {
-                               if (seems_datatype(token))
+                               if (seems_datatype(token) && defined(token))
                                        PUT(token, lineno, sp);
-                       } else if (target == SYM)
-                               PUT(token, lineno, sp);
+                       } else if (target == SYM) {
+                               if (!seems_datatype(token) || !defined(token))
+                                       PUT(token, lineno, sp);
+                       }
                }
        }
        return 0;
Index: gctags/Cpp.c
===================================================================
RCS file: /cvsroot/global/global/gctags/Cpp.c,v
retrieving revision 1.27
diff -u -r1.27 Cpp.c
--- gctags/Cpp.c        19 Mar 2003 12:59:41 -0000      1.27
+++ gctags/Cpp.c        19 Mar 2003 14:23:18 -0000
@@ -555,10 +555,12 @@
                /* pick up symbol */
                if (c == SYMBOL) {
                        if (target == REF) {
-                               if (seems_datatype(token))
+                               if (seems_datatype(token) && defined(token))
                                        PUT(token, lineno, sp);
-                       } else if (target == SYM)
-                               PUT(token, lineno, sp);
+                       } else if (target == SYM) {
+                               if (!seems_datatype(token) || !defined(token))
+                                       PUT(token, lineno, sp);
+                       }
                }
        }
        return 0;

----
Hideki IWAMOTO  address@hidden




reply via email to

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