X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=inline;f=funcsummary.php;h=0a4e858c1bc7031d03a1940cc46b0bc0c99334a3;hb=0ac87717530843df93ca94ffa8c3fd8935f346cb;hp=b81982748e12c989a0187149366bfdd1fc4b5ab6;hpb=1fd7e6ceece2684e11cf9533e22dfb12a1b80f0e;p=m6w6%2Fext-http
diff --git a/funcsummary.php b/funcsummary.php
index b819827..0a4e858 100644
--- a/funcsummary.php
+++ b/funcsummary.php
@@ -19,6 +19,12 @@ function ff($t)
$t = preg_replace('/(\
\n)+\<\/pre\>(\
\n)+/', '
', $t); return sprintf('
%s
', ltrim($t, ' *')); } +function e($s) +{ + $a = func_get_args(); + array_unshift($a, STDERR); + call_user_func_array('fprintf', $a); +} $preface = <<<_PREFACE @@ -29,13 +35,20 @@ $preface = <<<_PREFACE font-size: 80%%; font-family: sans-serif; } - h2 { + h2, h3 { color: #339; clear: both; font-size: 1.2em; background: #ffc; padding: .2em; } + h2.o { + color: #66b; + clear: both; + font-size: 1.3em; + background: #f0f0f0; + padding: .2em; + } p { margin-left: 1em; } @@ -77,17 +90,28 @@ if ($_SERVER['argc'] < 2) { printf($preface, basename(getcwd())); -foreach (array_slice($_SERVER['argv'], 1) as $f) { - if (mf($f, $m)) { - printf("