On Fri, Mar 20, 2009 at 03:44:43PM +0800, PCMan wrote:
> Currently, coding style of all lxde programs were different.
> However it's good for a project to have consistent coding style in all
> the programs.
...
> 1. use fixed 4 space indentation instead of tabs.
> 2. do not attach { to end of line and put it in a seperate line.
> 3. do not indent { and }.
> 4. different words in a filename should be seperated by hyphen. (ex:
> main-window.c, not mainwindow.c)
> 5. add spaces between operaters and their operands.
> 6. no space between function name and ().
> 7. add spaces between parameter list of a function and the () outside it.

Thanks for the clarification! 

I just committed the corresponding GNU Emacs lxde-c-style.el to
devtools.  GNU Emacs can mimic this style almost completely
electrically (besides #7) -> So I wrote an extended c-electric-paren
implementation to handle #7 and thus prevents my brain from context
switching coding styles.  GNU Emacs users can download it here:
http://www.hoetzel.info/Hacking/emacs/electric-stuff
 
I have also noticed that lxpanel ChangeLog does not follow GNU style:

http://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html

For the sake of standard compliance and Devtools integration
(Changelog/SVN Logs can be added automatically) I prefer to convert it
to GNU style. Any objections?

Jürgen  

------------------------------------------------------------------------------
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to