bug-global
[Top][All Lists]
Advanced

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

Re: [PATCH] --dynamic does not work


From: Shigio Yamaguchi
Subject: Re: [PATCH] --dynamic does not work
Date: Thu, 12 Jun 2003 00:13:15 +0900

Fixed. Thank you!

> The option "--dynamic" of htags has broken since yesterday.
> 
> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.150
> diff -u -r1.150 htags.in
> --- htags/htags.in    11 Jun 2003 07:37:22 -0000      1.150
> +++ htags/htags.in    11 Jun 2003 14:28:03 -0000
> @@ -1455,11 +1455,13 @@
>                       if ($prev ne $tag) {
>                               $count++;
>                               print STDERR " [$count] adding $kind $tag\n" if
 ($'vflag);
> -                             if ($writing && !$'dynamic) {
> -                                     print FILE &'list_end;
> -                                     print FILE $'body_end, "\n";
> -                                     print FILE $'html_end, "\n";
> -                                     $'file_count++;
> +                             if ($writing) {
> +                                     if (!$'dynamic) {
> +                                             print FILE &'list_end;
> +                                             print FILE $'body_end, "\n";
> +                                             print FILE $'html_end, "\n";
> +                                             $'file_count++;
> +                                     }
>                                       $writing = 0;
>                                       #
>                                       # cache record: " <file id> <entry numb
er>"
> @@ -1478,21 +1480,21 @@
>                       } else {
>                               # duplicate entry
>                               if ($first_line) {
> -                                     local($dir) = $dir{$db};
>                                       #
>                                       # Protocol:
>                                       # N<file>       create normal file.
>                                       # C<file>       create gzipped file.
>                                       #
>                                       if (!$'dynamic) {
> +                                             local($dir) = $dir{$db};
>                                               print FILE "$flag$dist/$dir/$co
unt.$'HTML\n";
> -                                             $writing = 1;
>                                               print FILE $'html_begin, "\n";
>                                               print FILE &'set_header($tag);
>                                               print FILE $'body_begin, "\n";
>                                               print FILE &'list_begin;
>                                               print FILE &'list_body($srcdir,
 $first_line);
>                                       }
> +                                     $writing = 1;
>                                       $entry_count++;
>                                       $first_line = '';
>                               }
> @@ -1504,13 +1506,14 @@
>               }
>               $definition_count = $count if ($db eq 'GTAGS');
>               close(LIST);
> -             $'file_count++;
>               if ($?) { &'error("'$command' failed."); }
> -             if (!$'dynamic && $writing) {
> -                     print FILE &'list_end;
> -                     print FILE $'body_end, "\n";
> -                     print FILE $'html_end, "\n";
> -                     $'file_count++;
> +             if ($writing) {
> +                     if (!$'dynamic) {
> +                             print FILE &'list_end;
> +                             print FILE $'body_end, "\n";
> +                             print FILE $'html_end, "\n";
> +                             $'file_count++;
> +                     }
>                       #
>                       # cache record: " <file id> <entry number>"
>                       #
> 
> ----
> Hideki IWAMOTO  address@hidden
--
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]