diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2018-12-13 13:32:06 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2018-12-14 10:46:53 +0000 |
commit | 4cfd7090212cbe38572274a7fff2475f4f8e87b7 (patch) | |
tree | 62847b9049c6d6df611833aea4b64128ceb6196f /tests/testutilsxen.h | |
parent | 76ddd01ecd27e85f28e9f62641b3b1a2fffc8526 (diff) | |
download | libvirt-4cfd7090212cbe38572274a7fff2475f4f8e87b7.tar.gz |
Fix many mistakes & inconsistencies in header file layout
This introduces a syntax-check script that validates header files use a
common layout:
/*
...copyright header...
*/
<one blank line>
#ifndef SYMBOL
# define SYMBOL
....content....
#endif /* SYMBOL */
For any file ending priv.h, before the #ifndef, we will require a
guard to prevent bogus imports:
#ifndef SYMBOL_ALLOW
# error ....
#endif /* SYMBOL_ALLOW */
<one blank line>
The many mistakes this script identifies are then fixed.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/testutilsxen.h')
-rw-r--r-- | tests/testutilsxen.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/testutilsxen.h b/tests/testutilsxen.h index c5ccb6d471..0fceb93ae8 100644 --- a/tests/testutilsxen.h +++ b/tests/testutilsxen.h @@ -1,3 +1,19 @@ +/* + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * <http://www.gnu.org/licenses/>. + */ + #ifndef _TESTUTILSXEN_H_ # define _TESTUTILSXEN_H_ |