[libvirt] [PATCH 0/6] Some '#pragma once' conversions

Cole Robinson crobinso at redhat.com
Wed Apr 3 21:52:42 UTC 2019


danpb added a BiteSizedTask for '#pragma once' conversions

https://wiki.libvirt.org/page/BiteSizedTasks#Switch_headers_to_use_.23pragma_once

We don't currently have any usage in the code. Turns out we need
some syntax check tweaks to make things happy. This series fixes those,
and adds a few conversion examples.

Tested on Fedora30 and freebsd12.0 with nodedev hal driver build

Cole Robinson (6):
  build-aux: header-ifdef: Fix typos
  build-aux: header-ifdef: Handle #pragma once
  node_device_driver.h: Use #pragma once
  node_device_udev.h: Use #pragma once
  node_device_hal.h: Use #pragma once
  vircgrouppriv.h: Use #pragma once

 build-aux/header-ifdef.pl            | 11 ++++++++---
 src/node_device/node_device_driver.h | 21 +++++++++------------
 src/node_device/node_device_hal.h    |  5 +----
 src/node_device/node_device_udev.h   | 13 +++++--------
 src/util/vircgrouppriv.h             |  9 +++------
 5 files changed, 26 insertions(+), 33 deletions(-)

--
2.21.0




More information about the libvir-list mailing list