diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-03-31 15:11:10 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-03-31 15:11:10 -0400 |
commit | a1c5a806b3985b442d78506f0afae476567e597a (patch) | |
tree | 43cc71a014eafe1308912667c42bbb2924f67451 /gsk/gl | |
parent | 515f39f161d73e4e58fcb58ed330db11c3bc8642 (diff) | |
download | gtk+-a1c5a806b3985b442d78506f0afae476567e597a.tar.gz |
Convert headers to #pragma once
The conversion was done by guard2one.
Diffstat (limited to 'gsk/gl')
-rw-r--r-- | gsk/gl/fp16private.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglattachmentstateprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglbufferprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglcommandqueueprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglcompilerprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskgldriverprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglglyphlibraryprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskgliconlibraryprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglprofilerprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglprogramprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglrenderer.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglrendererprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglrenderjobprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskglshadowlibraryprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskgltexturelibraryprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskgltextureprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskgltypesprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/gskgluniformstateprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/inlinearray.h | 4 | ||||
-rw-r--r-- | gsk/gl/ninesliceprivate.h | 4 | ||||
-rw-r--r-- | gsk/gl/stb_rect_pack.h | 4 |
21 files changed, 21 insertions, 63 deletions
diff --git a/gsk/gl/fp16private.h b/gsk/gl/fp16private.h index fbb95cdc1b..faeeaa2d81 100644 --- a/gsk/gl/fp16private.h +++ b/gsk/gl/fp16private.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __FP16_PRIVATE_H__ -#define __FP16_PRIVATE_H__ +#pragma once #include <glib.h> @@ -73,4 +72,3 @@ void half_to_float_c (const guint16 *h, G_END_DECLS -#endif diff --git a/gsk/gl/gskglattachmentstateprivate.h b/gsk/gl/gskglattachmentstateprivate.h index e2fdb621c6..67141b0452 100644 --- a/gsk/gl/gskglattachmentstateprivate.h +++ b/gsk/gl/gskglattachmentstateprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_ATTACHMENT_STATE_PRIVATE_H__ -#define __GSK_GL_ATTACHMENT_STATE_PRIVATE_H__ +#pragma once #include "gskgltypesprivate.h" @@ -96,4 +95,3 @@ void gsk_gl_attachment_state_bind_framebuffer (GskGLAttachmentS G_END_DECLS -#endif /* __GSK_GL_ATTACHMENT_STATE_PRIVATE_H__ */ diff --git a/gsk/gl/gskglbufferprivate.h b/gsk/gl/gskglbufferprivate.h index 3f783898f0..fa4e65cc37 100644 --- a/gsk/gl/gskglbufferprivate.h +++ b/gsk/gl/gskglbufferprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_BUFFER_PRIVATE_H__ -#define __GSK_GL_BUFFER_PRIVATE_H__ +#pragma once #include "gskgltypesprivate.h" @@ -79,4 +78,3 @@ gsk_gl_buffer_get_offset (GskGLBuffer *buffer) G_END_DECLS -#endif /* __GSK_GL_BUFFER_PRIVATE_H__ */ diff --git a/gsk/gl/gskglcommandqueueprivate.h b/gsk/gl/gskglcommandqueueprivate.h index cab15afbaa..c946eb9803 100644 --- a/gsk/gl/gskglcommandqueueprivate.h +++ b/gsk/gl/gskglcommandqueueprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_COMMAND_QUEUE_PRIVATE_H__ -#define __GSK_GL_COMMAND_QUEUE_PRIVATE_H__ +#pragma once #include <gsk/gskprofilerprivate.h> @@ -374,4 +373,3 @@ gsk_gl_command_queue_bind_framebuffer (GskGLCommandQueue *self, G_END_DECLS -#endif /* __GSK_GL_COMMAND_QUEUE_PRIVATE_H__ */ diff --git a/gsk/gl/gskglcompilerprivate.h b/gsk/gl/gskglcompilerprivate.h index 54f3e00836..82a2dda81a 100644 --- a/gsk/gl/gskglcompilerprivate.h +++ b/gsk/gl/gskglcompilerprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_COMPILER_PRIVATE_H__ -#define __GSK_GL_COMPILER_PRIVATE_H__ +#pragma once #include "gskgltypesprivate.h" @@ -67,4 +66,3 @@ GskGLProgram * gsk_gl_compiler_compile (GskGLCompiler * G_END_DECLS -#endif /* __GSK_GL_COMPILER_PRIVATE_H__ */ diff --git a/gsk/gl/gskgldriverprivate.h b/gsk/gl/gskgldriverprivate.h index 2945aaa4e7..15340b0a1b 100644 --- a/gsk/gl/gskgldriverprivate.h +++ b/gsk/gl/gskgldriverprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_DRIVER_PRIVATE_H__ -#define __GSK_GL_DRIVER_PRIVATE_H__ +#pragma once #include <gdk/gdkgltextureprivate.h> @@ -242,4 +241,3 @@ gsk_gl_driver_slice_texture (GskGLDriver *self, G_END_DECLS -#endif /* __GSK_GL_DRIVER_PRIVATE_H__ */ diff --git a/gsk/gl/gskglglyphlibraryprivate.h b/gsk/gl/gskglglyphlibraryprivate.h index 42692f34e6..b3022b4630 100644 --- a/gsk/gl/gskglglyphlibraryprivate.h +++ b/gsk/gl/gskglglyphlibraryprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_GLYPH_LIBRARY_PRIVATE_H__ -#define __GSK_GL_GLYPH_LIBRARY_PRIVATE_H__ +#pragma once #include <pango/pango.h> @@ -102,4 +101,3 @@ gsk_gl_glyph_library_lookup_or_add (GskGLGlyphLibrary *self, G_END_DECLS -#endif /* __GSK_GL_GLYPH_LIBRARY_PRIVATE_H__ */ diff --git a/gsk/gl/gskgliconlibraryprivate.h b/gsk/gl/gskgliconlibraryprivate.h index 8c34aec2f1..dc99b546ce 100644 --- a/gsk/gl/gskgliconlibraryprivate.h +++ b/gsk/gl/gskgliconlibraryprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_ICON_LIBRARY_PRIVATE_H__ -#define __GSK_GL_ICON_LIBRARY_PRIVATE_H__ +#pragma once #include <pango/pango.h> @@ -57,4 +56,3 @@ gsk_gl_icon_library_lookup_or_add (GskGLIconLibrary *self, G_END_DECLS -#endif /* __GSK_GL_ICON_LIBRARY_PRIVATE_H__ */ diff --git a/gsk/gl/gskglprofilerprivate.h b/gsk/gl/gskglprofilerprivate.h index 5b2a24b09f..3aa0650c11 100644 --- a/gsk/gl/gskglprofilerprivate.h +++ b/gsk/gl/gskglprofilerprivate.h @@ -1,5 +1,4 @@ -#ifndef __GSK_GL_PROFILER_PRIVATE_H__ -#define __GSK_GL_PROFILER_PRIVATE_H__ +#pragma once #include <gsk/gsktypes.h> @@ -15,4 +14,3 @@ guint64 gsk_gl_profiler_end_gpu_region (GskGLProfiler *profiler G_END_DECLS -#endif /* __GSK_GL_PROFILER_PRIVATE_H__ */ diff --git a/gsk/gl/gskglprogramprivate.h b/gsk/gl/gskglprogramprivate.h index 4947fb1a32..50c191eb4b 100644 --- a/gsk/gl/gskglprogramprivate.h +++ b/gsk/gl/gskglprogramprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_PROGRAM_PRIVATE_H__ -#define __GSK_GL_PROGRAM_PRIVATE_H__ +#pragma once #include "gskgltypesprivate.h" @@ -301,4 +300,3 @@ gsk_gl_program_set_uniform_matrix (GskGLProgram *self, G_END_DECLS -#endif /* __GSK_GL_PROGRAM_PRIVATE_H__ */ diff --git a/gsk/gl/gskglrenderer.h b/gsk/gl/gskglrenderer.h index 818848479f..feb793ef29 100644 --- a/gsk/gl/gskglrenderer.h +++ b/gsk/gl/gskglrenderer.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_RENDERER_H__ -#define __GSK_GL_RENDERER_H__ +#pragma once #include <gsk/gskrenderer.h> @@ -47,4 +46,3 @@ GDK_DEPRECATED_IN_4_4_FOR (gsk_gl_renderer_new) GskRenderer *gsk_ngl_renderer_new (void); G_END_DECLS -#endif /* __GSK_GL_RENDERER__ */ diff --git a/gsk/gl/gskglrendererprivate.h b/gsk/gl/gskglrendererprivate.h index df23e0705f..59a7222e71 100644 --- a/gsk/gl/gskglrendererprivate.h +++ b/gsk/gl/gskglrendererprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_RENDERER_PRIVATE_H__ -#define __GSK_GL_RENDERER_PRIVATE_H__ +#pragma once #include "gskglrenderer.h" @@ -31,4 +30,3 @@ gboolean gsk_gl_renderer_try_compile_gl_shader (GskGLRenderer *renderer, G_END_DECLS -#endif /* __GSK_GL_RENDERER_PRIVATE_H__ */ diff --git a/gsk/gl/gskglrenderjobprivate.h b/gsk/gl/gskglrenderjobprivate.h index 3b92215d3a..c340bf1490 100644 --- a/gsk/gl/gskglrenderjobprivate.h +++ b/gsk/gl/gskglrenderjobprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_RENDER_JOB_H__ -#define __GSK_GL_RENDER_JOB_H__ +#pragma once #include "gskgltypesprivate.h" @@ -37,4 +36,3 @@ void gsk_gl_render_job_render_flipped (GskGLRenderJob *job void gsk_gl_render_job_set_debug_fallback (GskGLRenderJob *job, gboolean debug_fallback); -#endif /* __GSK_GL_RENDER_JOB_H__ */ diff --git a/gsk/gl/gskglshadowlibraryprivate.h b/gsk/gl/gskglshadowlibraryprivate.h index a328674731..3c3c77c9e3 100644 --- a/gsk/gl/gskglshadowlibraryprivate.h +++ b/gsk/gl/gskglshadowlibraryprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_SHADOW_LIBRARY_PRIVATE_H__ -#define __GSK_GL_SHADOW_LIBRARY_PRIVATE_H__ +#pragma once #include "gskgltexturelibraryprivate.h" @@ -41,4 +40,3 @@ void gsk_gl_shadow_library_insert (GskGLShadowLibrary *se G_END_DECLS -#endif /* __GSK_GL_SHADOW_LIBRARY_PRIVATE_H__ */ diff --git a/gsk/gl/gskgltexturelibraryprivate.h b/gsk/gl/gskgltexturelibraryprivate.h index a0292c497b..e2c3589fab 100644 --- a/gsk/gl/gskgltexturelibraryprivate.h +++ b/gsk/gl/gskgltexturelibraryprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_TEXTURE_LIBRARY_PRIVATE_H__ -#define __GSK_GL_TEXTURE_LIBRARY_PRIVATE_H__ +#pragma once #include "gskgltypesprivate.h" #include "gskgltextureprivate.h" @@ -231,4 +230,3 @@ gsk_gl_texture_library_can_cache (GskGLTextureLibrary *self, G_END_DECLS -#endif /* __GSK_GL_TEXTURE_LIBRARY_PRIVATE_H__ */ diff --git a/gsk/gl/gskgltextureprivate.h b/gsk/gl/gskgltextureprivate.h index 4d25767ef4..b6cf5e42bb 100644 --- a/gsk/gl/gskgltextureprivate.h +++ b/gsk/gl/gskgltextureprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef _GSK_GL_TEXTURE_PRIVATE_H__ -#define _GSK_GL_TEXTURE_PRIVATE_H__ +#pragma once #include "gskgltypesprivate.h" @@ -90,4 +89,3 @@ void gsk_gl_texture_free (GskGLTexture G_END_DECLS -#endif /* _GSK_GL_TEXTURE_PRIVATE_H__ */ diff --git a/gsk/gl/gskgltypesprivate.h b/gsk/gl/gskgltypesprivate.h index 1250756fb7..c16c22c5a0 100644 --- a/gsk/gl/gskgltypesprivate.h +++ b/gsk/gl/gskgltypesprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __GSK_GL_TYPES_PRIVATE_H__ -#define __GSK_GL_TYPES_PRIVATE_H__ +#pragma once #include <epoxy/gl.h> #include <graphene.h> @@ -63,4 +62,3 @@ struct _GskGLDrawVertex G_END_DECLS -#endif /* __GSK_GL_TYPES_PRIVATE_H__ */ diff --git a/gsk/gl/gskgluniformstateprivate.h b/gsk/gl/gskgluniformstateprivate.h index af5c82ab07..3704be957c 100644 --- a/gsk/gl/gskgluniformstateprivate.h +++ b/gsk/gl/gskgluniformstateprivate.h @@ -18,8 +18,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef GSK_GL_UNIFORM_STATE_PRIVATE_H -#define GSK_GL_UNIFORM_STATE_PRIVATE_H +#pragma once #include "gskgltypesprivate.h" @@ -833,4 +832,3 @@ gsk_gl_uniform_state_apply (GskGLUniformState *state, G_END_DECLS -#endif /* GSK_GL_UNIFORM_STATE_PRIVATE_H */ diff --git a/gsk/gl/inlinearray.h b/gsk/gl/inlinearray.h index 98a9255c68..204513d23c 100644 --- a/gsk/gl/inlinearray.h +++ b/gsk/gl/inlinearray.h @@ -1,5 +1,4 @@ -#ifndef __INLINE_ARRAY_H__ -#define __INLINE_ARRAY_H__ +#pragma once #define DEFINE_INLINE_ARRAY(Type, prefix, ElementType) \ typedef struct _##Type { \ @@ -74,4 +73,3 @@ return element - &ar->items[0]; \ } -#endif /* __INLINE_ARRAY_H__ */ diff --git a/gsk/gl/ninesliceprivate.h b/gsk/gl/ninesliceprivate.h index 1ad905929d..7191ec5f13 100644 --- a/gsk/gl/ninesliceprivate.h +++ b/gsk/gl/ninesliceprivate.h @@ -19,8 +19,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ -#ifndef __NINE_SLICE_PRIVATE_H__ -#define __NINE_SLICE_PRIVATE_H__ +#pragma once #include "gskgltextureprivate.h" @@ -307,4 +306,3 @@ nine_slice_grow (GskGLTextureNineSlice *slices, G_END_DECLS -#endif /* __NINE_SLICE_PRIVATE_H__ */ diff --git a/gsk/gl/stb_rect_pack.h b/gsk/gl/stb_rect_pack.h index 3ecb1c2fa2..07d0fb79a5 100644 --- a/gsk/gl/stb_rect_pack.h +++ b/gsk/gl/stb_rect_pack.h @@ -54,8 +54,7 @@ // INCLUDE SECTION // -#ifndef STB_INCLUDE_STB_RECT_PACK_H -#define STB_INCLUDE_STB_RECT_PACK_H +#pragma once #define STB_RECT_PACK_VERSION 1 @@ -187,5 +186,4 @@ struct stbrp_context } #endif -#endif |