[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gtktalog-devel]coding standards
From: |
Yves Mettier |
Subject: |
[Gtktalog-devel]coding standards |
Date: |
Mon, 19 May 2003 22:23:32 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.0 |
Hi!
I changed the name of a structure in the current CVS:
struct_mime_to_skip is now mime_to_skip_t.
I would like that some standards be respected. I do not force you to use them
when you
code in gtktalog (I did not respect them myself in the past), but I follow them
in other
projets now: they are good.
- Structures should be named with a suffix _t
- Variables should have either explicit names, or really short names with 1 or
2 letters.
For exemple: I noticed a variable called "glist". This is a bad idea for some
reasons:
what if the type of that variable changes ? And it is rather long for a
temporary
variable.
- code should be indented with GNU indent with no option. This is just for the
homogeneity of the code, and to have shorter diffs in the CVS.
Only the new code is concerned. We will do some code cleanup only when
gtktalog-1.2 is
working.
Enjoy :)
Yves
--
- Homepage - http://ymettier.free.fr - http://www.logicacmg.com -
- GPG key - http://ymettier.free.fr/gpg.txt -
- Maitretarot - http://www.nongnu.org/maitretarot/ -
- GTKtalog - http://www.nongnu.org/gtktalog/ -
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gtktalog-devel]coding standards,
Yves Mettier <=