mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
Fix preprocessor indentation in libvirt.h.in
The cfg.mk rule for checking preprocessor indentation was mistakenly missing the libvirt.h.in file due to bad file extension matching rule. Fix that and the resolve the incorrect indentation that is identified.
This commit is contained in:
parent
bcec07b9f0
commit
a0b6c98d59
2
cfg.mk
2
cfg.mk
@ -680,7 +680,7 @@ sc_require_whitespace_in_translation:
|
|||||||
# Enforce recommended preprocessor indentation style.
|
# Enforce recommended preprocessor indentation style.
|
||||||
sc_preprocessor_indentation:
|
sc_preprocessor_indentation:
|
||||||
@if cppi --version >/dev/null 2>&1; then \
|
@if cppi --version >/dev/null 2>&1; then \
|
||||||
$(VC_LIST_EXCEPT) | grep '\.[ch]$$' | xargs cppi -a -c \
|
$(VC_LIST_EXCEPT) | grep -E '\.[ch](\.in)?$$' | xargs cppi -a -c \
|
||||||
|| { echo '$(ME): incorrect preprocessor indentation' 1>&2; \
|
|| { echo '$(ME): incorrect preprocessor indentation' 1>&2; \
|
||||||
exit 1; }; \
|
exit 1; }; \
|
||||||
else \
|
else \
|
||||||
|
@ -24,24 +24,24 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __VIR_VIRLIB_H__
|
#ifndef __VIR_VIRLIB_H__
|
||||||
#define __VIR_VIRLIB_H__
|
# define __VIR_VIRLIB_H__
|
||||||
|
|
||||||
#include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
#ifndef VIR_DEPRECATED
|
# ifndef VIR_DEPRECATED
|
||||||
/* The feature is present in gcc-3.1 and newer. */
|
/* The feature is present in gcc-3.1 and newer. */
|
||||||
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||||
# define VIR_DEPRECATED __attribute__((__deprecated__))
|
# define VIR_DEPRECATED __attribute__((__deprecated__))
|
||||||
# else
|
# else
|
||||||
# define VIR_DEPRECATED /* nothing */
|
# define VIR_DEPRECATED /* nothing */
|
||||||
# endif
|
# endif
|
||||||
#endif /* VIR_DEPRECATED */
|
# endif /* VIR_DEPRECATED */
|
||||||
|
|
||||||
#ifdef WIN32
|
# ifdef WIN32
|
||||||
# ifdef LIBVIRT_STATIC
|
# ifdef LIBVIRT_STATIC
|
||||||
# define VIR_EXPORT_VAR extern
|
# define VIR_EXPORT_VAR extern
|
||||||
# else
|
# else
|
||||||
@ -51,9 +51,9 @@ extern "C" {
|
|||||||
# define VIR_EXPORT_VAR __declspec(dllimport) extern
|
# define VIR_EXPORT_VAR __declspec(dllimport) extern
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#else
|
# else
|
||||||
# define VIR_EXPORT_VAR extern
|
# define VIR_EXPORT_VAR extern
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
/* General note - in the header files, any linear enumeration which
|
/* General note - in the header files, any linear enumeration which
|
||||||
* might be expanded in the future has an optional *_LAST value that
|
* might be expanded in the future has an optional *_LAST value that
|
||||||
@ -70,7 +70,7 @@ extern "C" {
|
|||||||
* version * 1,000,000 + minor * 1000 + micro
|
* version * 1,000,000 + minor * 1000 + micro
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LIBVIR_VERSION_NUMBER @LIBVIRT_VERSION_NUMBER@
|
# define LIBVIR_VERSION_NUMBER @LIBVIRT_VERSION_NUMBER@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LIBVIR_CHECK_VERSION:
|
* LIBVIR_CHECK_VERSION:
|
||||||
@ -85,25 +85,25 @@ extern "C" {
|
|||||||
* // some code that only works in 1.1.3 and newer
|
* // some code that only works in 1.1.3 and newer
|
||||||
* #endif
|
* #endif
|
||||||
*/
|
*/
|
||||||
#define LIBVIR_CHECK_VERSION(major, minor, micro) \
|
# define LIBVIR_CHECK_VERSION(major, minor, micro) \
|
||||||
((major) * 1000000 + (minor) * 1000 + (micro) <= LIBVIR_VERSION_NUMBER)
|
((major) * 1000000 + (minor) * 1000 + (micro) <= LIBVIR_VERSION_NUMBER)
|
||||||
|
|
||||||
#define __VIR_LIBVIRT_H_INCLUDES__
|
# define __VIR_LIBVIRT_H_INCLUDES__
|
||||||
#include <libvirt/libvirt-host.h>
|
# include <libvirt/libvirt-host.h>
|
||||||
#include <libvirt/libvirt-domain.h>
|
# include <libvirt/libvirt-domain.h>
|
||||||
#include <libvirt/libvirt-domain-snapshot.h>
|
# include <libvirt/libvirt-domain-snapshot.h>
|
||||||
#include <libvirt/libvirt-event.h>
|
# include <libvirt/libvirt-event.h>
|
||||||
#include <libvirt/libvirt-interface.h>
|
# include <libvirt/libvirt-interface.h>
|
||||||
#include <libvirt/libvirt-network.h>
|
# include <libvirt/libvirt-network.h>
|
||||||
#include <libvirt/libvirt-nodedev.h>
|
# include <libvirt/libvirt-nodedev.h>
|
||||||
#include <libvirt/libvirt-nwfilter.h>
|
# include <libvirt/libvirt-nwfilter.h>
|
||||||
#include <libvirt/libvirt-secret.h>
|
# include <libvirt/libvirt-secret.h>
|
||||||
#include <libvirt/libvirt-storage.h>
|
# include <libvirt/libvirt-storage.h>
|
||||||
#include <libvirt/libvirt-stream.h>
|
# include <libvirt/libvirt-stream.h>
|
||||||
#undef __VIR_LIBVIRT_H_INCLUDES__
|
# undef __VIR_LIBVIRT_H_INCLUDES__
|
||||||
|
|
||||||
#ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
#endif /* __VIR_VIRLIB_H__ */
|
#endif /* __VIR_VIRLIB_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user