Hi,
I'm still using version 0.3.1 of LXR. It's simple and quite usefull and I love it. :-)
I noticed a possible bug of 0.3.1. In my environment LXR fails to handle making links from #include "foo.h", #include <bar.h> (foo.h remains non-link plain text).
Here's my short fix.
*** Common.pm Thu Dec 30 07:43:00 2004 --- /src/lxr-0.3.1/Common.pm Thu May 14 21:01:44 1998 *************** *** 193,202 **** # Include directive $frag =~ s#\"(.*)\"# '"'.&fileref($1, $virtp.$1).'"'#e; ! $frag =~ s#<(.*)\0# ! '<'.&fileref ! ($1, ! $Conf->mappath($Conf->incprefix."/$1"))#e; } else { # Code $frag =~ s#(^|[^a-zA-Z_\#0-9])([a-zA-Z_~][a-zA-Z0-9_]*)\b# --- 193,203 ---- # Include directive $frag =~ s#\"(.*)\"# '"'.&fileref($1, $virtp.$1).'"'#e; ! $frag =~ s#<(.*)># ! "<".&fileref ! ($1, ! $Conf->mappath($Conf->incprefix."/$1")). ! ">"#e; } else { # Code $frag =~ s#(^|[^a-zA-Z_\#0-9])([a-zA-Z_~][a-zA-Z0-9_]*)\b#
I'm not quite sure whether this is the right way to fix the problem. But it's working in my envrionment. :-) :-)
-- Toshiharu Harada mailto:haradats@users.sourceforge.net
Log in to post a comment.
Hi,
I'm still using version 0.3.1 of LXR. It's simple and
quite usefull and I love it. :-)
I noticed a possible bug of 0.3.1. In my environment
LXR fails to handle making links from #include "foo.h", #include <bar.h> (foo.h remains non-link plain text).
Here's my short fix.
*** Common.pm Thu Dec 30 07:43:00 2004
--- /src/lxr-0.3.1/Common.pm Thu May 14 21:01:44 1998
***************
*** 193,202 ****
# Include directive
$frag =~ s#\"(.*)\"#
'"'.&fileref($1, $virtp.$1).'"'#e;
! $frag =~ s#<(.*)\0#
! '<'.&fileref
! ($1,
! $Conf->mappath($Conf->incprefix."/$1"))#e;
} else {
# Code
$frag =~ s#(^|[^a-zA-Z_\#0-9])([a-zA-Z_~][a-zA-Z0-9_]*)\b#
--- 193,203 ----
# Include directive
$frag =~ s#\"(.*)\"#
'"'.&fileref($1, $virtp.$1).'"'#e;
! $frag =~ s#<(.*)>#
! "<".&fileref
! ($1,
! $Conf->mappath($Conf->incprefix."/$1")).
! ">"#e;
} else {
# Code
$frag =~ s#(^|[^a-zA-Z_\#0-9])([a-zA-Z_~][a-zA-Z0-9_]*)\b#
I'm not quite sure whether this is the right way to fix
the problem. But it's working in my envrionment. :-) :-)
--
Toshiharu Harada
mailto:haradats@users.sourceforge.net