cvs: php-gcov-web /www compile_results.php params.php site.api.php
| From: | Nuno Lopes | Date: | Fri, 22 Dec 2006 23:06:29 +0000 |
| Subject: | cvs: php-gcov-web /www compile_results.php params.php site.api.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33586@lists.php.net to get a copy of this message | ||
nlopess Fri Dec 22 23:06:29 2006 UTC
Modified files:
/php-gcov-web/www compile_results.php params.php site.api.php
Log:
dont link to lxr if using the stub function '(top level)'
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/compile_results.php?r1=1.1&r2=1.2&diff_format=u
Index: php-gcov-web/www/compile_results.php
diff -u php-gcov-web/www/compile_results.php:1.1 php-gcov-web/www/compile_results.php:1.2
--- php-gcov-web/www/compile_results.php:1.1 Thu Dec 21 23:19:03 2006
+++ php-gcov-web/www/compile_results.php Fri Dec 22 23:06:29 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: compile_results.php,v 1.1 2006/12/21 23:19:03 nlopess Exp $ */
+/* $Id: compile_results.php,v 1.2 2006/12/22 23:06:29 nlopess Exp $ */
if (!defined('IN_GCOV_CODE')) exit;
@@ -63,8 +63,8 @@
$content .= <<< HTML
<tr>
- <td><a href="$cvslink">$line</a> <a
href="$lxrlink">[lxr]</a></td>
- <td><a href="$funclink">$function</a></td>
+ <td>$cvslink $lxrlink</td>
+ <td>$funclink</a></td>
<td>$type: $msg</td>
</tr>
HTML;
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/params.php?r1=1.1&r2=1.2&diff_format=u
Index: php-gcov-web/www/params.php
diff -u php-gcov-web/www/params.php:1.1 php-gcov-web/www/params.php:1.2
--- php-gcov-web/www/params.php:1.1 Thu Dec 21 23:19:03 2006
+++ php-gcov-web/www/params.php Fri Dec 22 23:06:29 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: params.php,v 1.1 2006/12/21 23:19:03 nlopess Exp $ */
+/* $Id: params.php,v 1.2 2006/12/22 23:06:29 nlopess Exp $ */
if (!defined('IN_GCOV_CODE')) exit;
@@ -60,7 +60,7 @@
$content .= <<< HTML
<tr>
- <td><a href="$cvslink">$line</a> <a
href="$lxrlink">[lxr]</a></td>
+ <td>$cvslink $lxrlink</td>
<td>$function</td>
<td>$msg</td>
</tr>
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/site.api.php?r1=1.4&r2=1.5&diff_format=u
Index: php-gcov-web/www/site.api.php
diff -u php-gcov-web/www/site.api.php:1.4 php-gcov-web/www/site.api.php:1.5
--- php-gcov-web/www/site.api.php:1.4 Thu Dec 21 23:19:03 2006
+++ php-gcov-web/www/site.api.php Fri Dec 22 23:06:29 2006
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: site.api.php,v 1.4 2006/12/21 23:19:03 nlopess Exp $ */
+/* $Id: site.api.php,v 1.5 2006/12/22 23:06:29 nlopess Exp $ */
// File: Core Site API File
// Desc: contains core display functions, it is essential for all pages to include this file.
@@ -289,21 +289,27 @@
{
if (strpos($path, 'Zend/') !== false) {
$path = str_replace('Zend/','ZendEngine2/', $path);
- return "http://lxr.php.net/source/{$path}#{$line}";
+ $link = "http://lxr.php.net/source/{$path}#{$line}";
} else {
- return "http://lxr.php.net/source/php-src/{$path}#{$line}";
+ $link = "http://lxr.php.net/source/php-src/{$path}#{$line}";
}
+
+ return "<a href=\"$link\">[lxr]</a>";
}
function make_cvs_link($path, $line)
{
$cvsbranch = str_replace('PHP_HEAD', 'HEAD', $GLOBALS['version']);
- return "http://cvs.php.net/viewvc.cgi/php-src/$path?view=annotate&pathrev=$cvsbranch#l$line";
+ return "<a href=\"http://cvs.php.net/viewvc.cgi/php-src/$path?view=annotate&pathrev=$cvsbranch#l$line\">$line</a>";
}
function make_lxr_func_link($func)
{
- return "http://lxr.php.net/ident?i=$func";
+ if ($func === '(top level)') {
+ return $func;
+ } else {
+ return "<a href=\"http://lxr.php.net/ident?i=$func\">$func</a>";
+ }
}