[gtksourceview/wip/chergert/gsv-gtk4: 1/3] build: switch to #pragma once
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 1/3] build: switch to #pragma once
- Date: Thu, 9 Jan 2020 00:11:39 +0000 (UTC)
commit f16537df99d1319e36769e277fca7bd2e93a4504
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 8 15:46:24 2020 -0800
build: switch to #pragma once
As we start moving to GTK 4, I really want GtkSourceView to take
some steps to modernize. We'll be requiring fairly recent
compilers simply with the dependency of GTK 4, so let's start
using the features provided to us.
gtksourceview/gtksource.h | 5 +----
gtksourceview/gtksourceautocleanups.h | 5 +----
gtksourceview/gtksourcebuffer-private.h | 5 +----
gtksourceview/gtksourcebuffer.h | 5 +----
gtksourceview/gtksourcebufferinputstream.h | 5 +----
gtksourceview/gtksourcebufferinternal.h | 5 +----
gtksourceview/gtksourcebufferoutputstream.h | 5 +----
gtksourceview/gtksourcecompletion-private.h | 6 +-----
gtksourceview/gtksourcecompletion.h | 5 +----
gtksourceview/gtksourcecompletioncontainer.h | 5 +----
gtksourceview/gtksourcecompletioncontext.h | 5 +----
gtksourceview/gtksourcecompletioninfo.h | 5 +----
gtksourceview/gtksourcecompletionitem.h | 5 +----
gtksourceview/gtksourcecompletionmodel.h | 5 +----
gtksourceview/gtksourcecompletionproposal.h | 5 +----
gtksourceview/gtksourcecompletionprovider.h | 5 +----
gtksourceview/gtksourcecontextengine.h | 5 +----
gtksourceview/gtksourceencoding-private.h | 5 +----
gtksourceview/gtksourceencoding.h | 5 +----
gtksourceview/gtksourceengine.h | 5 +----
gtksourceview/gtksourcefile.h | 5 +----
gtksourceview/gtksourcefileloader.h | 5 +----
gtksourceview/gtksourcefilesaver.h | 5 +----
gtksourceview/gtksourcegutter-private.h | 5 +----
gtksourceview/gtksourcegutter.h | 5 +----
gtksourceview/gtksourcegutterrenderer-private.h | 5 +----
gtksourceview/gtksourcegutterrenderer.h | 5 +----
gtksourceview/gtksourcegutterrendererlines.h | 5 +----
gtksourceview/gtksourcegutterrenderermarks.h | 5 +----
gtksourceview/gtksourcegutterrendererpixbuf.h | 5 +----
gtksourceview/gtksourcegutterrenderertext.h | 5 +----
gtksourceview/gtksourceinit.h | 5 +----
gtksourceview/gtksourceiter.h | 5 +----
gtksourceview/gtksourcelanguage-private.h | 6 +-----
gtksourceview/gtksourcelanguage.h | 6 +-----
gtksourceview/gtksourcelanguagemanager.h | 5 +----
gtksourceview/gtksourcemap.h | 5 +----
gtksourceview/gtksourcemark.h | 5 +----
gtksourceview/gtksourcemarkattributes.h | 5 +----
gtksourceview/gtksourcemarkssequence.h | 5 +----
gtksourceview/gtksourcepixbufhelper.h | 6 +-----
gtksourceview/gtksourceprintcompositor.h | 5 +----
gtksourceview/gtksourceregex.h | 5 +----
gtksourceview/gtksourceregion.h | 5 +----
gtksourceview/gtksourcesearchcontext.h | 5 +----
gtksourceview/gtksourcesearchsettings.h | 5 +----
gtksourceview/gtksourcespacedrawer-private.h | 5 +----
gtksourceview/gtksourcespacedrawer.h | 5 +----
gtksourceview/gtksourcestyle-private.h | 5 +----
gtksourceview/gtksourcestyle.h | 5 +----
gtksourceview/gtksourcestylescheme.h | 5 +----
gtksourceview/gtksourcestyleschemechooser.h | 5 +----
gtksourceview/gtksourcestyleschemechooserbutton.h | 5 +----
gtksourceview/gtksourcestyleschemechooserwidget.h | 5 +----
gtksourceview/gtksourcestyleschememanager.h | 5 +----
gtksourceview/gtksourcetag.h | 5 +----
gtksourceview/gtksourcetypes-private.h | 5 +----
gtksourceview/gtksourcetypes.h | 5 +----
gtksourceview/gtksourceundomanager.h | 5 +----
gtksourceview/gtksourceundomanagerdefault.h | 5 +----
gtksourceview/gtksourceutils-private.h | 5 +----
gtksourceview/gtksourceutils.h | 5 +----
gtksourceview/gtksourceview.h | 5 +----
63 files changed, 63 insertions(+), 256 deletions(-)
---
diff --git a/gtksourceview/gtksource.h b/gtksourceview/gtksource.h
index e1ae114b..fcd5a6fc 100644
--- a/gtksourceview/gtksource.h
+++ b/gtksourceview/gtksource.h
@@ -15,8 +15,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_H
-#define GTK_SOURCE_H
+#pragma once
#define GTK_SOURCE_H_INSIDE
@@ -63,5 +62,3 @@
#include <gtksourceview/gtksourceautocleanups.h>
#undef GTK_SOURCE_H_INSIDE
-
-#endif /* GTK_SOURCE_H */
diff --git a/gtksourceview/gtksourceautocleanups.h b/gtksourceview/gtksourceautocleanups.h
index 9929368a..550fa1c4 100644
--- a/gtksourceview/gtksourceautocleanups.h
+++ b/gtksourceview/gtksourceautocleanups.h
@@ -15,8 +15,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_AUTOCLEANUPS_H
-#define GTK_SOURCE_AUTOCLEANUPS_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -59,5 +58,3 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSourceView, g_object_unref)
#endif /* __GI_SCANNER__ */
G_END_DECLS
-
-#endif /* GTK_SOURCE_AUTOCLEANUPS_H */
diff --git a/gtksourceview/gtksourcebuffer-private.h b/gtksourceview/gtksourcebuffer-private.h
index 5fcf12b9..8bbb83bc 100644
--- a/gtksourceview/gtksourcebuffer-private.h
+++ b/gtksourceview/gtksourcebuffer-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_BUFFER_PRIVATE_H
-#define GTK_SOURCE_BUFFER_PRIVATE_H
+#pragma once
#include <gtk/gtk.h>
@@ -89,5 +88,3 @@ GTK_SOURCE_INTERNAL
gboolean _gtk_source_buffer_has_spaces_tag (GtkSourceBuffer *buffer);
G_END_DECLS
-
-#endif /* GTK_SOURCE_BUFFER_PRIVATE_H */
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index 09143a87..b6b147ff 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -22,8 +22,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_BUFFER_H
-#define GTK_SOURCE_BUFFER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -275,5 +274,3 @@ GtkTextTag *gtk_source_buffer_create_source_tag
(GtkSourceBuffer *buff
...);
G_END_DECLS
-
-#endif /* GTK_SOURCE_BUFFER_H */
diff --git a/gtksourceview/gtksourcebufferinputstream.h b/gtksourceview/gtksourcebufferinputstream.h
index f98cb64c..5f5054a3 100644
--- a/gtksourceview/gtksourcebufferinputstream.h
+++ b/gtksourceview/gtksourcebufferinputstream.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_BUFFER_INPUT_STREAM_H
-#define GTK_SOURCE_BUFFER_INPUT_STREAM_H
+#pragma once
#include <gio/gio.h>
#include <gtk/gtk.h>
@@ -68,5 +67,3 @@ GTK_SOURCE_INTERNAL
gsize _gtk_source_buffer_input_stream_tell (GtkSourceBufferInputStream *stream);
G_END_DECLS
-
-#endif /* GTK_SOURCE_BUFFER_INPUT_STREAM_H */
diff --git a/gtksourceview/gtksourcebufferinternal.h b/gtksourceview/gtksourcebufferinternal.h
index 856d320e..9cc9762c 100644
--- a/gtksourceview/gtksourcebufferinternal.h
+++ b/gtksourceview/gtksourcebufferinternal.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_BUFFER_INTERNAL_H
-#define GTK_SOURCE_BUFFER_INTERNAL_H
+#pragma once
#include <glib-object.h>
#include "gtksourcetypes.h"
@@ -43,5 +42,3 @@ void _gtk_source_buffer_internal_emit_search_start
(GtkSourceBufferInternal *b
GtkSourceSearchContext
*search_context);
G_END_DECLS
-
-#endif /* GTK_SOURCE_BUFFER_INTERNAL_H */
diff --git a/gtksourceview/gtksourcebufferoutputstream.h b/gtksourceview/gtksourcebufferoutputstream.h
index f1a16fd9..f4c4df96 100644
--- a/gtksourceview/gtksourcebufferoutputstream.h
+++ b/gtksourceview/gtksourcebufferoutputstream.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_BUFFER_OUTPUT_STREAM_H
-#define GTK_SOURCE_BUFFER_OUTPUT_STREAM_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -73,5 +72,3 @@ guint gtk_source_buffer_output_stream_get_num_fallbacks
(GtkSourceBufferOutputStream *stream);
G_END_DECLS
-
-#endif /* GTK_SOURCE_BUFFER_OUTPUT_STREAM_H */
diff --git a/gtksourceview/gtksourcecompletion-private.h b/gtksourceview/gtksourcecompletion-private.h
index 05fafb63..ab276d32 100644
--- a/gtksourceview/gtksourcecompletion-private.h
+++ b/gtksourceview/gtksourcecompletion-private.h
@@ -18,14 +18,10 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_PIVATE_H
-#define GTK_SOURCE_COMPLETION_PIVATE_H
+#pragma once
#include <gtk/gtk.h>
#include <gtksourceview/gtksourcetypes.h>
G_GNUC_INTERNAL
GtkSourceCompletion *gtk_source_completion_new (GtkSourceView *source_view);
-
-#endif /* GTK_SOURCE_COMPLETION_PIVATE_H */
-
diff --git a/gtksourceview/gtksourcecompletion.h b/gtksourceview/gtksourcecompletion.h
index a5dfd924..fef8967d 100644
--- a/gtksourceview/gtksourcecompletion.h
+++ b/gtksourceview/gtksourcecompletion.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_H
-#define GTK_SOURCE_COMPLETION_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -152,5 +151,3 @@ void _gtk_source_completion_add_proposals (GtkSourceCompletion
*com
GList *proposals,
gboolean finished);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_H */
diff --git a/gtksourceview/gtksourcecompletioncontainer.h b/gtksourceview/gtksourcecompletioncontainer.h
index 7f262cc1..657f9e58 100644
--- a/gtksourceview/gtksourcecompletioncontainer.h
+++ b/gtksourceview/gtksourcecompletioncontainer.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_CONTAINER_H
-#define GTK_SOURCE_COMPLETION_CONTAINER_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes-private.h"
@@ -53,5 +52,3 @@ GtkSourceCompletionContainer *
_gtk_source_completion_container_new (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_CONTAINER_H */
diff --git a/gtksourceview/gtksourcecompletioncontext.h b/gtksourceview/gtksourcecompletioncontext.h
index c4d146b7..03b37456 100644
--- a/gtksourceview/gtksourcecompletioncontext.h
+++ b/gtksourceview/gtksourcecompletioncontext.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_CONTEXT_H
-#define GTK_SOURCE_COMPLETION_CONTEXT_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -98,5 +97,3 @@ G_GNUC_INTERNAL
void _gtk_source_completion_context_cancel (GtkSourceCompletionContext *context);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_CONTEXT_H */
diff --git a/gtksourceview/gtksourcecompletioninfo.h b/gtksourceview/gtksourcecompletioninfo.h
index bbd2759f..151c0b69 100644
--- a/gtksourceview/gtksourcecompletioninfo.h
+++ b/gtksourceview/gtksourcecompletioninfo.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_INFO_H
-#define GTK_SOURCE_COMPLETION_INFO_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -73,5 +72,3 @@ void _gtk_source_completion_info_set_xoffset (GtkSourceCompletionInfo
*info,
gint xoffset);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_INFO_H */
diff --git a/gtksourceview/gtksourcecompletionitem.h b/gtksourceview/gtksourcecompletionitem.h
index 0f9e5b9c..0f296af2 100644
--- a/gtksourceview/gtksourcecompletionitem.h
+++ b/gtksourceview/gtksourcecompletionitem.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_ITEM_H
-#define GTK_SOURCE_COMPLETION_ITEM_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -88,5 +87,3 @@ void gtk_source_completion_item_set_info
(GtkSourceCompletionItem *item,
const gchar *info);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_ITEM_H */
diff --git a/gtksourceview/gtksourcecompletionmodel.h b/gtksourceview/gtksourcecompletionmodel.h
index 85004f00..fac3ab47 100644
--- a/gtksourceview/gtksourcecompletionmodel.h
+++ b/gtksourceview/gtksourcecompletionmodel.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_MODEL_H
-#define GTK_SOURCE_COMPLETION_MODEL_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -125,5 +124,3 @@ gboolean gtk_source_completion_model_iter_equal
(GtkSourceCompletionModel *
GtkTreeIter *iter2);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_MODEL_H */
diff --git a/gtksourceview/gtksourcecompletionproposal.h b/gtksourceview/gtksourcecompletionproposal.h
index 82858798..9a608593 100644
--- a/gtksourceview/gtksourcecompletionproposal.h
+++ b/gtksourceview/gtksourcecompletionproposal.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_PROPOSAL_H
-#define GTK_SOURCE_COMPLETION_PROPOSAL_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -122,5 +121,3 @@ gboolean gtk_source_completion_proposal_equal
(GtkSourceCompletionProposal *p
GtkSourceCompletionProposal *other);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_PROPOSAL_H */
diff --git a/gtksourceview/gtksourcecompletionprovider.h b/gtksourceview/gtksourcecompletionprovider.h
index 0560e720..66bf311f 100644
--- a/gtksourceview/gtksourcecompletionprovider.h
+++ b/gtksourceview/gtksourcecompletionprovider.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_COMPLETION_PROVIDER_H
-#define GTK_SOURCE_COMPLETION_PROVIDER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -162,5 +161,3 @@ GTK_SOURCE_AVAILABLE_IN_ALL
gint gtk_source_completion_provider_get_priority (GtkSourceCompletionProvider *provider);
G_END_DECLS
-
-#endif /* GTK_SOURCE_COMPLETION_PROVIDER_H */
diff --git a/gtksourceview/gtksourcecontextengine.h b/gtksourceview/gtksourcecontextengine.h
index 147e2ba3..7ada68bb 100644
--- a/gtksourceview/gtksourcecontextengine.h
+++ b/gtksourceview/gtksourcecontextengine.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_CONTEXT_ENGINE_H
-#define GTK_SOURCE_CONTEXT_ENGINE_H
+#pragma once
#include "gtksourceengine.h"
#include "gtksourcetypes.h"
@@ -140,5 +139,3 @@ void _gtk_source_context_data_set_escape_char
(GtkSourceContextData *data,
gunichar esc_char);
G_END_DECLS
-
-#endif /* GTK_SOURCE_CONTEXT_ENGINE_H */
diff --git a/gtksourceview/gtksourceencoding-private.h b/gtksourceview/gtksourceencoding-private.h
index cd9e73db..0503ab09 100644
--- a/gtksourceview/gtksourceencoding-private.h
+++ b/gtksourceview/gtksourceencoding-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_ENCODING_PRIVATE_H
-#define GTK_SOURCE_ENCODING_PRIVATE_H
+#pragma once
#include <glib.h>
#include "gtksourcetypes-private.h"
@@ -47,5 +46,3 @@ GSList * _gtk_source_encoding_remove_duplicates (GSList
*
GtkSourceEncodingDuplicates
removal_type);
G_END_DECLS
-
-#endif /* GTK_SOURCE_ENCODING_PRIVATE_H */
diff --git a/gtksourceview/gtksourceencoding.h b/gtksourceview/gtksourceencoding.h
index 25fb9371..ede28c03 100644
--- a/gtksourceview/gtksourceencoding.h
+++ b/gtksourceview/gtksourceencoding.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_ENCODING_H
-#define GTK_SOURCE_ENCODING_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -70,5 +69,3 @@ GTK_SOURCE_AVAILABLE_IN_3_14
void gtk_source_encoding_free (GtkSourceEncoding *enc);
G_END_DECLS
-
-#endif /* GTK_SOURCE_ENCODING_H */
diff --git a/gtksourceview/gtksourceengine.h b/gtksourceview/gtksourceengine.h
index c6ecb850..db416446 100644
--- a/gtksourceview/gtksourceengine.h
+++ b/gtksourceview/gtksourceengine.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_ENGINE_H
-#define GTK_SOURCE_ENGINE_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -85,5 +84,3 @@ void _gtk_source_engine_set_style_scheme (GtkSourceEngine *engine,
GtkSourceStyleScheme *scheme);
G_END_DECLS
-
-#endif /* GTK_SOURCE_ENGINE_H */
diff --git a/gtksourceview/gtksourcefile.h b/gtksourceview/gtksourcefile.h
index 0e6b0163..a29dfc55 100644
--- a/gtksourceview/gtksourcefile.h
+++ b/gtksourceview/gtksourcefile.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_FILE_H
-#define GTK_SOURCE_FILE_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -193,5 +192,3 @@ void _gtk_source_file_set_readonly (GtkSourceFile *file,
gboolean readonly);
G_END_DECLS
-
-#endif /* GTK_SOURCE_FILE_H */
diff --git a/gtksourceview/gtksourcefileloader.h b/gtksourceview/gtksourcefileloader.h
index 70fff263..9778bd66 100644
--- a/gtksourceview/gtksourcefileloader.h
+++ b/gtksourceview/gtksourcefileloader.h
@@ -21,8 +21,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_FILE_LOADER_H
-#define GTK_SOURCE_FILE_LOADER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -136,5 +135,3 @@ GtkSourceCompressionType gtk_source_file_loader_get_compression_type
(GtkSourceFileLoader *loader);
G_END_DECLS
-
-#endif /* GTK_SOURCE_FILE_LOADER_H */
diff --git a/gtksourceview/gtksourcefilesaver.h b/gtksourceview/gtksourcefilesaver.h
index 5bb014e4..2cd1b05b 100644
--- a/gtksourceview/gtksourcefilesaver.h
+++ b/gtksourceview/gtksourcefilesaver.h
@@ -21,8 +21,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_FILE_SAVER_H
-#define GTK_SOURCE_FILE_SAVER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -164,5 +163,3 @@ gboolean gtk_source_file_saver_save_finish (GtkSourceFileSaver
*saver,
GError **error);
G_END_DECLS
-
-#endif /* GTK_SOURCE_FILE_SAVER_H */
diff --git a/gtksourceview/gtksourcegutter-private.h b/gtksourceview/gtksourcegutter-private.h
index 46136f84..f823d38e 100644
--- a/gtksourceview/gtksourcegutter-private.h
+++ b/gtksourceview/gtksourcegutter-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_PRIVATE_H
-#define GTK_SOURCE_GUTTER_PRIVATE_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -37,5 +36,3 @@ void _gtk_source_gutter_draw (GtkSourceGutter *gutter,
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_PRIVATE_H */
diff --git a/gtksourceview/gtksourcegutter.h b/gtksourceview/gtksourcegutter.h
index d24fcfc4..2cee6d6b 100644
--- a/gtksourceview/gtksourcegutter.h
+++ b/gtksourceview/gtksourcegutter.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_H
-#define GTK_SOURCE_GUTTER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -89,5 +88,3 @@ GtkSourceGutterRenderer *
gint y);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_H */
diff --git a/gtksourceview/gtksourcegutterrenderer-private.h b/gtksourceview/gtksourcegutterrenderer-private.h
index df024bf7..af8bcf66 100644
--- a/gtksourceview/gtksourcegutterrenderer-private.h
+++ b/gtksourceview/gtksourcegutterrenderer-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_RENDERER_PRIVATE_H
-#define GTK_SOURCE_GUTTER_RENDERER_PRIVATE_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -32,5 +31,3 @@ void _gtk_source_gutter_renderer_set_view (GtkSourceGutterRenderer *rend
GtkTextWindowType window_type);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_RENDERER_PRIVATE_H */
diff --git a/gtksourceview/gtksourcegutterrenderer.h b/gtksourceview/gtksourcegutterrenderer.h
index 4f0621c4..16334b6f 100644
--- a/gtksourceview/gtksourcegutterrenderer.h
+++ b/gtksourceview/gtksourcegutterrenderer.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_RENDERER_H
-#define GTK_SOURCE_GUTTER_RENDERER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -268,5 +267,3 @@ void gtk_source_gutter_renderer_query_data (GtkSourceGutterRenderer
GtkSourceGutterRendererState state);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_RENDERER_H */
diff --git a/gtksourceview/gtksourcegutterrendererlines.h b/gtksourceview/gtksourcegutterrendererlines.h
index 2fc8e22a..f1467e78 100644
--- a/gtksourceview/gtksourcegutterrendererlines.h
+++ b/gtksourceview/gtksourcegutterrendererlines.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_RENDERER_LINES_H
-#define GTK_SOURCE_GUTTER_RENDERER_LINES_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -64,5 +63,3 @@ G_GNUC_INTERNAL
GtkSourceGutterRenderer *gtk_source_gutter_renderer_lines_new (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_RENDERER_LINES_H */
diff --git a/gtksourceview/gtksourcegutterrenderermarks.h b/gtksourceview/gtksourcegutterrenderermarks.h
index e807f6c8..4be6a5d0 100644
--- a/gtksourceview/gtksourcegutterrenderermarks.h
+++ b/gtksourceview/gtksourcegutterrenderermarks.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_RENDERER_MARKS_H
-#define GTK_SOURCE_GUTTER_RENDERER_MARKS_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -55,5 +54,3 @@ G_GNUC_INTERNAL
GtkSourceGutterRenderer *gtk_source_gutter_renderer_marks_new (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_RENDERER_MARKS_H */
diff --git a/gtksourceview/gtksourcegutterrendererpixbuf.h b/gtksourceview/gtksourcegutterrendererpixbuf.h
index 0a7ec487..d5db0cce 100644
--- a/gtksourceview/gtksourcegutterrendererpixbuf.h
+++ b/gtksourceview/gtksourcegutterrendererpixbuf.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_RENDERER_PIXBUF_H
-#define GTK_SOURCE_GUTTER_RENDERER_PIXBUF_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -87,5 +86,3 @@ GTK_SOURCE_AVAILABLE_IN_ALL
const gchar *gtk_source_gutter_renderer_pixbuf_get_icon_name (GtkSourceGutterRendererPixbuf *renderer);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_RENDERER_TEXT_H */
diff --git a/gtksourceview/gtksourcegutterrenderertext.h b/gtksourceview/gtksourcegutterrenderertext.h
index 4767a24d..c1167621 100644
--- a/gtksourceview/gtksourcegutterrenderertext.h
+++ b/gtksourceview/gtksourcegutterrenderertext.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_GUTTER_RENDERER_TEXT_H
-#define GTK_SOURCE_GUTTER_RENDERER_TEXT_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -88,5 +87,3 @@ void gtk_source_gutter_renderer_text_measure_markup (GtkSourceGutterRendererText
gint *height);
G_END_DECLS
-
-#endif /* GTK_SOURCE_GUTTER_RENDERER_TEXT_H */
diff --git a/gtksourceview/gtksourceinit.h b/gtksourceview/gtksourceinit.h
index 4047d1b3..f0c46a3b 100644
--- a/gtksourceview/gtksourceinit.h
+++ b/gtksourceview/gtksourceinit.h
@@ -17,8 +17,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_INIT_H
-#define GTK_SOURCE_INIT_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -36,5 +35,3 @@ GTK_SOURCE_AVAILABLE_IN_4_0
void gtk_source_finalize (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_INIT_H */
diff --git a/gtksourceview/gtksourceiter.h b/gtksourceview/gtksourceiter.h
index d4bacf00..75b918c7 100644
--- a/gtksourceview/gtksourceiter.h
+++ b/gtksourceview/gtksourceiter.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_ITER_H
-#define GTK_SOURCE_ITER_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes-private.h"
@@ -93,5 +92,3 @@ GTK_SOURCE_INTERNAL
gboolean _gtk_source_iter_inside_word (const GtkTextIter *iter);
G_END_DECLS
-
-#endif /* GTK_SOURCE_ITER_H */
diff --git a/gtksourceview/gtksourcelanguage-private.h b/gtksourceview/gtksourcelanguage-private.h
index 80bf7eac..e38bfda6 100644
--- a/gtksourceview/gtksourcelanguage-private.h
+++ b/gtksourceview/gtksourcelanguage-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_LANGUAGE_PRIVATE_H
-#define GTK_SOURCE_LANGUAGE_PRIVATE_H
+#pragma once
#include <glib.h>
#include "gtksourcecontextengine.h"
@@ -98,6 +97,3 @@ G_GNUC_INTERNAL
void _gtk_source_style_info_free (GtkSourceStyleInfo *info);
G_END_DECLS
-
-#endif /* GTK_SOURCE_LANGUAGE_PRIVATE_H */
-
diff --git a/gtksourceview/gtksourcelanguage.h b/gtksourceview/gtksourcelanguage.h
index c27c9b4d..59d6f425 100644
--- a/gtksourceview/gtksourcelanguage.h
+++ b/gtksourceview/gtksourcelanguage.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_LANGUAGE_H
-#define GTK_SOURCE_LANGUAGE_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -93,6 +92,3 @@ const gchar *gtk_source_language_get_style_fallback (GtkSourceLanguage *language
const gchar *style_id);
G_END_DECLS
-
-#endif /* GTK_SOURCE_LANGUAGE_H */
-
diff --git a/gtksourceview/gtksourcelanguagemanager.h b/gtksourceview/gtksourcelanguagemanager.h
index 219b165a..a145544c 100644
--- a/gtksourceview/gtksourcelanguagemanager.h
+++ b/gtksourceview/gtksourcelanguagemanager.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_LANGUAGE_MANAGER_H
-#define GTK_SOURCE_LANGUAGE_MANAGER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -88,5 +87,3 @@ G_GNUC_INTERNAL
GtkSourceLanguageManager *_gtk_source_language_manager_peek_default (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_LANGUAGE_MANAGER_H */
diff --git a/gtksourceview/gtksourcemap.h b/gtksourceview/gtksourcemap.h
index 99cd9608..532b0cb8 100644
--- a/gtksourceview/gtksourcemap.h
+++ b/gtksourceview/gtksourcemap.h
@@ -17,8 +17,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_MAP_H
-#define GTK_SOURCE_MAP_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -66,5 +65,3 @@ GTK_SOURCE_AVAILABLE_IN_3_18
GtkSourceView *gtk_source_map_get_view (GtkSourceMap *map);
G_END_DECLS
-
-#endif /* GTK_SOURCE_MAP_H */
diff --git a/gtksourceview/gtksourcemark.h b/gtksourceview/gtksourcemark.h
index 60608e63..2b44c8c2 100644
--- a/gtksourceview/gtksourcemark.h
+++ b/gtksourceview/gtksourcemark.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTKSOURCEMARK_H
-#define GTKSOURCEMARK_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -75,5 +74,3 @@ GtkSourceMark *gtk_source_mark_prev (GtkSourceMark *mark,
const gchar *category);
G_END_DECLS
-
-#endif /* GTKSOURCEMARK_H */
diff --git a/gtksourceview/gtksourcemarkattributes.h b/gtksourceview/gtksourcemarkattributes.h
index 86891309..1a9a58af 100644
--- a/gtksourceview/gtksourcemarkattributes.h
+++ b/gtksourceview/gtksourcemarkattributes.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_MARK_ATTRIBUTES_H
-#define GTK_SOURCE_MARK_ATTRIBUTES_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -108,5 +107,3 @@ gchar *gtk_source_mark_attributes_get_tooltip_markup (GtkSourceMarkAt
GtkSourceMark *mark);
G_END_DECLS
-
-#endif /* GTK_SOURCE_MARK_ATTRIBUTES_H */
diff --git a/gtksourceview/gtksourcemarkssequence.h b/gtksourceview/gtksourcemarkssequence.h
index 57293e63..0c498ff1 100644
--- a/gtksourceview/gtksourcemarkssequence.h
+++ b/gtksourceview/gtksourcemarkssequence.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_MARKS_SEQUENCE_H
-#define GTK_SOURCE_MARKS_SEQUENCE_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes-private.h"
@@ -91,5 +90,3 @@ GSList *_gtk_source_marks_sequence_get_marks_in_range
(GtkSourceMarksSequence
const GtkTextIter *iter2);
G_END_DECLS
-
-#endif /* GTK_SOURCE_MARKS_SEQUENCE_H */
diff --git a/gtksourceview/gtksourcepixbufhelper.h b/gtksourceview/gtksourcepixbufhelper.h
index d37338bd..aea01860 100644
--- a/gtksourceview/gtksourcepixbufhelper.h
+++ b/gtksourceview/gtksourcepixbufhelper.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_PIXBUF_HELPER_H
-#define GTK_SOURCE_PIXBUF_HELPER_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes-private.h"
@@ -55,6 +54,3 @@ G_GNUC_INTERNAL
GdkPixbuf *gtk_source_pixbuf_helper_render (GtkSourcePixbufHelper *helper,
GtkWidget *widget,
gint size);
-
-#endif /* GTK_SOURCE_PIXBUF_HELPER_H */
-
diff --git a/gtksourceview/gtksourceprintcompositor.h b/gtksourceview/gtksourceprintcompositor.h
index f29db3cd..f070eb51 100644
--- a/gtksourceview/gtksourceprintcompositor.h
+++ b/gtksourceview/gtksourceprintcompositor.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_PRINT_COMPOSITOR_H
-#define GTK_SOURCE_PRINT_COMPOSITOR_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -219,5 +218,3 @@ void gtk_source_print_compositor_draw_page
(GtkSourcePrintCompositor *compo
gint page_nr);
G_END_DECLS
-
-#endif /* GTK_SOURCE_PRINT_COMPOSITOR_H */
diff --git a/gtksourceview/gtksourceregex.h b/gtksourceview/gtksourceregex.h
index edf9d6b7..22fbf1c0 100644
--- a/gtksourceview/gtksourceregex.h
+++ b/gtksourceview/gtksourceregex.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_REGEX_H
-#define GTK_SOURCE_REGEX_H
+#pragma once
#include <glib.h>
#include "gtksourcetypes-private.h"
@@ -80,5 +79,3 @@ GTK_SOURCE_INTERNAL
const gchar *_gtk_source_regex_get_pattern (GtkSourceRegex *regex);
G_END_DECLS
-
-#endif /* GTK_SOURCE_REGEX_H */
diff --git a/gtksourceview/gtksourceregion.h b/gtksourceview/gtksourceregion.h
index ad9a80f4..db1d00bd 100644
--- a/gtksourceview/gtksourceregion.h
+++ b/gtksourceview/gtksourceregion.h
@@ -19,8 +19,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_REGION_H
-#define GTK_SOURCE_REGION_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -123,5 +122,3 @@ GTK_SOURCE_AVAILABLE_IN_3_22
gchar * gtk_source_region_to_string (GtkSourceRegion *region);
G_END_DECLS
-
-#endif /* GTK_SOURCE_REGION_H */
diff --git a/gtksourceview/gtksourcesearchcontext.h b/gtksourceview/gtksourcesearchcontext.h
index fd489036..86797b5e 100644
--- a/gtksourceview/gtksourcesearchcontext.h
+++ b/gtksourceview/gtksourcesearchcontext.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_SEARCH_CONTEXT_H
-#define GTK_SOURCE_SEARCH_CONTEXT_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -157,5 +156,3 @@ void _gtk_source_search_context_update_highlight
(GtkSourceSearchContext *s
gboolean
synchronous);
G_END_DECLS
-
-#endif /* GTK_SOURCE_SEARCH_CONTEXT_H */
diff --git a/gtksourceview/gtksourcesearchsettings.h b/gtksourceview/gtksourcesearchsettings.h
index b6140c02..a20571d2 100644
--- a/gtksourceview/gtksourcesearchsettings.h
+++ b/gtksourceview/gtksourcesearchsettings.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_SEARCH_SETTINGS_H
-#define GTK_SOURCE_SEARCH_SETTINGS_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -96,5 +95,3 @@ GTK_SOURCE_AVAILABLE_IN_ALL
gboolean gtk_source_search_settings_get_regex_enabled (GtkSourceSearchSettings
*settings);
G_END_DECLS
-
-#endif /* GTK_SOURCE_SEARCH_SETTINGS_H */
diff --git a/gtksourceview/gtksourcespacedrawer-private.h b/gtksourceview/gtksourcespacedrawer-private.h
index 3b6060fa..6480d757 100644
--- a/gtksourceview/gtksourcespacedrawer-private.h
+++ b/gtksourceview/gtksourcespacedrawer-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_SPACE_DRAWER_PRIVATE_H
-#define GTK_SOURCE_SPACE_DRAWER_PRIVATE_H
+#pragma once
#include <gtk/gtk.h>
#include "gtksourcetypes.h"
@@ -37,5 +36,3 @@ void _gtk_source_space_drawer_draw (GtkSourceSpaceDrawer
*drawer,
cairo_t *cr);
G_END_DECLS
-
-#endif /* GTK_SOURCE_SPACE_DRAWER_PRIVATE_H */
diff --git a/gtksourceview/gtksourcespacedrawer.h b/gtksourceview/gtksourcespacedrawer.h
index b06f5d2d..94095e3b 100644
--- a/gtksourceview/gtksourcespacedrawer.h
+++ b/gtksourceview/gtksourcespacedrawer.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_SPACE_DRAWER_H
-#define GTK_SOURCE_SPACE_DRAWER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -140,5 +139,3 @@ void gtk_source_space_drawer_bind_matrix_setting
(GtkSourceSpaceDrawer *drawer
GSettingsBindFlags flags);
G_END_DECLS
-
-#endif /* GTK_SOURCE_SPACE_DRAWER_H */
diff --git a/gtksourceview/gtksourcestyle-private.h b/gtksourceview/gtksourcestyle-private.h
index 7ae94e08..41f37dcc 100644
--- a/gtksourceview/gtksourcestyle-private.h
+++ b/gtksourceview/gtksourcestyle-private.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_PRIVATE_H
-#define GTK_SOURCE_STYLE_PRIVATE_H
+#pragma once
#include <gtk/gtk.h>
@@ -67,5 +66,3 @@ struct _GtkSourceStyle
};
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_PRIVATE_H */
diff --git a/gtksourceview/gtksourcestyle.h b/gtksourceview/gtksourcestyle.h
index b60d2e6d..ed816091 100644
--- a/gtksourceview/gtksourcestyle.h
+++ b/gtksourceview/gtksourcestyle.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_H
-#define GTK_SOURCE_STYLE_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -50,5 +49,3 @@ void gtk_source_style_apply (const GtkSourceStyle *style,
GtkTextTag *tag);
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_H */
diff --git a/gtksourceview/gtksourcestylescheme.h b/gtksourceview/gtksourcestylescheme.h
index 177878c6..44623eb3 100644
--- a/gtksourceview/gtksourcestylescheme.h
+++ b/gtksourceview/gtksourcestylescheme.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_SCHEME_H
-#define GTK_SOURCE_STYLE_SCHEME_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -115,5 +114,3 @@ gboolean _gtk_source_style_scheme_get_background_pattern_color
(GtkSourceStyle
GdkRGBA *color);
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_SCHEME_H */
diff --git a/gtksourceview/gtksourcestyleschemechooser.h b/gtksourceview/gtksourcestyleschemechooser.h
index c32d4175..255db641 100644
--- a/gtksourceview/gtksourcestyleschemechooser.h
+++ b/gtksourceview/gtksourcestyleschemechooser.h
@@ -18,8 +18,7 @@
* along with GtkSourceView. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_SCHEME_CHOOSER_H
-#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -62,5 +61,3 @@ void gtk_source_style_scheme_chooser_set_style_scheme
GtkSourceStyleScheme
*scheme);
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_SCHEME_CHOOSER_H */
diff --git a/gtksourceview/gtksourcestyleschemechooserbutton.h
b/gtksourceview/gtksourcestyleschemechooserbutton.h
index 06fe648a..4d58edd8 100644
--- a/gtksourceview/gtksourcestyleschemechooserbutton.h
+++ b/gtksourceview/gtksourcestyleschemechooserbutton.h
@@ -19,8 +19,7 @@
* along with GtkSourceView. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H
-#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -60,5 +59,3 @@ GTK_SOURCE_AVAILABLE_IN_3_16
GtkWidget *gtk_source_style_scheme_chooser_button_new (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON_H */
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.h
b/gtksourceview/gtksourcestyleschemechooserwidget.h
index 3e4242bd..67e5e95d 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.h
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.h
@@ -19,8 +19,7 @@
* along with GtkSourceView. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H
-#define GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -60,5 +59,3 @@ GTK_SOURCE_AVAILABLE_IN_3_16
GtkWidget *gtk_source_style_scheme_chooser_widget_new (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET_H */
diff --git a/gtksourceview/gtksourcestyleschememanager.h b/gtksourceview/gtksourcestyleschememanager.h
index c7795b4e..e97077d0 100644
--- a/gtksourceview/gtksourcestyleschememanager.h
+++ b/gtksourceview/gtksourcestyleschememanager.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_STYLE_SCHEME_MANAGER_H
-#define GTK_SOURCE_STYLE_SCHEME_MANAGER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -96,5 +95,3 @@ GtkSourceStyleSchemeManager *
_gtk_source_style_scheme_manager_peek_default (void);
G_END_DECLS
-
-#endif /* GTK_SOURCE_STYLE_SCHEME_MANAGER_H */
diff --git a/gtksourceview/gtksourcetag.h b/gtksourceview/gtksourcetag.h
index 73857682..2164eb1f 100644
--- a/gtksourceview/gtksourcetag.h
+++ b/gtksourceview/gtksourcetag.h
@@ -20,8 +20,7 @@
* Author: Sébastien Wilmet
*/
-#ifndef GTK_SOURCE_TAG_H
-#define GTK_SOURCE_TAG_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -50,5 +49,3 @@ GTK_SOURCE_AVAILABLE_IN_3_20
GtkTextTag * gtk_source_tag_new (const gchar *name);
G_END_DECLS
-
-#endif /* GTK_SOURCE_TAG_H */
diff --git a/gtksourceview/gtksourcetypes-private.h b/gtksourceview/gtksourcetypes-private.h
index fbed7d95..74a21847 100644
--- a/gtksourceview/gtksourcetypes-private.h
+++ b/gtksourceview/gtksourcetypes-private.h
@@ -17,8 +17,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_TYPES_PRIVATE_H
-#define GTK_SOURCE_TYPES_PRIVATE_H
+#pragma once
#include <glib.h>
@@ -45,5 +44,3 @@ typedef struct _GtkSourceUndoManagerDefault GtkSourceUndoManagerDefault;
#endif
G_END_DECLS
-
-#endif /* GTK_SOURCE_TYPES_PRIVATE_H */
diff --git a/gtksourceview/gtksourcetypes.h b/gtksourceview/gtksourcetypes.h
index 57c28160..b0bd0d38 100644
--- a/gtksourceview/gtksourcetypes.h
+++ b/gtksourceview/gtksourcetypes.h
@@ -17,8 +17,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_TYPES_H
-#define GTK_SOURCE_TYPES_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -69,5 +68,3 @@ typedef struct _GtkSourceUndoManager GtkSourceUndoManager;
typedef struct _GtkSourceView GtkSourceView;
G_END_DECLS
-
-#endif /* GTK_SOURCE_TYPES_H */
diff --git a/gtksourceview/gtksourceundomanager.h b/gtksourceview/gtksourceundomanager.h
index d7ae23f7..90d978de 100644
--- a/gtksourceview/gtksourceundomanager.h
+++ b/gtksourceview/gtksourceundomanager.h
@@ -20,8 +20,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_UNDO_MANAGER_H
-#define GTK_SOURCE_UNDO_MANAGER_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -86,5 +85,3 @@ GTK_SOURCE_AVAILABLE_IN_ALL
void gtk_source_undo_manager_can_redo_changed (GtkSourceUndoManager *manager);
G_END_DECLS
-
-#endif /* GTK_SOURCE_UNDO_MANAGER_H */
diff --git a/gtksourceview/gtksourceundomanagerdefault.h b/gtksourceview/gtksourceundomanagerdefault.h
index 6010bf2b..1897c33b 100644
--- a/gtksourceview/gtksourceundomanagerdefault.h
+++ b/gtksourceview/gtksourceundomanagerdefault.h
@@ -20,8 +20,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_UNDO_MANAGER_DEFAULT_H
-#define GTK_SOURCE_UNDO_MANAGER_DEFAULT_H
+#pragma once
#include <glib-object.h>
#include "gtksourcetypes-private.h"
@@ -58,5 +57,3 @@ void gtk_source_undo_manager_default_set_max_undo_levels (GtkSourceUndoManagerDe
gint max_undo_levels);
G_END_DECLS
-
-#endif /* GTK_SOURCE_UNDO_MANAGER_DEFAULT_H */
diff --git a/gtksourceview/gtksourceutils-private.h b/gtksourceview/gtksourceutils-private.h
index 217c38cd..bd8688a3 100644
--- a/gtksourceview/gtksourceutils-private.h
+++ b/gtksourceview/gtksourceutils-private.h
@@ -20,8 +20,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_UTILS_PRIVATE_H
-#define GTK_SOURCE_UTILS_PRIVATE_H
+#pragma once
#include <glib.h>
#include <pango/pango.h>
@@ -52,5 +51,3 @@ gchar * _gtk_source_utils_dgettext (const gchar *domain,
const gchar *msgid) G_GNUC_FORMAT(2);
G_END_DECLS
-
-#endif /* GTK_SOURCE_UTILS_PRIVATE_H */
diff --git a/gtksourceview/gtksourceutils.h b/gtksourceview/gtksourceutils.h
index 4968dff7..97fe6d8e 100644
--- a/gtksourceview/gtksourceutils.h
+++ b/gtksourceview/gtksourceutils.h
@@ -18,8 +18,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_UTILS_H
-#define GTK_SOURCE_UTILS_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -37,5 +36,3 @@ GTK_SOURCE_AVAILABLE_IN_3_10
gchar *gtk_source_utils_escape_search_text (const gchar *text);
G_END_DECLS
-
-#endif /* GTK_SOURCE_UTILS_H */
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index 8e8031f9..b7c08f45 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -20,8 +20,7 @@
* along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GTK_SOURCE_VIEW_H
-#define GTK_SOURCE_VIEW_H
+#pragma once
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
#error "Only <gtksourceview/gtksource.h> can be included directly."
@@ -262,5 +261,3 @@ GtkSourceSpaceDrawer *
gtk_source_view_get_space_drawer (GtkSourceView *view);
G_END_DECLS
-
-#endif /* end of GTK_SOURCE_VIEW_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]