Re: Setting up a package to use gtk-doc



On Fri, 2001-09-28 at 23:09, rsteinke w-link net wrote:

> 2. If you don't have any functions in sections.txt, you get a
> divide-by-zero error at line 1763 of gtkdoc-mkdb when it tries to
> compute the percentage of functions documented. This isn't a serious
> problem, but makes the initial setup a little disconcerting.

I've changed it to:

     if ($total == 0) {
	  $percent = 100;
     } else {
          $percent = ($n_documented / $total) * 100.0;
     }

Hopefully that fixes it.

Damon






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]