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

Pierre-Alexandre Meyer pierre at mouraf.org
Sun May 24 21:33:02 PDT 2009


On Sunday 24 May 2009 à 03:24:00PM, H. Peter Anvin wrote:
> 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.

Great!

> 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.

4 sounds good.

FWIW We have roughly been following the kernel style with Erwan for HDT
(we still are not consistent for tabs vs spaces yet though).

-- 
Pierre-Alexandre Meyer




More information about the Syslinux mailing list