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

Re: [libvirt] [PATCH 2/2] build: enforce preprocessor indentation



On 03/09/2010 10:02 AM, Eric Blake wrote:
> * cfg.mk (sc_preprocessor_indentation): New syntax-check rule.

I don't see 1/2 in the archives yet; perhaps it was held up by
moderation, because it is big?  (400k)

At any rate, I've pushed it to my cloned repo, if that makes life any
easier:
http://repo.or.cz/w/libvirt/ericb.git/commitdiff/4d3b7e06bc8e

Patch 1/2 is entirely mechanical; the most helpful review would be on
whether any of the affected files are normally generated, where either
we add exceptions, or fix the generator, so as to avoid regressions when
those files are regenerated.

commit 4d3b7e06bc8e2e76584da369406df0909c63f2d4
Author: Eric Blake <eblake redhat com>
Date:   Tue Mar 9 09:33:48 2010 -0700

    build: consistently indent preprocessor directives

    * global: patch created by running:
    for f in $(git ls-files '*.[ch]') ; do
       cppi $f > $f.t && mv $f.t $f
    done

 daemon/dispatch.h                            |    4 +-
 daemon/event.h                               |    4 +-
 daemon/libvirtd.c                            |  126 ++--
 daemon/libvirtd.h                            |  160 ++--
 daemon/mdns.h                                |    2 +-
 daemon/remote.c                              |   10 +-
 daemon/remote.h                              |    8 +-
 daemon/stream.h                              |    4 +-
 examples/domain-events/events-c/event-test.c |   20 +-
 include/libvirt/virterror.h                  |   12 +-
 proxy/libvirt_proxy.c                        |   34 +-
 python/typewrappers.h                        |   14 +-
 src/conf/capabilities.h                      |   12 +-
 src/conf/cpu_conf.h                          |   16 +-
 src/conf/domain_conf.h                       |   32 +-
 src/conf/domain_event.h                      |    4 +-
 src/conf/interface_conf.h                    |   14 +-
 src/conf/network_conf.h                      |   12 +-
 src/conf/node_device_conf.h                  |   16 +-
 src/conf/secret_conf.h                       |    8 +-
 src/conf/storage_conf.h                      |   14 +-
 src/conf/storage_encryption_conf.h           |   12 +-
 src/cpu/cpu.h                                |   12 +-
 src/cpu/cpu_generic.h                        |    4 +-
 src/cpu/cpu_map.h                            |    4 +-
 src/cpu/cpu_x86.c                            |    6 +-
 src/cpu/cpu_x86.h                            |    4 +-
 src/cpu/cpu_x86_data.h                       |    8 +-
 src/datatypes.h                              |   62 +-
 src/driver.c                                 |    2 +-
 src/driver.h                                 |   24 +-
 src/esx/esx_device_monitor.h                 |    2 +-
 src/esx/esx_driver.c                         |    8 +-
 src/esx/esx_driver.h                         |    2 +-
 src/esx/esx_interface_driver.h               |    2 +-
 src/esx/esx_network_driver.h                 |    2 +-
 src/esx/esx_private.h                        |    8 +-
 src/esx/esx_secret_driver.h                  |    2 +-
 src/esx/esx_storage_driver.h                 |    2 +-
 src/esx/esx_util.h                           |    8 +-
 src/esx/esx_vi.h                             |   14 +-
 src/esx/esx_vi_methods.h                     |    6 +-
 src/esx/esx_vi_types.c                       |    4 +-
 src/esx/esx_vi_types.h                       |    4 +-
 src/esx/esx_vmx.h                            |   10 +-
 src/gnutls_1_0_compat.h                      |   20 +-
 src/interface/netcf_driver.h                 |    2 +-
 src/internal.h                               |  190 +++---
 src/libvirt.c                                |  118 ++--
 src/libvirt_internal.h                       |    8 +-
 src/lxc/lxc_conf.h                           |   26 +-
 src/lxc/lxc_container.c                      |   20 +-
 src/lxc/lxc_container.h                      |   26 +-
 src/lxc/lxc_controller.c                     |    6 +-
 src/lxc/lxc_driver.h                         |    4 +-
 src/lxc/veth.h                               |    4 +-
 src/network/bridge_driver.h                  |    6 +-
 src/node_device/node_device_driver.c         |    8 +-
 src/node_device/node_device_driver.h         |   64 +-
 src/node_device/node_device_hal.h            |    2 +-
 src/nodeinfo.c                               |    6 +-
 src/nodeinfo.h                               |    6 +-
 src/opennebula/one_client.h                  |    6 +-
 src/opennebula/one_conf.h                    |   16 +-
 src/opennebula/one_driver.h                  |    6 +-
 src/openvz/openvz_conf.h                     |   18 +-
 src/openvz/openvz_driver.h                   |    4 +-
 src/qemu/qemu_bridge_filter.h                |    2 +-
 src/qemu/qemu_conf.h                         |   46 +-
 src/qemu/qemu_driver.c                       |    8 +-
 src/qemu/qemu_driver.h                       |   26 +-
 src/qemu/qemu_monitor.c                      |    2 +-
 src/qemu/qemu_monitor.h                      |    8 +-
 src/qemu/qemu_monitor_json.h                 |    6 +-
 src/qemu/qemu_monitor_text.h                 |    8 +-
 src/qemu/qemu_security_dac.h                 |    2 +-
 src/qemu/qemu_security_stacked.h             |    2 +-
 src/remote/remote_driver.c                   |   22 +-
 src/remote/remote_driver.h                   |   30 +-
 src/remote/remote_protocol.h                 |   88 ++--
 src/secret/secret_driver.h                   |    2 +-
 src/security/security_apparmor.h             |    8 +-
 src/security/security_driver.c               |    4 +-
 src/security/security_driver.h               |    8 +-
 src/security/security_selinux.h              |    2 +-
 src/storage/storage_backend.c                |   20 +-
 src/storage/storage_backend.h                |    8 +-
 src/storage/storage_backend_disk.h           |    4 +-
 src/storage/storage_backend_fs.c             |    2 +-
 src/storage/storage_backend_fs.h             |    8 +-
 src/storage/storage_backend_iscsi.h          |   10 +-
 src/storage/storage_backend_logical.h        |    4 +-
 src/storage/storage_backend_mpath.h          |    4 +-
 src/storage/storage_backend_scsi.h           |   10 +-
 src/storage/storage_driver.c                 |    2 +-
 src/storage/storage_driver.h                 |    4 +-
 src/test/test_driver.h                       |    4 +-
 src/uml/uml_conf.h                           |   24 +-
 src/uml/uml_driver.h                         |    4 +-
 src/util/bridge.c                            |  106 ++--
 src/util/bridge.h                            |   16 +-
 src/util/buf.h                               |   12 +-
 src/util/cgroup.c                            |    2 +-
 src/util/cgroup.h                            |    2 +-
 src/util/conf.h                              |    2 +-
 src/util/ebtables.c                          |    4 +-
 src/util/ebtables.h                          |    2 +-
 src/util/event.h                             |    4 +-
 src/util/hash.h                              |    2 +-
 src/util/hostusb.h                           |    4 +-
 src/util/iptables.c                          |    4 +-
 src/util/iptables.h                          |    2 +-
 src/util/json.c                              |    4 +-
 src/util/json.h                              |    4 +-
 src/util/logging.c                           |    2 +-
 src/util/logging.h                           |   44 +-
 src/util/macvtap.c                           |   38 +-
 src/util/macvtap.h                           |   16 +-
 src/util/memory.h                            |   22 +-
 src/util/network.h                           |   10 +-
 src/util/pci.c                               |   24 +-
 src/util/pci.h                               |    4 +-
 src/util/processinfo.c                       |   14 +-
 src/util/processinfo.h                       |    4 +-
 src/util/qparams.h                           |    2 +-
 src/util/stats_linux.c                       |   32 +-
 src/util/stats_linux.h                       |    8 +-
 src/util/storage_file.h                      |    6 +-
 src/util/threads.c                           |   12 +-
 src/util/threads.h                           |   22 +-
 src/util/util.c                              |   68 +-
 src/util/util.h                              |   42 +-
 src/util/uuid.c                              |    2 +-
 src/util/uuid.h                              |    2 +-
 src/util/virterror_internal.h                |   10 +-
 src/util/xml.h                               |   10 +-
 src/vbox/vbox_CAPI_v2_2.h                    |  800 ++++++++++----------
 src/vbox/vbox_CAPI_v3_0.h                    | 1056
