WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] 1 of 2: default ssid to 0

> i think it is very bad idea to have 2 coding styles for code in kernel
> and out of kernel. because people work on all those code must always
> remember to adjust the editor configuration, depend on the code in or
> out of kernel, which is a nightmare :-(

Yes, it's an extra thing to think about.  It also means that code imported 
from Linux needs adjusting to fit with the Xen coding convention.

OTOH, we don't just work with the Linux kernel any more, so there will be 
multiple coding conventions anyhow.  I just set up emacs so I can type "M-x 
xen-c-mode" or "M-x linux-c-mode".

> how about this simple guide?
> - C code complies Linux kernel coding style

I don't think this is likely to happen any time soon - it'd require patches to 
all of Xen and the tools :-( (and probably to some of the Linux code but 
that's arguably desirable)

> - Python code can use (4) spaces for indentation (as in currently)

Definitely a good plan!  Messing with Python's indentation rules is playing 
with fire...

Cheers,
Mark

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel