qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/4] Multiboot support v2


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 3/4] Multiboot support v2
Date: Thu, 18 Jun 2009 14:19:25 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

On 06/18/2009 01:22 PM, Alexander Graf wrote:
Looking through pc.c I found for mostly without space, but if with immediate space after it.


pc.c:

   address@hidden qemu-kvm (master)]$ grep -c -F 'if (' hw/pc.c
   99
   address@hidden qemu-kvm (master)]$ grep -c -F 'if(' hw/pc.c
   0
   address@hidden qemu-kvm (master)]$ grep -c -F 'for (' hw/pc.c
   13
   address@hidden qemu-kvm (master)]$ grep -c -F 'for(' hw/pc.c
   8


the entire tree:

   address@hidden qemu-kvm (1b443f4...)]$ git ls-files | xargs cat |
   grep -c -F 'if ('
   25831
   address@hidden qemu-kvm (1b443f4...)]$ git ls-files | xargs cat |
   grep -c -F 'if('
   711
   address@hidden qemu-kvm (1b443f4...)]$ git ls-files | xargs cat |
   grep -c -F 'for ('
   2085
   address@hidden qemu-kvm (1b443f4...)]$ git ls-files | xargs cat |
   grep -c -F 'for('
   906


The spaces win.

Wouldn't it be more useful to write some automatic formatting script git would run on patches that go in? Maybe people using tabs in the wrong areas of the code would be able to submit patches by then too ;-).

IMHO there is no real "qemu coding style" atm anyway - each maintainer has his own and uses that for its subtree. It'd be a lot more helpful to start addressing things at the root of the problems.


There's CODING_STYLE (which doesn't address this bit, but is a start).


--
error compiling committee.c: too many arguments to function





reply via email to

[Prev in Thread] Current Thread [Next in Thread]