bug-indent
[Top][All Lists]
Advanced

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

Patch for documentation bug in GNU indent 2.2.9


From: David Huston
Subject: Patch for documentation bug in GNU indent 2.2.9
Date: Sat, 18 Aug 2007 23:28:44 -0500

I have noticed that in indent version 2.2.9 (at least as distributed by
Gentoo), the option '-brf' can be specified and is appropriately used, but
is not documented in the either the info documentation or the manpage.  I've
appended a diff to indent.texinfo that documents this option.  I'm pretty
sure I've caught all the places it should be referenced, but as this is the
first time I've ever submitted a patch of any kind, I may have gotten
something a bit wrong.  Comments are of course welcome.

David Huston



738a739,769
> @kindex -brf
> @kindex --braces-on-func-def-line
> @kindex -blf
> @kindex --braces-after-func-def-line
> @noindent
> The @option{-brf} option is analogous to the @option{-br} option, but
> for function declarations. For example, @option{-brf} formats braces
> as such:
>
> @example
> @group
> int main (int argc, char ** argv) @{
>   foo();
>   return EXIT_SUCCESS;
> @}
> @end group
> @end example
>
> @noindent
> The @option{-blf} option formats function declarations as:
>
> @example
> @group
> int main (int argc, char ** argv)
> @{
>   foo();
>   return EXIT_SUCCESS;
> @}
> @end group
> @end example
>
1514a1546,1550
> @item -blf
> @itemx --braces-after-func-def-line
> Put braces on line after function address@hidden
> @xref{Statements}.
>
1529a1566,1570
> @item -brf
> @itemx --braces-on-func-def-line
> Put braces on line with function address@hidden
> @xref{Statements}.
>
1924a1966
> \line{ --braces-after-func-def-line \leaderfill       -blf\ \ }
1925a1968
> \line{ --braces-on-func-def-line \leaderfill          -brf\ \ }
2008a2052
> --braces-after-func-def-line                    -blf
2009a2054
> --braces-on-func-def-line                       -brf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]