[LinuxBIOS] Coding style
Ronald G Minnich
rminnich at lanl.gov
Fri May 26 01:50:12 CEST 2006
Carl-Daniel Hailfinger wrote:
> What coding style is preferred if I want to merge the lzma
> code into LinuxBIOS?
> * plain code, as found in upstream sources (a mess)
> * all unneeded #ifdef sections removed
> * additionally proper indentation (tab=8)
> * additionally replaced obfuscated #defines
> * additionally Lindented to Linux kernel style
linux-c-mode, so yeah, lindent.
> Also, what types should I use for variables?
> * u8, u16, u32
> * UInt8, UInt16, UInt32
> * u_int8_t ...
> * u_int8 ...
> * uint8 ...
> * uint8_t ...
> * unsigned char, unsigned short, unsigned int
that's a mess in linuxbios right now. Stefan, you have a preference?
More information about the coreboot