+++++++++++++-------------
 src/vbox/vbox_CAPI_v3_1.h                    | 1032
+++++++++++++-------------
 src/vbox/vbox_XPCOMCGlue.h                   |   12 +-
 src/vbox/vbox_driver.h                       |    4 +-
 src/vbox/vbox_tmpl.c                         |  128 ++--
 src/xen/block_stats.c                        |   34 +-
 src/xen/block_stats.h                        |    8 +-
 src/xen/proxy_internal.h                     |    8 +-
 src/xen/sexpr.h                              |    6 +-
 src/xen/xen_driver.c                         |    2 +-
 src/xen/xen_driver.h                         |   82 +-
 src/xen/xen_hypervisor.c                     |   82 +-
 src/xen/xen_hypervisor.h                     |   10 +-
 src/xen/xen_inotify.h                        |    6 +-
 src/xen/xend_internal.c                      |   12 +-
 src/xen/xend_internal.h                      |   30 +-
 src/xen/xm_internal.c                        |    8 +-
 src/xen/xm_internal.h                        |   10 +-
 src/xen/xs_internal.c                        |    8 +-
 src/xen/xs_internal.h                        |    6 +-
 tests/esxutilstest.c                         |   18 +-
 tests/nodeinfotest.c                         |    2 +-
 tests/qemuargv2xmltest.c                     |   14 +-
 tests/qemuhelptest.c                         |   12 +-
 tests/qemuxml2argvtest.c                     |   16 +-
 tests/qemuxml2xmltest.c                      |   12 +-
 tests/statstest.c                            |    2 +-
 tests/testutils.c                            |   16 +-
 tests/testutils.h                            |    8 +-
 tests/testutilsqemu.c                        |   10 +-
 tests/vmx2xmltest.c                          |   18 +-
 tests/xml2vmxtest.c                          |   18 +-
 tools/console.c                              |   34 +-
 tools/console.h                              |    6 +-
 tools/virsh.c                                |   10 +-
 172 files changed, 2895 insertions(+), 2895 deletions(-)

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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