[Nut-upsdev] coding style

Carlos Rodrigues carlos.efr at mail.telepac.pt
Fri Feb 9 01:07:03 CET 2007


On 2/8/07, Peter Selinger <selinger at mathstat.dal.ca> wrote:
> Dear developers,
>
> I would like to make the following additions to the section on coding
> style to developers.txt. Any objections / comments ?
>
> -- Peter
>
> Index: docs/developers.txt
> ===================================================================
> --- docs/developers.txt (revision 799)
> +++ docs/developers.txt (working copy)
> @@ -154,6 +154,10 @@
>  off the right margin of the screen, expect them to meet the byte
>  chainsaw sooner or later.
>
> +All types defined with typedef should end in "_t", because this is
> +easier to read, and it enables tools (such as indent and emacs) to
> +format the source code correctly.

I don't oppose to this, but let me point out that the glibc manual
discourages the use of "_t" names for types in user code:

http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names

-- 
Carlos Rodrigues



More information about the Nut-upsdev mailing list