Switch to #pragma once for headers

It's just less tedious, and we're GCC/LLVM specific anyways.
This commit is contained in:
Colin Walters committed 2013-07-09 18:53:22 -04:00
1 parent 7f48c77204
commit 5ad0671cd2
36 files changed
+39 -106

No files matched your search

+1 -4
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_CHECKSUM_UTILS_H__
#define __OSTREE_CHECKSUM_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -65,5 +64,3 @@ guchar * ot_gio_checksum_stream_finish (GInputStream *in,
GError **error);
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_GIO_UTILS_H__
#define __OSTREE_GIO_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -81,4 +80,3 @@ gboolean ot_gfile_atomic_symlink_swap (GFile *path,
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_KEYFILE_UTILS_H__
#define __OSTREE_KEYFILE_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -46,4 +45,3 @@ ot_keyfile_get_value_with_default (GKeyFile *keyfile,
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_OPT_UTILS_H__
#define __OSTREE_OPT_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -31,4 +30,3 @@ void ot_util_usage_error (GOptionContext *context, const char *message, GError *
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_SPAWN_UTILS_H__
#define __OSTREE_SPAWN_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -33,4 +32,3 @@ GThreadPool * ot_thread_pool_new_nproc (GFunc func,
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_UNIX_UTILS_H__
#define __OSTREE_UNIX_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -51,4 +50,3 @@ void ot_util_set_error_from_errno (GError **error, gint saved_errno);
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_VARIANT_UTILS_H__
#define __OSTREE_VARIANT_UTILS_H__
#pragma once
#include <gio/gio.h>
@@ -56,4 +55,3 @@ GInputStream *ot_variant_read (GVariant *variant);
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_WAITABLE_QUEUE_H__
#define __OSTREE_WAITABLE_QUEUE_H__
#pragma once
#include <gio/gio.h>
@@ -44,4 +43,3 @@ void ot_waitable_queue_unref (OtWaitableQueue *queue);
G_END_DECLS
#endif
+1 -3
View File
@@ -20,8 +20,7 @@
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __OSTREE_UTIL_H__
#define __OSTREE_UTIL_H__
#pragma once
#include <gio/gio.h>
#include <libgsystem.h>
@@ -48,4 +47,3 @@
void ot_ptrarray_add_many (GPtrArray *a, ...) G_GNUC_NULL_TERMINATED;
#endif