From 0d03e570b0eadeb57f2f542084c2c285bc44ac6a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 Dec 2023 10:25:41 -0500 Subject: [PATCH] tests: Use #pragma once consistently Its the current coding style. --- tests/frame-stats.h | 5 +---- tests/gtkgears.h | 5 +---- tests/testprintfileoperation.h | 8 ++------ tests/variable.h | 6 +----- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/tests/frame-stats.h b/tests/frame-stats.h index 9c046a7f97..4a773021a1 100644 --- a/tests/frame-stats.h +++ b/tests/frame-stats.h @@ -1,9 +1,6 @@ -#ifndef __FRAME_STATS_H__ -#define __FRAME_STATS_H__ +#pragma once #include void frame_stats_add_options (GOptionGroup *group); void frame_stats_ensure (GtkWindow *window); - -#endif /* __FRAME_STATS_H__ */ diff --git a/tests/gtkgears.h b/tests/gtkgears.h index 0109723c14..5ebfa535ca 100644 --- a/tests/gtkgears.h +++ b/tests/gtkgears.h @@ -1,5 +1,4 @@ -#ifndef __GTK_GEARS_H__ -#define __GTK_GEARS_H__ +#pragma once #include @@ -44,5 +43,3 @@ void gtk_gears_set_fps_label (GtkGears *gears, G_END_DECLS - -#endif /* __GTK_GEARS_H__ */ diff --git a/tests/testprintfileoperation.h b/tests/testprintfileoperation.h index 40472fdf94..83e0f5eeee 100644 --- a/tests/testprintfileoperation.h +++ b/tests/testprintfileoperation.h @@ -1,5 +1,4 @@ -#ifndef __TEST_PRINT_FILE_OPERATION_H__ -#define __TEST_PRINT_FILE_OPERATION_H__ +#pragma once #include @@ -22,7 +21,6 @@ struct _TestPrintFileOperation double font_size; int lines_per_page; - char **lines; int num_lines; int num_pages; @@ -36,8 +34,6 @@ struct _TestPrintFileOperationClass GType test_print_file_operation_get_type (void); TestPrintFileOperation *test_print_file_operation_new (const char *filename); void test_print_file_operation_set_font_size (TestPrintFileOperation *op, - double points); + double points); G_END_DECLS - -#endif /* __TEST_PRINT_FILE_OPERATION_H__ */ diff --git a/tests/variable.h b/tests/variable.h index cc73022992..0cb4e04b69 100644 --- a/tests/variable.h +++ b/tests/variable.h @@ -1,5 +1,4 @@ -#ifndef __VARIABLE_H__ -#define __VARIABLE_H__ +#pragma once typedef struct { @@ -19,6 +18,3 @@ void variable_add (Variable *variable, double variable_mean (Variable *variable); double variable_standard_deviation (Variable *variable); void variable_reset (Variable *variable); - -#endif /* __VARIABLE_H__ */ -