lxr-commits Mailing List for LXR Cross Referencer (Page 29)
Brought to you by:
ajlittoz
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(11) |
Sep
(13) |
Oct
(11) |
Nov
(19) |
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(11) |
Feb
(14) |
Mar
(10) |
Apr
|
May
|
Jun
|
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2003 |
Jan
|
Feb
|
Mar
(10) |
Apr
|
May
(2) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
(26) |
Jul
(83) |
Aug
(4) |
Sep
(4) |
Oct
(9) |
Nov
|
Dec
(17) |
| 2005 |
Jan
(1) |
Feb
(71) |
Mar
(1) |
Apr
(3) |
May
(9) |
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
(1) |
Nov
(6) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(35) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(12) |
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(30) |
Apr
(55) |
May
(28) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
| 2013 |
Jan
(35) |
Feb
|
Mar
(7) |
Apr
(12) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(32) |
Oct
|
Nov
(45) |
Dec
(18) |
| 2014 |
Jan
(9) |
Feb
|
Mar
(10) |
Apr
(2) |
May
(4) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(7) |
Nov
(4) |
Dec
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 16:12:24
|
Update of /cvsroot/lxr/lxr/templates
In directory usw-pr-cvs1:/tmp/cvs-serv1620/templates
Modified Files:
html-dir.html html-head.html lxr.conf
Added Files:
html-ident.html
Log Message:
Apply patch 458027 from Pavel Hlavnicka
Adds stylesheet (CSS) support to ident, source and diff.
Output style is now controllable from via the lxr.css stylesheet (example
provided in templates). Ident output now generated via a template rather
than hard coded.
Minor additional fixes by me result in the output of ident & source both
validating as HTML 4.01 Transitional.
--- NEW FILE: html-ident.html ---
Type the full name of an identifier to summarize
(a function name, variable name, typedef, etc).
<p>
Matches are case-sensitive.
<form method=get action="ident">
$variables
<b>Identifier: </b>
<input type=text name="i" value='$identifier' size="15">
<input type=submit value="Find">
</form>
<span class=search-ident>$identifier</span>
<p>
<table>
<tr><td colspan='2'><b>Declarations:</b></td></tr>
$refs{<tr>
<td>$fileref</td><td>$rel</td>
</tr>}
</table>
<p>
<table>
<tr><td colspan='2'><b>References:</b></td></tr>
$uses{<tr>
<td width='30'> </td><td>$fileref</td>
</tr>}
</table>
Index: html-dir.html
===================================================================
RCS file: /cvsroot/lxr/lxr/templates/html-dir.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- html-dir.html 2001/08/04 18:54:15 1.1
+++ html-dir.html 2001/09/27 16:12:21 1.2
@@ -1,13 +1,13 @@
<table border=0 cellspacing=0 width="100%">
<tr valign=middle>
- <th width="1%"> </th>
- <th width="1%" nowrap align=left>Name</th>
- <th width="1%" nowrap align=right>Size</th>
- <th width="1%" nowrap align=left>Date (GMT)</th>
- <th width="96%" nowrap align=left>Description</TH>
+ <th class='dirheader' width="1%"> </th>
+ <th class='dirheader' width="1%" nowrap align=left>Name</th>
+ <th class='dirheader' width="1%" nowrap align=right>Size</th>
+ <th class='dirheader' width="1%" nowrap align=left>Date (GMT)</th>
+ <th class='dirheader' width="96%" nowrap align=left>Description</TH>
</tr>
$files{
- <tr valign=middle bgcolor="$bgcolor">
+ <tr valign=middle class="$css">
<td nowrap>$iconlink</td>
<td nowrap>$namelink</td>
<td nowrap align=right>$filesize{$bytes bytes} </td>
Index: html-head.html
===================================================================
RCS file: /cvsroot/lxr/lxr/templates/html-head.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- html-head.html 2001/08/04 18:54:15 1.1
+++ html-head.html 2001/09/27 16:12:21 1.2
@@ -3,45 +3,51 @@
<head>
<title>$title</title>
<base href=$baseurl>
+<link href="$stylesheet" rel="STYLESHEET" type="text/css"/>
</head>
-<body bgcolor=white text=black>
-<table width="100%" cellpadding=0 border=0>
- <tr valign=top>
- <td align=left valign=top>
+<body>
+<table width='100%' border='0' cellpadding='0' cellspacing='0'>
+ <tr>
+ <td rowspan='3'>
<img src="pengmini.gif"
- alt="Penguin" border=0 width=67 height=92 align=middle>
+ alt="Penguin" border=0 width=67 height=92 align=middle>
</td>
<td>
- <table width="100%" cellpadding=0 border=0>
- <tr valign=top>
- <td align=center>
- <h1>
- <a href="blurb.html">
- Cross-Referencing Linux</a><br>
- $banner
- </h1>
- </td>
- <td align=right nowrap>
- $modes{
- [ $modelink ]<br>}
+ <table width='100%' border='0' cellpadding='0' cellspacing='0'>
+ <tr>
+ <td align='center'>
+ <a href="blurb.html" class=main>Cross-Referencing Linux</a>
</td>
</tr>
- </table>
- <table width="100%" cellpadding=0 border=0>
- $variables{
<tr>
- <td align=left>
- $varname:
- </td>
- <td align=right>
- $varlinks{
- [ $varvalue ]}
- <br>
- </td>
- </tr>}
+ <td align=center>$banner</td>
+ </tr>
</table>
+ <td>
+ <td align='right'>
+ $modes{
+ [ $modelink ]<br>}
</td>
</tr>
+ <tr><td colspan='3'> </td></tr>
+ <tr>
+ <td colspan='3'>
+ <table width="100%" border=0 cellpadding='0' cellspacing='0'>
+ $variables{
+ <tr>
+ <td align=left>
+ $varname:
+ </td>
+ <td align=right>
+ $varlinks{
+ [ $varvalue ]}
+ <br>
+ </td>
+ </tr>}
+ </table>
+ </td>
+ </tr>
</table>
+
<hr>
Index: lxr.conf
===================================================================
RCS file: /cvsroot/lxr/lxr/templates/lxr.conf,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- lxr.conf 2001/08/04 18:54:15 1.1
+++ lxr.conf 2001/09/27 16:12:21 1.2
@@ -50,9 +50,11 @@
'htmlhead' => 'html-head.html',
'htmltail' => 'html-tail.html',
'htmldir' => 'html-dir.html',
+ 'htmlident' => 'html-ident.html',
'sourcehead' => 'html-head.html',
'sourcedirhead' => 'html-head.html',
+ 'stylesheet' => 'templates/lxr.css',
# sourceroot can either be the name of an ordinary directory
# containing one directory for each version, or cvs: and the name of a
@@ -104,8 +106,8 @@
# , 'LXR::Lang::Generic'],
['Perl', '(?i)\.pl$|\.pm$|\.perl$' #'
, 'LXR::Lang::Generic'],
-# ['php', '(?i)\.php$|\.php3$|\.phtml$' #'
-# , 'LXR::Lang::Generic'],
+ ['php', '(?i)\.php$|\.php3$|\.phtml$' #'
+ , 'LXR::Lang::Generic'],
['Python', '(?i)\.py$|\.python$' #'
, 'LXR::Lang::Generic'],
# ['rexx', '(?i)\.cmd$|\.rexx$|\.rx$' #'
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 16:12:23
|
Update of /cvsroot/lxr/lxr/lib/LXR
In directory usw-pr-cvs1:/tmp/cvs-serv1620/lib/LXR
Modified Files:
Common.pm Lang.pm
Log Message:
Apply patch 458027 from Pavel Hlavnicka
Adds stylesheet (CSS) support to ident, source and diff.
Output style is now controllable from via the lxr.css stylesheet (example
provided in templates). Ident output now generated via a template rather
than hard coded.
Minor additional fixes by me result in the output of ident & source both
validating as HTML 4.01 Transitional.
Index: Common.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Common.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Common.pm 2001/08/15 15:50:27 1.31
+++ Common.pm 2001/09/27 16:12:20 1.32
@@ -129,9 +129,8 @@
return ($#args < 0 ? '' : '?'.join(';',@args));
}
-
sub fileref {
- my ($desc, $path, $line, @args) = @_;
+ my ($desc, $css, $path, $line, @args) = @_;
# jwz: URL-quote any special characters.
$path =~ s|([^-a-zA-Z0-9.\@/_\r\n])|sprintf("%%%02X", ord($1))|ge;
@@ -140,19 +139,18 @@
$line = ('0' x (3-length($line))).$line;
}
- return ("<a href=\"$config->{virtroot}/source$path".
+ return ("<a class='$css' href=\"$config->{virtroot}/source$path".
&urlargs(@args).
($line > 0 ? "#$line" : "").
"\"\>$desc</a>");
}
-
sub diffref {
- my ($desc, $path, $darg) = @_;
+ my ($desc, $css, $path, $darg) = @_;
my $dval;
($darg, $dval) = $darg =~ /(.*?)=(.*)/;
- return ("<a href=\"$config->{virtroot}/diff$path".
+ return ("<a class='$css' href=\"$config->{virtroot}/diff$path".
&urlargs(($darg ? "diffvar=$darg" : ""),
($dval ? "diffval=$dval" : "")).
"\"\>$desc</a>");
@@ -160,8 +158,8 @@
sub idref {
- my ($desc, $id, @args) = @_;
- return ("<a href=\"$config->{virtroot}/ident".
+ my ($desc, $css, $id, @args) = @_;
+ return ("<a class='$css' href=\"$config->{virtroot}/ident".
&urlargs(($id ? "i=$id" : ""),
@args).
"\"\>$desc</a>");
@@ -169,7 +167,7 @@
sub incref {
- my ($name, $file, @paths) = @_;
+ my ($name, $css, $file, @paths) = @_;
my ($dir, $path);
push(@paths, $config->incprefix);
@@ -177,7 +175,7 @@
foreach $dir (@paths) {
$dir =~ s/\/+$//;
$path = $config->mappath($dir."/".$file);
- return &fileref($name, $path) if $files->isfile($path, $release);
+ return &fileref($name, $css, $path) if $files->isfile($path, $release);
}
@@ -215,7 +213,7 @@
# Look for identifiers and create links with identifier search query.
# TODO: Is there a performance problem with this?
$string =~ s#(^|\s)([a-zA-Z_~][a-zA-Z0-9_]*)\b#
- $1.(is_linkworthy($2) ? &idref($2,$2) : $2)#ge;
+ $1.(is_linkworthy($2) ? &idref($2, "", $2) : $2)#ge;
# HTMLify the special characters we marked earlier,
# but not the ones in the recently added xref html links.
@@ -274,22 +272,24 @@
sub freetextmarkup {
$_[0] =~ s{((f|ht)tp://[^\s<>\0]*[^\s<>\0.])}
- {<a href="$1">$1</a>}g;
+ {<a class='offshore' href="$1">$1</a>}g;
$_[0] =~ s{(\0<([^\s<>\0]+@[^\s<>\0]+)\0>)}
- {<a href="mailto:$2">$1</a>}g;
+ {<a class='offshore' href="mailto:$2">$1</a>}g;
}
sub markupfile {
+ #_PH_ supress block is here to avoid the <pre> tag output
+ #while called from diff
my ($fileh, $outfun) = @_;
my ($dir) = $pathname =~ m|^(.*/)|;
my $line = '001';
- my @ltag = &fileref(1, $pathname, 1) =~ /^(<a)(.*\#)001(\">)1(<\/a>)$/;
+ my @ltag = &fileref(1, "fline", $pathname, 1) =~ /^(<a)(.*\#)001(\">)1(<\/a>)$/;
$ltag[0] .= ' name=';
$ltag[3] .= " ";
- my @itag = &idref(1, 1) =~ /^(.*=)1(\">)1(<\/a>)$/;
+ my @itag = &idref(1, "fid", 1) =~ /^(.*=)1(\">)1(<\/a>)$/;
my $lang = new LXR::Lang($pathname, $release, @itag);
# A source code file
@@ -298,7 +298,7 @@
my ($btype, $frag) = &LXR::SimpleParse::nextfrag;
- &$outfun("<pre>\n");
+ #&$outfun("<pre class=file>\n");
&$outfun(join($line++, @ltag)) if defined($frag);
while (defined($frag)) {
@@ -312,7 +312,7 @@
}
elsif ($btype eq 'string') {
# String
- $frag = "<i>$frag</i>";
+ $frag = "<span class='string'>$frag</span>";
}
elsif ($btype eq 'include') {
# Include directive
@@ -333,7 +333,7 @@
&$outfun($ofrag);
}
- &$outfun("</pre>");
+ #&$outfun("</pre>");
}
elsif ($pathname =~ /$config->graphicfile/) {
&$outfun("<ul><table><tr><th valign=center><b>Image: </b></th>");
@@ -376,7 +376,7 @@
}
else {
- &$outfun("<pre>\n");
+ #&$outfun("<pre class=file>\n");
do {
&LXR::SimpleParse::untabify($_);
&markspecials($_);
@@ -385,7 +385,7 @@
# &$outfun("<a name=\"L$.\"><\/a>".$_);
&$outfun(join($line++, @ltag).$_);
} while (defined($_ = $fileh->getline));
- &$outfun("</pre>");
+ #&$outfun("</pre>");
}
}
}
@@ -574,7 +574,7 @@
if ($who eq 'source' || $who eq 'sourcedir' || $who eq 'diff') {
my $fpath = '';
- my $furl = fileref($config->sourcerootname.'/', '/');
+ my $furl = fileref($config->sourcerootname.'/', "banner", '/');
foreach ($pathname =~ m|([^/]+/?)|g) {
$fpath .= $_;
@@ -585,11 +585,11 @@
# so we have to use a real space. It's somewhat ugly to
# have these spaces be visible, but not as ugly as getting
# a horizontal scrollbar...
- $furl .= ' '.fileref($_, "/$fpath");
+ $furl .= ' '.fileref($_, "banner", "/$fpath");
}
$furl =~ s|/</a>|</a>/|gi;
- return $furl;
+ return "<span class=banner>$furl</span>";
}
else {
return '';
@@ -635,6 +635,10 @@
return $url;
}
+sub stylesheet {
+ return $config->stylesheet;
+}
+
sub dotdoturl {
my $url = $config->baseurl;
$url =~ s@/$@@;
@@ -652,40 +656,40 @@
my $mode;
if ($who eq 'source' || $who eq 'sourcedir') {
- push(@mlist, "<b><i>source navigation</i></b>");
+ push(@mlist, "<span class='modes-sel'>source navigation</span>");
}
else {
- push(@mlist, fileref("source navigation", $pathname));
+ push(@mlist, fileref("source navigation", "modes", $pathname));
}
if ($who eq 'diff') {
- push(@mlist, "<b><i>diff markup</i></b>");
+ push(@mlist, "<span class='modes-sel'>diff markup</span>");
}
elsif ($who eq 'source' && $pathname !~ m|/$|) {
- push(@mlist, diffref("diff markup", $pathname));
+ push(@mlist, diffref("diff markup", "modes", $pathname));
}
if ($who eq 'ident') {
- push(@mlist, "<b><i>identifier search</i></b>");
+ push(@mlist, "<span class='modes-sel'>identifier search</span>");
}
else {
- push(@mlist, idref("identifier search", ""));
+ push(@mlist, idref("identifier search", "modes", ""));
}
if ($who eq 'search') {
- push(@mlist, "<b><i>freetext search</i></b>");
+ push(@mlist, "<span class='modes-sel'>freetext search</span>");
}
else {
- push(@mlist, "<a ".
+ push(@mlist, "<a class=modes ".
"href=\"$config->{virtroot}/search".
urlargs."\">freetext search</a>");
}
if ($who eq 'find') {
- push(@mlist, "<b><i>file search</i></b>");
+ push(@mlist, "<span class='modes-sel'>file search</span>");
}
else {
- push(@mlist, "<a ".
+ push(@mlist, "<a class='modes'".
"href=\"$config->{virtroot}/find".
urlargs."\">file search</a>");
}
@@ -710,11 +714,11 @@
$oldval = $config->variable($var);
foreach $val ($config->varrange($var)) {
if ($val eq $oldval) {
- $vallink = "<b><i>$val</i></b>";
+ $vallink = "<span class=var-sel>$val</span>";
}
else {
if ($who eq 'source' || $who eq 'sourcedir') {
- $vallink = &fileref($val,
+ $vallink = &fileref($val, "varlink",
$config->mappath($pathname,
"$var=$val"),
0,
@@ -722,19 +726,19 @@
}
elsif ($who eq 'diff') {
- $vallink = &diffref($val, $pathname, "$var=$val");
+ $vallink = &diffref($val, "varlink", $pathname, "$var=$val");
}
elsif ($who eq 'ident') {
- $vallink = &idref($val, $identifier, "$var=$val");
+ $vallink = &idref($val, "varlink", $identifier, "$var=$val");
}
elsif ($who eq 'search') {
- $vallink = "<a href=\"$config->{virtroot}/search".
+ $vallink = "<a class=varlink href=\"$config->{virtroot}/search".
&urlargs("$var=$val",
"string=".$HTTP->{'param'}->{'string'}).
"\">$val</a>";
}
elsif ($who eq 'find') {
- $vallink = "<a href=\"$config->{virtroot}/find".
+ $vallink = "<a class=varlink href=\"$config->{virtroot}/find".
&urlargs("$var=$val",
"string=".$HTTP->{'param'}->{'string'}).
"\">$val</a>";
@@ -816,10 +820,12 @@
}
}
+ #CSS checked _PH_
print(expandtemplate($template,
('title' => sub { titleexpand(@_, $who) },
'banner' => sub { bannerexpand(@_, $who) },
'baseurl' => sub { baseurl(@_) },
+ 'stylesheet' => sub { stylesheet(@_) },
'dotdoturl' => sub { dotdoturl(@_) },
'thisurl' => sub { thisurl(@_) },
'pathname' => sub { pathname(@_) },
Index: Lang.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Lang.pm 2001/08/15 15:50:27 1.22
+++ Lang.pm 2001/09/27 16:12:20 1.23
@@ -60,16 +60,16 @@
my ($self, $frag, $dir) = @_;
$$frag =~ s#(\")(.*?)(\")#
- $1.&LXR::Common::incref($2, $2, $dir).$3 #e;
+ $1.&LXR::Common::incref($2, "include", $2, $dir).$3 #e;
$$frag =~ s#(\0<)(.*?)(\0>)#
- $1.&LXR::Common::incref($2, $2).$3 #e;
+ $1.&LXR::Common::incref($2, "include", $2).$3 #e;
}
sub processcomment {
my ($self, $frag) = @_;
- $$frag = "<b><i>$$frag</i></b>";
- $$frag =~ s#\n#</i></b>\n<b><i>#g;
+ $$frag = "<span class='comment'>$$frag</span>";
+ $$frag =~ s#\n#</span>\n<span class=comment>#g;
}
sub referencefile {
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 16:12:23
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory usw-pr-cvs1:/tmp/cvs-serv1620/lib/LXR/Lang
Modified Files:
Perl.pm
Log Message:
Apply patch 458027 from Pavel Hlavnicka
Adds stylesheet (CSS) support to ident, source and diff.
Output style is now controllable from via the lxr.css stylesheet (example
provided in templates). Ident output now generated via a template rather
than hard coded.
Minor additional fixes by me result in the output of ident & source both
validating as HTML 4.01 Transitional.
Index: Perl.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Perl.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Perl.pm 2001/08/15 15:50:27 1.3
+++ Perl.pm 2001/09/27 16:12:20 1.4
@@ -81,7 +81,7 @@
$file =~ s,::,/,g;
$file .= ".pm";
- return &LXR::Common::incref($mod, $file);
+ return &LXR::Common::incref($mod, "include", $file);
}
sub processinclude {
@@ -124,7 +124,7 @@
} split(/((?:\n[ \t]*)*\n)/, $$comm));
}
else {
- $$comm =~ s|^(.*)$|<b><i>$1</i></b>|gm;
+ $$comm =~ s|^(.*)$|<span class='comment'>$1</span>|gm;
}
}
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 16:12:23
|
Update of /cvsroot/lxr/lxr
In directory usw-pr-cvs1:/tmp/cvs-serv1620
Modified Files:
.cvsignore diff find ident search source
Log Message:
Apply patch 458027 from Pavel Hlavnicka
Adds stylesheet (CSS) support to ident, source and diff.
Output style is now controllable from via the lxr.css stylesheet (example
provided in templates). Ident output now generated via a template rather
than hard coded.
Minor additional fixes by me result in the output of ident & source both
validating as HTML 4.01 Transitional.
Index: .cvsignore
===================================================================
RCS file: /cvsroot/lxr/lxr/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- .cvsignore 2001/08/16 00:36:23 1.1
+++ .cvsignore 2001/09/27 16:12:20 1.2
@@ -3,3 +3,4 @@
html-head.html
html-search.html
html-tail.html
+html-ident.html
Index: diff
===================================================================
RCS file: /cvsroot/lxr/lxr/diff,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- diff 2000/10/31 12:52:10 1.6
+++ diff 2001/09/27 16:12:20 1.7
@@ -147,17 +147,19 @@
print("<h1>Diff markup</h1>\n",
"<h3>Differences between ",
- fileref("$origname <i>(".$config->vardescription($diffvar).
- " $origval)</i>", $origname, undef, "$diffvar=$origval"),
+ fileref("$origname (".$config->vardescription($diffvar).
+ " $origval)", "diff-fref",
+ $origname, undef, "$diffvar=$origval"),
" and ",
- fileref("$diffname <i>(".$config->vardescription($diffvar).
- " $diffval)</i>",$diffname, undef, "$diffvar=$diffval"),
+ fileref("$diffname (".$config->vardescription($diffvar).
+ " $diffval)", "diff-fref",
+ $diffname, undef, "$diffvar=$diffval"),
"</h3><hr>\n");
my $origh = new FileHandle($origtemp);
my $orig = '';
- markupfile($origh, sub { $orig .= shift });
+ markupfile($origh, sub { $orig .= shift }, 1);
my $len = $.+$ofs;
$origh->close;
@@ -180,12 +182,16 @@
my @orig = split(/\n/, $orig);
my @new = split(/\n/, $new);
- print("<pre>");
+ print("<pre class=file>\n");
foreach $i (0..$len) {
my $o = htmlsub($orig[$i], 50);
my $n = $new[$i];
- print("$o <font color=red>", ($chg{$i+1} || " "), "</font> $n\n");
+ my $diffmark = $chg{$i+1} ?
+ ("<span class=diff-mark>" . $chg{$i+1} . "</span>") : " ";
+ #print("$o <span class=diff-mark>",
+ # ($chg{$i+1} || " "), "</span> $n\n");
+ print "$o $diffmark $n\n";
}
print("</pre>");
Index: find
===================================================================
RCS file: /cvsroot/lxr/lxr/find,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- find 2000/10/31 12:52:10 1.4
+++ find 2001/09/27 16:12:20 1.5
@@ -62,7 +62,7 @@
while($file = <FILELLISTING>) {
$file =~ s/^$sourceroot//;
if($file =~ /$searchtext/) {
- print(&fileref("$file", "/$file"),"<br>\n");
+ print(&fileref("$file", "find-file", "/$file"),"<br>\n");
}
}
}
Index: ident
===================================================================
RCS file: /cvsroot/lxr/lxr/ident,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ident 2000/10/31 12:52:10 1.9
+++ ident 2001/09/27 16:12:20 1.10
@@ -32,7 +32,100 @@
use Local;
-sub ident {
+sub varinputs {
+ my $ret = '';
+ foreach ($config->allvariables) {
+ if ($config->variable($_) ne $config->vardefault($_)) {
+ $ret .= "<input type=hidden name='$_' value='" .
+ $config->variable($_) . "'>\n";
+ }
+ }
+ return $ret;
+}
+
+sub refexpand {
+ my $templ = shift;
+ my $ret = '';
+
+ my @refs = $index->getindex($identifier, $release);
+
+ my $def;
+ foreach my $def (@refs) {
+ my ($file, $line, $type, $rel) = @$def;
+
+ $rel &&= "(member of ".idref($rel, "search-member", $rel).")";
+ $ret .= expandtemplate($templ,
+ (file => sub { $file },
+ line => sub { $line },
+ type => sub { $type_names{$type} },
+ rel => sub { $rel },
+ fileref => sub {
+ fileref("$file, line $line",
+ "search-decl",
+ $file, $line);
+ }
+ ));
+
+# print("<span class=search-li1> $type_names{$type} in ".
+# fileref("$file, line $line", "search-decl",
+# $file, $line).
+# " $rel</span>\n");
+ }
+
+ return $ret;
+}
+
+sub usesexpand {
+ my $templ = shift;
+ my $ret = '';
+
+ my @uses = $index->getreference($identifier, $release);
+ foreach my $ref (sort { $$a[0] cmp $$b[0] } @uses) {
+ my ($file, $line) = @$ref;
+ $ret .= expandtemplate($templ,
+ (
+ file => sub { $file },
+ line => sub { $line },
+ fileref => sub {
+ fileref("$file, line $line", "search-ref",
+ $file, $line);
+ }
+ ));
+ }
+
+ return $ret;
+}
+
+sub printident {
+ my $dir = shift;
+ my $templ;
+
+ #$templ = "<ul>\n\$files{\n<li>\$iconlink \$namelink\n}</ul>\n";
+ if ($config->htmlident) {
+ unless (open(TEMPL, $config->htmlident)) {
+ warning("Template ".$config->htmlident." does not exist.");
+ } else {
+ local($/) = undef;
+ $templ = <TEMPL>;
+ close(TEMPL);
+ }
+ }
+
+ # print the description of the current directory
+ #dirdesc($dir);
+
+ # print the listing itself
+ print(expandtemplate($templ,
+ (test => sub { "testik" },
+ variables => \&varinputs,
+ identifier => sub { return $identifier },
+ refs => sub { refexpand(@_) },
+ uses => sub { usesexpand(@_) },
+ )
+ ));
+}
+
+sub ident_ {
print("Type the full name of an identifier to summarize ",
"(a function name, variable name, typedef, etc).\n",
"<p>Matches are case-sensitive.\n");
@@ -55,23 +148,25 @@
if ($identifier) {
my @refs = $index->getindex($identifier, $release);
- print("<h1>$identifier</h1>\n");
+ print("<span class=search-ident>$identifier</span>\n");
if (@refs) {
my $def;
- print("<ul>\n");
+ # print("<ul>\n"); CSS _PH_
+ print "<span class=search-ul>\n";
while ($def = shift(@refs)) {
my ($file, $line, $type, $rel) = @$def;
- $rel &&= "(member of ".idref($rel, $rel).")";
+ $rel &&= "(member of ".idref($rel, "search-member", $rel).")";
- print("<li> $type_names{$type} in ".
- fileref("$file, line $line",
+ print("<span class=search-li1> $type_names{$type} in ".
+ fileref("$file, line $line", "search-decl",
$file, $line).
- " $rel<br>\n");
+ " $rel</span>\n");
}
- print("</ul>\n");
+ print "</span>\n";
+ # print("</ul>\n");
my @uses = $index->getreference($identifier, $release);
@@ -82,10 +177,10 @@
while ($ref = shift(@uses)) {
my ($file, $line) = @$ref;
- print("<li> ".
- fileref("$file, line $line",
+ print("<span class=search-li2> ".
+ fileref("$file, line $line", "search-ref",
$file, $line).
- "<br>\n");
+ "</span>\n");
}
}
}
@@ -99,6 +194,6 @@
httpinit;
makeheader('ident');
-ident;
+printident;
makefooter('ident');
Index: search
===================================================================
RCS file: /cvsroot/lxr/lxr/search,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- search 2001/07/30 21:22:40 1.5
+++ search 2001/09/27 16:12:20 1.6
@@ -99,7 +99,8 @@
$text =~ s/</</g;
$text =~ s/>/>/g;
- print(&fileref("$file, line $line", "/$file", $line),
+ print(&fileref("$file, line $line", "find-file",
+ "/$file", $line),
" -- $text<br>\n");
}
}
Index: source
===================================================================
RCS file: /cvsroot/lxr/lxr/source,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- source 2001/08/04 17:55:37 1.26
+++ source 2001/09/27 16:12:20 1.27
@@ -41,7 +41,8 @@
$img = "internal-gopher-menu";
}
- return fileref("<img align=absbottom border=0 src=\"$img\">", $dir.$node);
+ return fileref("<img align=bottom border=0 src=\"$img\" alt=\"folder\">", "",
+ $dir.$node);
}
@@ -49,9 +50,9 @@
my ($templ, $node, $dir) = @_;
if ($node eq '../') {
- return fileref("Parent directory", $dir.$node);
+ return fileref("Parent directory", "dirfolder", $dir.$node);
} else {
- return fileref($node, $dir.$node);
+ return fileref($node, "dirfolder", $dir.$node);
}
}
@@ -71,12 +72,13 @@
# $img = "/icons/text.gif";
$img = "internal-gopher-unknown";
}
- return fileref("<img align=absbottom border=0 src=\"$img\">", $dir.$node);
+ return fileref("<img align=bottom border=0 src=\"$img\">", "",
+ $dir.$node);
}
sub filename {
my ($templ, $node, $dir) = @_;
- return fileref($node, $dir.$node);
+ return fileref($node, "dirfile", $dir.$node);
}
sub filesize {
@@ -129,10 +131,14 @@
sub bgcolor {
my ($templ, $line) = @_;
-
return ((($line - 1) / 3) % 2) ? "#FFFFFF" : "#EEEEEE";
}
+sub rowclass {
+ my ($templ, $line) = @_;
+ return ((($line - 1) / 3) % 2) ? "dirrow2" : "dirrow1";
+}
+
sub direxpand {
my ($templ, $dir) = @_;
my $direx = '';
@@ -160,7 +166,8 @@
%index = $files->getindex($dir, $release);
unshift(@nodes, '../') unless $dir eq '/';
-
+
+ #CSS checked _PH_
foreach $node (@nodes) {
if ($node =~ /\/$/) {
$direx .= expandtemplate
@@ -170,6 +177,7 @@
'filesize' => sub { '-' },
'modtime' => sub { modtime(@_, $node, $dir) },
'bgcolor' => sub { bgcolor(@_, $line++) },
+ 'css' => sub { rowclass(@_, $line++) },
'description' => sub { descexpand(@_, $node, $dir, \%index) }
));
}
@@ -182,6 +190,7 @@
'filesize' => sub { filesize(@_, $node, $dir) },
'modtime' => sub { modtime(@_, $node, $dir) },
'bgcolor' => sub { bgcolor(@_, $line++) },
+ 'css' => sub { rowclass(@_, $line++) },
'description' => sub { descexpand(@_, $node, $dir, \%index) }
));
}
@@ -251,12 +260,14 @@
}
my $l;
- markupfile($fileh,
- sub {
- $l = shift;
- $l =~ s/(\n)/$1.shift(@ann)/ge;
- print $l;
- });
+ my $outfun = sub {
+ $l = shift;
+ $l =~ s/(\n)/$1.shift(@ann)/ge;
+ print $l;
+ };
+ &$outfun("<pre class=file>\n");
+ markupfile($fileh, $outfun);
+ &$outfun("</pre>\n");
}
}
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 15:59:13
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory usw-pr-cvs1:/tmp/cvs-serv30504
Modified Files:
generic.conf
Log Message:
Fix typo
Index: generic.conf
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/generic.conf,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- generic.conf 2001/09/27 15:24:22 1.4
+++ generic.conf 2001/09/27 15:59:09 1.5
@@ -128,7 +128,7 @@
'string' => ('"', '"'),
'string' => ("'", "'"),
'atom' => ('\\\\.', '')],
- }
+ },
'php' => {
'reserved' => ['and','$argv','$argc','break','case','class',
'continue','default','do','die','echo','else',
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 15:24:25
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory usw-pr-cvs1:/tmp/cvs-serv19444
Modified Files:
generic.conf
Log Message:
Patched to add support for PHP (thanks to ta...@us...)
Index: generic.conf
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/generic.conf,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- generic.conf 2001/08/04 17:39:54 1.3
+++ generic.conf 2001/09/27 15:24:22 1.4
@@ -129,5 +129,31 @@
'string' => ("'", "'"),
'atom' => ('\\\\.', '')],
}
+ 'php' => {
+ 'reserved' => ['and','$argv','$argc','break','case','class',
+ 'continue','default','do','die','echo','else',
+ 'elseif','empty','endfor','endforeach','endif',
+ 'endswitch','endwhile','E_ALL','E_PARSE','E_ERROR',
+ 'E_WARNING','exit','extends','FALSE','for','foreach',
+ 'function','HTTP_COOKIE_VARS','HTTP_GET_VARS',
+ 'HTTP_POST_VARS','HTTP_POST_FILES','HTTP_ENV_VARS',
+ 'HTTP_SERVER_VARS','if','global','list','new','not',
+ 'NULL','or','parent','PHP_OS','PHP_SELF','PHP_VERSION',
+ 'print','return','static','switch','stdClass',
+ 'this','TRUE','var','xor','virtual','while','__FILE__',
+ '__LINE__','__sleep','__wakeup',
+ ],
+
+ 'spec' => ['comment', '/\*', '\*/',
+ 'comment', '//', "\$",
+ 'comment', '#', "\$",
+ 'string', '"', '"',
+ 'string', "'", "'",
+ 'include', 'require', "\$",
+ 'include', 'include', "\$",
+ 'include', 'require_once', "\$",
+ 'include', 'include_once', "\$"
+ ],
+ },
}
}
|
|
From: Malcolm B. <mb...@us...> - 2001-09-27 15:02:28
|
Update of /cvsroot/lxr/lxr In directory usw-pr-cvs1:/tmp/cvs-serv12776 Added Files: CREDITS.txt Log Message: Added a CREDITS file to acknowledge and thank all those who have helped create the lxr. --- NEW FILE: CREDITS.txt --- CREDITS ======= Original authors of LXR ----------------------- Arne Georg Gleditsch <lx...@li...> Per Kristian Gjermshus <lx...@li...> Current Maintainer ------------------ Malcolm Box <mb...@us...> Principal Developers -------------------- Peder O. Klingenberg <pe...@kl...> Contributors ------------ Pavel Hlavnicka <pa...@gi...> CSS support Jason Dorie Short <js...@de...> File re-org Joseph Corral <jos...@hp...> ------------------------------------------------------------------------- To get your name added to this list, see: http://sf.net/projects/lxr Last updated: $Date: 2001/09/27 15:02:26 $ |
|
From: Malcolm B. <mb...@us...> - 2001-09-26 14:47:59
|
Update of /cvsroot/lxr/lxr
In directory usw-pr-cvs1:/tmp/cvs-serv28284
Modified Files:
initdb-mysql initdb-postgres
Log Message:
Dramatically speed up (>50 times) the speed of incremental indexing by
creating an index to allow the fileid to be looked up fast from the filename.
Ideally this index would include the revision as well, but this is not
possible in MySQL because of limits (500 chars) on the index key.
Tested on MySQL, but not on postgres.
Fixes bug 465131
Index: initdb-mysql
===================================================================
RCS file: /cvsroot/lxr/lxr/initdb-mysql,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- initdb-mysql 2001/07/26 08:49:38 1.5
+++ initdb-mysql 2001/09/26 14:47:56 1.6
@@ -45,7 +45,7 @@
create table status
(fileid int not null references files,
- status int,
+ status tinyint not null,
primary key (fileid)
);
@@ -53,5 +53,6 @@
create index indexindex on indexes (symid) ;
create unique index symbolindex on symbols (symname) ;
create index useageindex on useage (symid) ;
+create index filelookup on files (filename);
grant all on lxr.* to lxr@localhost;
Index: initdb-postgres
===================================================================
RCS file: /cvsroot/lxr/lxr/initdb-postgres,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- initdb-postgres 2001/07/26 08:49:38 1.2
+++ initdb-postgres 2001/09/26 14:47:56 1.3
@@ -56,6 +56,7 @@
create index indexindex on indexes using btree (symid);
create index symbolindex on symbols using btree (symname);
create index usageindex on usage using btree (symid);
+create index filelookup on files using btree (filename);
grant select on files to public;
grant select on symbols to public;
|
|
From: Malcolm B. <mb...@us...> - 2001-09-26 14:43:03
|
Update of /cvsroot/lxr/lxr
In directory usw-pr-cvs1:/tmp/cvs-serv27412
Modified Files:
genxref
Log Message:
Replace use of direct access of range variable v with the correct
varrange accessor
Index: genxref
===================================================================
RCS file: /cvsroot/lxr/lxr/genxref,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- genxref 2001/08/15 15:50:26 1.23
+++ genxref 2001/09/26 14:42:57 1.24
@@ -27,7 +27,6 @@
use LXR::Common;
-
my %option;
GetOptions(\%option, "help!", "url=s", "version=s", "allurls!", "allversions!");
@@ -71,7 +70,7 @@
my @versions;
if ($option{'allversions'} || !$option{'version'}) {
- @versions = @{$config->{variables}{v}{range}};
+ @versions = $config->varrange('v');
} else {
@versions = $option{'version'};
}
@@ -80,6 +79,7 @@
genindex('/', $version);
genrefs('/', $version);
}
+
sub genindex {
my ($pathname, $release) = @_;
|
|
From: Malcolm B. <mb...@us...> - 2001-08-16 00:36:27
|
Update of /cvsroot/lxr/lxr In directory usw-pr-cvs1:/tmp/cvs-serv3286 Added Files: .cvsignore Log Message: Ignore the template & conf files of the user --- NEW FILE: .cvsignore --- html-dir.html lxr.conf html-head.html html-search.html html-tail.html |
|
From: Malcolm B. <mb...@us...> - 2001-08-15 16:19:51
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang In directory usw-pr-cvs1:/tmp/cvs-serv13733 Removed Files: C.pm Java.pm Log Message: Remove C.pm and Java.pm. Java.pm was badly broken anyway, and C.pm is subsumed by Generic.pm. Perl.pm & Python.pm left for now... --- C.pm DELETED --- --- Java.pm DELETED --- |
|
From: Malcolm B. <mb...@us...> - 2001-08-15 15:50:30
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang In directory usw-pr-cvs1:/tmp/cvs-serv7503/lib/LXR/Lang Modified Files: C.pm Generic.pm Java.pm Perl.pm Python.pm Log Message: Add GNU Copyright notices to all files, and added a copy of the GPL in the LICENSE file Index: C.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/C.pm,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** C.pm 2001/08/14 14:18:44 1.9 --- C.pm 2001/08/15 15:50:27 1.10 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Lang::C; Index: Generic.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Generic.pm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Generic.pm 2001/08/14 14:44:11 1.4 --- Generic.pm 2001/08/15 15:50:27 1.5 *************** *** 7,10 **** --- 7,23 ---- # someone writes better support. # + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. package LXR::Lang::Generic; Index: Java.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Java.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Java.pm 1999/09/17 09:37:45 1.1 --- Java.pm 2001/08/15 15:50:27 1.2 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Lang::Java; Index: Perl.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Perl.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Perl.pm 1999/09/18 10:20:24 1.2 --- Perl.pm 2001/08/15 15:50:27 1.3 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Lang::Perl; Index: Python.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Python.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Python.pm 1999/09/17 09:37:45 1.1 --- Python.pm 2001/08/15 15:50:27 1.2 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Lang::Python; |
|
From: Malcolm B. <mb...@us...> - 2001-08-15 15:50:30
|
Update of /cvsroot/lxr/lxr/lib/LXR In directory usw-pr-cvs1:/tmp/cvs-serv7503/lib/LXR Modified Files: Common.pm Config.pm Files.pm Index.pm Lang.pm SimpleParse.pm Tagger.pm Log Message: Add GNU Copyright notices to all files, and added a copy of the GPL in the LICENSE file Index: Common.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Common.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Common.pm 2001/08/04 17:41:35 1.30 --- Common.pm 2001/08/15 15:50:27 1.31 *************** *** 5,8 **** --- 5,22 ---- # FIXME: java doesn't support super() or super.x + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Common; Index: Config.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Config.pm,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Config.pm 2001/07/26 08:49:38 1.24 --- Config.pm 2001/08/15 15:50:27 1.25 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Config; Index: Files.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Files.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Files.pm 1999/05/27 14:44:22 1.5 --- Files.pm 2001/08/15 15:50:27 1.6 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Files; Index: Index.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index.pm,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Index.pm 2001/08/04 17:42:16 1.8 --- Index.pm 2001/08/15 15:50:27 1.9 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Index; Index: Lang.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang.pm,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Lang.pm 2001/08/04 17:45:32 1.21 --- Lang.pm 2001/08/15 15:50:27 1.22 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Lang; Index: SimpleParse.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/SimpleParse.pm,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** SimpleParse.pm 2000/08/17 18:36:51 1.12 --- SimpleParse.pm 2001/08/15 15:50:27 1.13 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::SimpleParse; Index: Tagger.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Tagger.pm,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Tagger.pm 2001/08/15 15:27:24 1.17 --- Tagger.pm 2001/08/15 15:50:27 1.18 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Tagger; |
|
From: Malcolm B. <mb...@us...> - 2001-08-15 15:50:30
|
Update of /cvsroot/lxr/lxr/lib/LXR/Index In directory usw-pr-cvs1:/tmp/cvs-serv7503/lib/LXR/Index Modified Files: DB.pm DBI.pm Mysql.pm Postgres.pm Log Message: Add GNU Copyright notices to all files, and added a copy of the GPL in the LICENSE file Index: DB.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/DB.pm,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** DB.pm 2000/10/31 12:52:12 1.10 --- DB.pm 2001/08/15 15:50:27 1.11 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Index::DB; Index: DBI.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/DBI.pm,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** DBI.pm 2000/07/26 19:12:35 1.17 --- DBI.pm 2001/08/15 15:50:27 1.18 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Index::DBI; Index: Mysql.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Mysql.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Mysql.pm 2001/08/14 14:18:44 1.7 --- Mysql.pm 2001/08/15 15:50:27 1.8 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Index::Mysql; Index: Postgres.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Postgres.pm,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Postgres.pm 2001/08/14 14:18:44 1.6 --- Postgres.pm 2001/08/15 15:50:27 1.7 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Index::Postgres; |
|
From: Malcolm B. <mb...@us...> - 2001-08-15 15:50:30
|
Update of /cvsroot/lxr/lxr/lib/LXR/Files In directory usw-pr-cvs1:/tmp/cvs-serv7503/lib/LXR/Files Modified Files: CVS.pm Plain.pm Log Message: Add GNU Copyright notices to all files, and added a copy of the GPL in the LICENSE file Index: CVS.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Files/CVS.pm,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** CVS.pm 2001/08/02 11:45:31 1.15 --- CVS.pm 2001/08/15 15:50:27 1.16 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Files::CVS; Index: Plain.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Files/Plain.pm,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Plain.pm 2000/10/31 12:52:11 1.15 --- Plain.pm 2001/08/15 15:50:27 1.16 *************** *** 3,6 **** --- 3,20 ---- # $Id$ + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + package LXR::Files::Plain; |
|
From: Malcolm B. <mb...@us...> - 2001-08-15 15:50:30
|
Update of /cvsroot/lxr/lxr
In directory usw-pr-cvs1:/tmp/cvs-serv7503
Modified Files:
Local.pm genxref
Added Files:
LICENSE
Log Message:
Add GNU Copyright notices to all files, and added a copy of the GPL
in the LICENSE file
--- NEW FILE: LICENSE ---
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
Index: Local.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/Local.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Local.pm 2001/08/04 17:54:43 1.9
--- Local.pm 2001/08/15 15:50:26 1.10
***************
*** 6,10 ****
--- 6,24 ----
#
# Dawn Endico <da...@ca...>
+
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
#
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
######################################################################
# This package is for placing subroutines that are likely to need
Index: genxref
===================================================================
RCS file: /cvsroot/lxr/lxr/genxref,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** genxref 2001/08/14 13:48:31 1.22
--- genxref 2001/08/15 15:50:26 1.23
***************
*** 2,5 ****
--- 2,19 ----
# -*- tab-width: 4 -*-"
+ # This program is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
use strict;
use lib 'lib';
|
|
From: Malcolm B. <mb...@us...> - 2001-08-15 15:27:27
|
Update of /cvsroot/lxr/lxr/lib/LXR
In directory usw-pr-cvs1:/tmp/cvs-serv2345
Modified Files:
Tagger.pm
Log Message:
Fix memory leak in genxref by undef'ing variables
Index: Tagger.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Tagger.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Tagger.pm 2001/07/26 08:49:38 1.16
--- Tagger.pm 2001/08/15 15:27:24 1.17
***************
*** 25,44 ****
if ($index) {
! my $fileid = $index->fileid($pathname, $revision);
!
! $index->release($fileid, $release);
!
! if ($index->toindex($fileid)) {
! $index->empty_cache();
! print(STDERR "--- $pathname $fileid\n");
!
! my $path = $files->tmpfile($pathname, $release);
!
! $lang->indexfile($pathname, $path, $fileid, $index, $config);
! unlink($path);
! } else {
! print(STDERR "$pathname was already indexed\n");
! }
} else { print(STDERR " **** FAILED ****\n"); }
}
--- 25,46 ----
if ($index) {
! my $fileid = $index->fileid($pathname, $revision);
!
! $index->release($fileid, $release);
!
! if ($index->toindex($fileid)) {
! $index->empty_cache();
! print(STDERR "--- $pathname $fileid\n");
!
! my $path = $files->tmpfile($pathname, $release);
!
! $lang->indexfile($pathname, $path, $fileid, $index, $config);
! unlink($path);
! } else {
! print(STDERR "$pathname was already indexed\n");
! }
} else { print(STDERR " **** FAILED ****\n"); }
+ $lang = undef;
+ $revision = undef;
}
***************
*** 57,76 ****
print(STDERR "--- $pathname $release $revision\n");
! if ($index) {
! my $fileid = $index->fileid($pathname, $revision);
!
! if ($index->toreference($fileid)) {
$index->empty_cache();
print(STDERR "--- $pathname $fileid\n");
!
my $path = $files->tmpfile($pathname, $release);
!
$lang->referencefile($pathname, $path, $fileid, $index, $config);
unlink($path);
! } else {
print STDERR "$pathname was already referenced\n";
! }
! } else { print( STDERR " **** FAILED ****\n"); }
! }
--- 59,81 ----
print(STDERR "--- $pathname $release $revision\n");
! if ($index) {
! my $fileid = $index->fileid($pathname, $revision);
!
! if ($index->toreference($fileid)) {
$index->empty_cache();
print(STDERR "--- $pathname $fileid\n");
!
my $path = $files->tmpfile($pathname, $release);
!
$lang->referencefile($pathname, $path, $fileid, $index, $config);
unlink($path);
! } else {
print STDERR "$pathname was already referenced\n";
! }
! } else { print( STDERR " **** FAILED ****\n"); }
!
! $lang = undef;
! $revision = undef;
! }
|
|
From: Malcolm B. <mb...@us...> - 2001-08-14 14:44:15
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory usw-pr-cvs1:/tmp/cvs-serv7253
Modified Files:
Generic.pm
Log Message:
Close filehandle for config file when we're finished with it
Index: Generic.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/Generic.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Generic.pm 2001/08/04 17:39:54 1.3
--- Generic.pm 2001/08/14 14:44:11 1.4
***************
*** 37,41 ****
<X>);
die ($@) if $@;
!
%$self= (%$self, %$cfg);
--- 37,41 ----
<X>);
die ($@) if $@;
! close X;
%$self= (%$self, %$cfg);
|
|
From: Malcolm B. <mb...@us...> - 2001-08-14 14:18:48
|
Update of /cvsroot/lxr/lxr/lib/LXR/Index
In directory usw-pr-cvs1:/tmp/cvs-serv30447/lib/LXR/Index
Modified Files:
Mysql.pm Postgres.pm
Log Message:
Remove unused Index::removesymbol method
Index: Mysql.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Mysql.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Mysql.pm 2001/08/04 19:09:43 1.6
--- Mysql.pm 2001/08/14 14:18:44 1.7
***************
*** 218,228 ****
}
- sub removesymbol {
- my ($self, $symname) = @_;
-
- delete $symcache{$symname};
- $self->{symbols_remove}->execute($symname);
- }
-
# If this file has not been indexed earlier, mark it as being indexed
# now and return true. Return false if already indexed.
--- 218,221 ----
Index: Postgres.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Index/Postgres.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Postgres.pm 2001/07/26 08:49:38 1.5
--- Postgres.pm 2001/08/14 14:18:44 1.6
***************
*** 232,242 ****
}
- sub removesymbol {
- my ($self, $symname) = @_;
-
- delete $symcache{$symname};
- $symbols_remove->execute($symname);
- }
-
# If this file has not been indexed earlier, mark it as being indexed
# now and return true. Return false if already indexed.
--- 232,235 ----
|
|
From: Malcolm B. <mb...@us...> - 2001-08-14 14:18:48
|
Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory usw-pr-cvs1:/tmp/cvs-serv30447/lib/LXR/Lang
Modified Files:
C.pm
Log Message:
Remove unused Index::removesymbol method
Index: C.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/C.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** C.pm 2001/08/04 18:27:28 1.8
--- C.pm 2001/08/14 14:18:44 1.9
***************
*** 50,62 ****
}
- sub removereserved {
- my ($self) = @_;
- my ($keyword);
-
- foreach $keyword (@reserved) {
- $index->removesymbol($keyword);
- }
- }
-
sub indexfile {
my ($self, $name, $path, $fileid, $index, $config) = @_;
--- 50,53 ----
***************
*** 100,104 ****
$path);
}
- # $self->removereserved;
}
--- 91,94 ----
|