[syslinux] Time to set a coding style for Syslinux?

Miller, Shao Shao.Miller at yrdsb.edu.on.ca
Sun May 24 15:55:53 PDT 2009


I'd highly agree with four spaces versus eight!  Will have to review the
coding style link you sent for the rest.  Ironing out a consistent style
seems nice...  For some of the formatting, I'm sure there're automated
tools, but if you'd like to go insofar as renaming variables and
functions to conform to a standard, I would gather that you'd like a
hand tackling the workload for a cut-over.  Happy to help, there.  -
Shao

-----Original Message-----
From: H. Peter Anvin [mailto:hpa at zytor.com] 
Sent: Sunday, May 24, 2009 18:24
To: SYSLINUX Mailing list
Cc: liu Aleaxander; claudiu.bogdan.mihail at gmail.com; Erwan Velu;
Pierre-Alexander Meyer; Gene Cumm; Sebastian Herbszt; Miller, Shao
Subject: Time to set a coding style for Syslinux?

Given the number of people that are starting to be involved in Syslinux
development, I wanted to start a discussion about a common coding style,
for C code in particular.

Currently, a lot of the code in Syslinux is written in different styles,
partly because my own style has changed over the years.

There are pretty much two alternatives that I think are realistic:

a) Linux kernel coding style:

   http://tinyurl.com/kernelstyle

b) Same as the Linux kernel style, but with 4 spaces instead of 8.
   Although I like Linus' style in most parts, I do think 8 spaces is
   somewhat excessive.

   This is the style we use for the Netwide Assembler, NASM.

I would like to do one "flag day" cutover of all the code, so I would
appreciate your input.

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.




More information about the Syslinux mailing list