[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] --dynamic does not work
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] --dynamic does not work |
Date: |
Wed, 11 Jun 2003 23:32:40 +0900 |
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
number>"
@@ -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/$count.$'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
- [PATCH] --dynamic does not work,
Hideki IWAMOTO <=