bug-global
[Top][All Lists]
Advanced

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

[PATCH] insert closetoken() before continue


From: Hideki IWAMOTO
Subject: [PATCH] insert closetoken() before continue
Date: Wed, 26 Feb 2003 00:13:38 +0900

? gctags/.deps
? gctags/Makefile
? gctags/Makefile.in
? gctags/const.h
? gctags/gctags
? gctags/gctags.1
Index: gctags/gctags.c
===================================================================
RCS file: /cvsroot/global/global/gctags/gctags.c,v
retrieving revision 1.16
diff -u -r1.16 gctags.c
--- gctags/gctags.c     24 Feb 2003 06:50:19 -0000      1.16
+++ gctags/gctags.c     25 Feb 2003 15:04:47 -0000
@@ -255,8 +255,10 @@
 #endif
                /* get suffix of the path. */
                suffix = locatestring(argv[0], ".", MATCH_LAST);
-               if (!suffix)
+               if (!suffix) {
+                       closetoken();
                        continue;
+               }
                list = strbuf_value(active_map);
                tail = list + strbuf_getlen(active_map);
 
@@ -269,8 +271,10 @@
                        lang = NULL;
                        list += strlen(list) + 1;
                }
-               if (lang == NULL)
+               if (lang == NULL) {
+                       closetoken();
                        continue;
+               }
                if (vflag)
                        fprintf(stderr, "suffix '%s' assumed language '%s'.\n", 
suffix, lang);
                /*

----
Hideki IWAMOTO  address@hidden




reply via email to

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