Re: unable to have enum in doc...



On Fri, Jun 07, 2002 at 11:11:28AM +0200, Jean-Francois LECOMTE wrote:
[...]
> i use gtk-doc 0.9
> my work use gtk2.0
> enum are defined like this :
> typedef enum
>   {
>     LIMDI_DOC_STATE_MAXIMISED,
>     LIMDI_DOC_STATE_VISIBLE,
>     LIMDI_DOC_STATE_ICONIFIED
>   } LimdiDocState ;
> 
> It seems to be bound with regexp line 465 of gtkdoc-scan
> replacing
>    if ($decl =~ m/\}\s*(\w+)?;\s*$/) {
> with
>    if ($decl =~ m/\}\s*(\w+)\s*;\s*$/) {
> solve the pb for me !

Not too surprising. The gtk-doc expressions are pretty tightly bound to
the coding styles in the big GNOME projects and I haven't seen any of
those projects leave a space between the last thing on the line and the
semicolon.

There are other places where (more common) constructs will bite you,
too. The only solution is to hack the reg-exps, as you have done, or to
stop being such an individual. :-)

Malcolm

-- 



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