summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 16:34:02 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commit35e70f0b4581276955cc9caa5088afea1a9d6ca6 (patch)
tree3fa5e842b57e2af016cf4cd5658b204690364071 /tests
parent39bcd89306a72c04871433e9b4587b075ab4127a (diff)
downloadlibpeas-35e70f0b4581276955cc9caa5088afea1a9d6ca6.tar.gz
janitorial: use #pragma once
We can rely on modern compilers to support #pragma once instead of doing the #ifndef style.
Diffstat (limited to 'tests')
-rw-r--r--tests/libpeas/introspection/introspection-abstract.h5
-rw-r--r--tests/libpeas/introspection/introspection-base.h5
-rw-r--r--tests/libpeas/introspection/introspection-callable.h5
-rw-r--r--tests/libpeas/introspection/introspection-has-prerequisite.h5
-rw-r--r--tests/libpeas/introspection/introspection-prerequisite.h5
-rw-r--r--tests/libpeas/introspection/introspection-unimplemented.h5
-rw-r--r--tests/libpeas/plugins/embedded/embedded-plugin.h5
-rw-r--r--tests/libpeas/plugins/extension-c/extension-c-abstract.h5
-rw-r--r--tests/libpeas/plugins/extension-c/extension-c-plugin.h5
-rw-r--r--tests/libpeas/testing/testing-extension.h5
-rw-r--r--tests/libpeas/testing/testing.h5
-rw-r--r--tests/plugins/builtin/builtin-plugin.h5
-rw-r--r--tests/plugins/has-dep/has-dep-plugin.h5
-rw-r--r--tests/plugins/loadable/loadable-plugin.h5
-rw-r--r--tests/plugins/self-dep/self-dep-plugin.h5
-rw-r--r--tests/testing-util/peas-activatable.h5
-rw-r--r--tests/testing-util/testing-util.h5
17 files changed, 17 insertions, 68 deletions
diff --git a/tests/libpeas/introspection/introspection-abstract.h b/tests/libpeas/introspection/introspection-abstract.h
index 1082d71..3f6a2f5 100644
--- a/tests/libpeas/introspection/introspection-abstract.h
+++ b/tests/libpeas/introspection/introspection-abstract.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __INTROSPECTION_ABSTRACT_H__
-#define __INTROSPECTION_ABSTRACT_H__
+#pragma once
#include <libpeas.h>
@@ -65,5 +64,3 @@ void introspection_abstract_set_value (IntrospectionAbstract *abstract,
gint value);
G_END_DECLS
-
-#endif /* __INTROSPECTION_ABSTRACT_H__ */
diff --git a/tests/libpeas/introspection/introspection-base.h b/tests/libpeas/introspection/introspection-base.h
index 813fec6..fe2691a 100644
--- a/tests/libpeas/introspection/introspection-base.h
+++ b/tests/libpeas/introspection/introspection-base.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __INTROSPECTION_BASE_H__
-#define __INTROSPECTION_BASE_H__
+#pragma once
#include <libpeas.h>
@@ -64,5 +63,3 @@ PEAS_TEST_EXPORT
GSettings *introspection_base_get_settings (IntrospectionBase *base);
G_END_DECLS
-
-#endif /* __INTROSPECTION_BASE_H__ */
diff --git a/tests/libpeas/introspection/introspection-callable.h b/tests/libpeas/introspection/introspection-callable.h
index 48dab7b..2a880c4 100644
--- a/tests/libpeas/introspection/introspection-callable.h
+++ b/tests/libpeas/introspection/introspection-callable.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __INTROSPECTION_CALLABLE_H__
-#define __INTROSPECTION_CALLABLE_H__
+#pragma once
#include <glib-object.h>
@@ -83,5 +82,3 @@ void introspection_callable_call_multi_args (IntrospectionCallable *cal
gint *inout);
G_END_DECLS
-
-#endif /* __INTROSPECTION_CALLABLE_H__ */
diff --git a/tests/libpeas/introspection/introspection-has-prerequisite.h b/tests/libpeas/introspection/introspection-has-prerequisite.h
index a9c8c54..aacd81f 100644
--- a/tests/libpeas/introspection/introspection-has-prerequisite.h
+++ b/tests/libpeas/introspection/introspection-has-prerequisite.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __INTROSPECTION_HAS_PREREQUISITE_H__
-#define __INTROSPECTION_HAS_PREREQUISITE_H__
+#pragma once
#include <glib-object.h>
@@ -53,5 +52,3 @@ PEAS_TEST_EXPORT
GType introspection_has_prerequisite_get_type (void) G_GNUC_CONST;
G_END_DECLS
-
-#endif /* __INTROSPECTION_HAS_PREREQUISITE_H__ */
diff --git a/tests/libpeas/introspection/introspection-prerequisite.h b/tests/libpeas/introspection/introspection-prerequisite.h
index c0cf669..6650c6f 100644
--- a/tests/libpeas/introspection/introspection-prerequisite.h
+++ b/tests/libpeas/introspection/introspection-prerequisite.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __INTROSPECTION_PREREQUISITE_H__
-#define __INTROSPECTION_PREREQUISITE_H__
+#pragma once
#include <libpeas.h>
@@ -57,5 +56,3 @@ PEAS_TEST_EXPORT
GType introspection_prerequisite_get_type (void) G_GNUC_CONST;
G_END_DECLS
-
-#endif /* __INTROSPECTION_PREREQUISITE_H__ */
diff --git a/tests/libpeas/introspection/introspection-unimplemented.h b/tests/libpeas/introspection/introspection-unimplemented.h
index 65a157a..27e9565 100644
--- a/tests/libpeas/introspection/introspection-unimplemented.h
+++ b/tests/libpeas/introspection/introspection-unimplemented.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __INTROSPECTION_UNIMPLEMENTED_H__
-#define __INTROSPECTION_UNIMPLEMENTED_H__
+#pragma once
#include <glib-object.h>
@@ -53,5 +52,3 @@ PEAS_TEST_EXPORT
GType introspection_unimplemented_get_type (void) G_GNUC_CONST;
G_END_DECLS
-
-#endif /* __INTROSPECTION_UNIMPLEMENTED_H__ */
diff --git a/tests/libpeas/plugins/embedded/embedded-plugin.h b/tests/libpeas/plugins/embedded/embedded-plugin.h
index cb02f47..f35e63f 100644
--- a/tests/libpeas/plugins/embedded/embedded-plugin.h
+++ b/tests/libpeas/plugins/embedded/embedded-plugin.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_EMBEDDED_PLUGIN_H__
-#define __TESTING_EMBEDDED_PLUGIN_H__
+#pragma once
#include <libpeas.h>
@@ -53,5 +52,3 @@ GType testing_embedded_plugin_get_type (void) G_GNUC_CONST;
G_MODULE_EXPORT void testing_embedded_plugin_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __TESTING_EMBEDDED_PLUGIN_H__ */
diff --git a/tests/libpeas/plugins/extension-c/extension-c-abstract.h b/tests/libpeas/plugins/extension-c/extension-c-abstract.h
index 71704bc..f341686 100644
--- a/tests/libpeas/plugins/extension-c/extension-c-abstract.h
+++ b/tests/libpeas/plugins/extension-c/extension-c-abstract.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __EXTENSION_C_ABSTRACT_H__
-#define __EXTENSION_C_ABSTRACT_H__
+#pragma once
#include "introspection-abstract.h"
@@ -50,5 +49,3 @@ GType testing_extension_c_abstract_get_type (void) G_GNUC_CONST;
void testing_extension_c_abstract_register (GTypeModule *module);
G_END_DECLS
-
-#endif /* __EXTENSION_C_ABSTRACT_H__ */
diff --git a/tests/libpeas/plugins/extension-c/extension-c-plugin.h b/tests/libpeas/plugins/extension-c/extension-c-plugin.h
index 19c3b6b..7234f6c 100644
--- a/tests/libpeas/plugins/extension-c/extension-c-plugin.h
+++ b/tests/libpeas/plugins/extension-c/extension-c-plugin.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __EXTENSION_C_PLUGIN_H__
-#define __EXTENSION_C_PLUGIN_H__
+#pragma once
#include <libpeas.h>
@@ -53,5 +52,3 @@ GType testing_extension_c_plugin_get_type (void) G_GNUC_CONST;
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __EXTENSION_C_PLUGIN_H__ */
diff --git a/tests/libpeas/testing/testing-extension.h b/tests/libpeas/testing/testing-extension.h
index 513f1fe..ee464d3 100644
--- a/tests/libpeas/testing/testing-extension.h
+++ b/tests/libpeas/testing/testing-extension.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_EXTENSION_H__
-#define __TESTING_EXTENSION_H__
+#pragma once
#include <libpeas/peas-engine.h>
@@ -61,5 +60,3 @@ int testing_extension_run_tests (void);
(GTestFunc) test_extension_##loader##_##func)
G_END_DECLS
-
-#endif /* __TESTING__EXTENSION_H__ */
diff --git a/tests/libpeas/testing/testing.h b/tests/libpeas/testing/testing.h
index 1b70cca..73a5b95 100644
--- a/tests/libpeas/testing/testing.h
+++ b/tests/libpeas/testing/testing.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_H__
-#define __TESTING_H__
+#pragma once
#include <libpeas/peas-engine.h>
#include <testing-util.h>
@@ -43,5 +42,3 @@ PeasEngine *testing_engine_new_full (gboolean nonglobal_loaders);
#define testing_run_tests testing_util_run_tests
G_END_DECLS
-
-#endif /* __TESTING_H__ */
diff --git a/tests/plugins/builtin/builtin-plugin.h b/tests/plugins/builtin/builtin-plugin.h
index 65a0025..8ca510f 100644
--- a/tests/plugins/builtin/builtin-plugin.h
+++ b/tests/plugins/builtin/builtin-plugin.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_BUILTIN_PLUGIN_H__
-#define __TESTING_BUILTIN_PLUGIN_H__
+#pragma once
#include <libpeas.h>
@@ -50,5 +49,3 @@ GType testing_builtin_plugin_get_type (void) G_GNUC_CONST;
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __TESTING_BUILTIN_PLUGIN_H__ */
diff --git a/tests/plugins/has-dep/has-dep-plugin.h b/tests/plugins/has-dep/has-dep-plugin.h
index 67e295c..1322cf9 100644
--- a/tests/plugins/has-dep/has-dep-plugin.h
+++ b/tests/plugins/has-dep/has-dep-plugin.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_HAS_DEP_PLUGIN_H__
-#define __TESTING_HAS_DEP_PLUGIN_H__
+#pragma once
#include <libpeas.h>
@@ -50,5 +49,3 @@ GType testing_has_dep_plugin_get_type (void) G_GNUC_CONST;
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __TESTING_HAS_DEP_PLUGIN_H__ */
diff --git a/tests/plugins/loadable/loadable-plugin.h b/tests/plugins/loadable/loadable-plugin.h
index ba7af25..08207b9 100644
--- a/tests/plugins/loadable/loadable-plugin.h
+++ b/tests/plugins/loadable/loadable-plugin.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_LOADABLE_PLUGIN_H__
-#define __TESTING_LOADABLE_PLUGIN_H__
+#pragma once
#include <libpeas.h>
@@ -56,5 +55,3 @@ GType testing_loadable_plugin_get_type (void) G_GNUC_CONST;
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __TESTING_LOADABLE_PLUGIN_H__ */
diff --git a/tests/plugins/self-dep/self-dep-plugin.h b/tests/plugins/self-dep/self-dep-plugin.h
index 0d30d3e..2c580a1 100644
--- a/tests/plugins/self-dep/self-dep-plugin.h
+++ b/tests/plugins/self-dep/self-dep-plugin.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_SELF_DEP_PLUGIN_H__
-#define __TESTING_SELF_DEP_PLUGIN_H__
+#pragma once
#include <libpeas.h>
@@ -50,5 +49,3 @@ GType testing_self_dep_plugin_get_type (void) G_GNUC_CONST;
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
-
-#endif /* __TESTING_SELF_DEP_PLUGIN_H__ */
diff --git a/tests/testing-util/peas-activatable.h b/tests/testing-util/peas-activatable.h
index 03f008c..157f567 100644
--- a/tests/testing-util/peas-activatable.h
+++ b/tests/testing-util/peas-activatable.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __PEAS_ACTIVATABLE_H__
-#define __PEAS_ACTIVATABLE_H__
+#pragma once
#include <glib-object.h>
@@ -73,5 +72,3 @@ void peas_activatable_deactivate (PeasActivatable *activatable)
void peas_activatable_update_state (PeasActivatable *activatable);
G_END_DECLS
-
-#endif /* __PEAS_ACTIVATABLE_H__ */
diff --git a/tests/testing-util/testing-util.h b/tests/testing-util/testing-util.h
index e76bbb0..6eadad5 100644
--- a/tests/testing-util/testing-util.h
+++ b/tests/testing-util/testing-util.h
@@ -21,8 +21,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#ifndef __TESTING_UTIL_H__
-#define __TESTING_UTIL_H__
+#pragma once
#include <libpeas/peas-engine.h>
@@ -61,5 +60,3 @@ void testing_util_pop_log_hooks (void);
#define testing_util_engine_new() (testing_util_engine_new_full (FALSE))
G_END_DECLS
-
-#endif /* __TESTING_UTIL_H__ */