bug-global
[Top][All Lists]
Advanced

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

Re: [PATCH] When option --dynamic are specified, use -nn option of globa


From: Shigio Yamaguchi
Subject: Re: [PATCH] When option --dynamic are specified, use -nn option of global at the time of tag cache creation.
Date: Thu, 29 May 2003 14:39:14 +0900

> line image is not required when --dynamic is specified

Committed with a slight modification and comments.
Thank you!

Index: htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.125
diff -c -r1.125 htags.in
*** htags.in    26 May 2003 05:19:13 -0000      1.125
--- htags.in    29 May 2003 05:33:49 -0000
***************
*** 1414,1421 ****
                local($first_line);
                local($writing) = 0;
                local($count) = 0;
  
!               local($command) = "global -nx$option \".*\" | $'gtags --sort";
                open(LIST, "$command |") || &'error("cannot fork.");
                while (<LIST>) {
                        chop;
--- 1414,1429 ----
                local($first_line);
                local($writing) = 0;
                local($count) = 0;
+               local($command);
  
!               #
!               # It is not necessary to sort here. In addition, the line
!               # image of the source code is also unnecessary with the
!               # --dynamic option, 
!               #
!               $option .= $'dynamic ? 'nn' : 'n';
! 
!               $command = "global -x$option \".*\" | $'gtags --sort";
                open(LIST, "$command |") || &'error("cannot fork.");
                while (<LIST>) {
                        chop;
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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