[Fwd: *Another* gtk-doc patch...]



Here's a patch I got for gtk-doc.
It looks reasonable (although of course it should be for gtkdoc-mkdb.in)

Shall I commit?

I'll do a new release after this.

Damon


> --- gtkdoc-mkdb.orig    Sat Mar 10 17:18:26 2001
> +++ /usr/bin/gtkdoc-mkdb        Sun Mar 11 10:28:55 2001
> @@ -2268,11 +2268,12 @@
>         } elsif ($line =~ m/^#include/) {
>             last;
> 
> +       } elsif ($terminator eq '}') {
> +           last;
> +
>         } else {
>             warn "Cannot parse enumeration member $line";
>         }
> -
> -       last if $terminator eq '}';
>      }
--- Begin Message ---
Hi,

Attached is a fix for a problem with enumeration parsing...

BTW :
<gtk-doc ChangeLog>

2001-03-26  Damon Chaplin  <damon ximian com>

        * gtkdoc-mkdb.in (ReadSourceDocumentation): scan .h files as well,
        so macros can be documented there if desired.

</gtk-doc ChangeLog>

It would have being polite to add the credits where they are due.


--- gtkdoc-mkdb.orig    Sat Mar 10 17:18:26 2001
+++ /usr/bin/gtkdoc-mkdb        Sun Mar 11 10:28:55 2001
@@ -2268,11 +2268,12 @@
        } elsif ($line =~ m/^#include/) {
            last;
 
+       } elsif ($terminator eq '}') {
+           last;
+
        } else {
            warn "Cannot parse enumeration member $line";
        }
-
-       last if $terminator eq '}';
     }


-- 
Yoann Vandoorselaere | "We've heard that a million monkeys at a million
MandrakeSoft         | keyboards could produce  the Complete Works of
                     | Shakespeare; now, thanks to the Internet, we know  this
                     | is not true."               Robert Wilensky, University
                     | of California

--- End Message ---


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