[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Some tooltips added
From: |
Shigio Yamaguchi |
Subject: |
Re: [PATCH] Some tooltips added |
Date: |
Fri, 13 Jun 2003 09:24:56 +0900 |
Committed. Thank you.
> * Some tooltips added.
> * Fix comment.
>
>
> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.151
> diff -u -r1.151 htags.in
> --- htags/htags.in 11 Jun 2003 14:59:53 -0000 1.151
> +++ htags/htags.in 12 Jun 2003 16:00:28 -0000
> @@ -321,7 +321,7 @@
> #
> # This is alternative for title string.
> #
> -# i) type D, R, Y
> +# i) type D, I, R, Y
> # i) lno >0: line number, -1: multi line
> # i) opt lno > 0: file name
> # lno == -1: entry count
> @@ -331,7 +331,9 @@
> local($msg) = '';
>
> if ($lno > 0) {
> - if ($type eq 'R') {
> + if ($type eq 'I') {
> + $msg .= 'Included from';
> + } elsif ($type eq 'R') {
> $msg .= 'Defined at';
> } elsif ($type eq 'Y') {
> $msg .= 'Used at';
> @@ -344,7 +346,9 @@
> }
> } else {
> $msg .= 'Multiple ';
> - if ($type eq 'R') {
> + if ($type eq 'I') {
> + $msg .= 'included from';
> + } elsif ($type eq 'R') {
> $msg .= 'defined in';
> } elsif ($type eq 'Y') {
> $msg .= 'used in';
> @@ -1870,6 +1874,7 @@
> select($org);
> foreach $last (keys %includes) {
> if (!defined $included_from{$last}) {
> + delete $includes{$last};
> next;
> }
> local($no, @incs) = split(/\n/, $includes{$last});
> @@ -1898,9 +1903,8 @@
> }
> local(@refs) = split(/\n/, $included_from{$last});
> if (@refs == 1) {
> - local($nouse, $lno, $filename, $image) = split(/\s+/, $
refs[0], 4);
> - local($url) = &'path2url($filename);
> - $included_from{$last} = "$url#$lno";
> + local($nouse, $lno, $filename) = split(/\s+/, $refs[0])
;
> + $included_from{$last} = "$lno $filename";
> } else {
> local($path) = "$dist/$'INCREFS/$no.$'HTML";
> if ($'cflag) {
> @@ -1920,7 +1924,7 @@
> print INCLUDE $'html_end, "\n";
> close(INCLUDE);
> $'file_count++;
> - $included_from{$last} = "../$'INCREFS/$no.$'HTML";
> + $included_from{$last} = " $no " . @refs;
> }
> }
> $count;
> @@ -2243,15 +2247,26 @@
> #
> else {
> #
> - # DEFINITIONS index.
> + # INCLUDED FROM index.
> #
> local($basename) = ($file =~ /([^\/]+)$/);
> - if (defined $'included_from{$basename}) {
> - print "<H2><A HREF=$'included_from{$basename}>$'title_i
ncluded_from</A></H2>\n";
> + local($incref) = $'included_from{$basename};
> + if (defined $incref) {
> + local($url, $title);
> + if ($incref =~ /^ (\d+) (\d+)/) {
> + $url = "../$'INCREFS/$1.$'HTML";
> + $title = &'show('I', -1, $2);
> + } else {
> + local($lno, $filename) = split(/\s+/, $incref);
> + $url = &'path2url($filename) . "#$lno";
> + $filename =~ s!\./!!;
> + $title = &'show('I', $lno, $filename);
> + }
> + print "<H2><A HREF=$url TITLE='$title'>$'title_included
_from</A></H2>\n";
> print "$'hr\n";
> }
> #
> - # INCLUDED FROM index.
> + # DEFINITIONS index.
> #
> local($define_index) = '';
> local($lno, $tag, $type);
>
> ----
> 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