[vte] cxx: Move some headers to .hh



commit 728684cd7db14960ba8cc9aa631163dea1c512c2
Author: Christian Persch <chpe src gnome org>
Date:   Mon Apr 23 20:51:18 2018 +0200

    cxx: Move some headers to .hh

 doc/reference/Makefile.am           |    4 ++--
 src/Makefile.am                     |    4 ++--
 src/ring.cc                         |    2 +-
 src/{ring.h => ring.hh}             |    7 ++-----
 src/vte.cc                          |    3 +--
 src/vteinternal.hh                  |    2 +-
 src/vterowdata.cc                   |    2 +-
 src/{vterowdata.h => vterowdata.hh} |    5 +----
 8 files changed, 11 insertions(+), 18 deletions(-)
---
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
index 9dadf59..6a916d5 100644
--- a/doc/reference/Makefile.am
+++ b/doc/reference/Makefile.am
@@ -99,13 +99,13 @@ IGNORE_HFILES = \
        parser-osc.hh \
        parser-reply.hh \
        parser-string.hh \
-       ring.h \
+       ring.hh \
        stamp-vtetypebuiltins.h \
        tabstops.hh \
        vteconv.h \
        vtedraw.h \
        vteinternal.hh \
-       vterowdata.h \
+       vterowdata.hh \
        vtestream-base.h \
        vtestream-file.h \
        vtestream.h \
diff --git a/src/Makefile.am b/src/Makefile.am
index f601eb9..2a5afde 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -76,7 +76,7 @@ libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
        reaper.cc \
        reaper.hh \
        ring.cc \
-       ring.h \
+       ring.hh \
        vte.cc \
        vteaccess.cc \
        vteaccess.h \
@@ -93,7 +93,7 @@ libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
        vteregex.cc \
        vteregexinternal.hh \
        vterowdata.cc \
-       vterowdata.h \
+       vterowdata.hh \
        vtespawn.cc \
        vtespawn.hh \
        vteseq.cc \
diff --git a/src/ring.cc b/src/ring.cc
index 2db4b0e..55b61aa 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -21,7 +21,7 @@
 #include <config.h>
 
 #include "debug.h"
-#include "ring.h"
+#include "ring.hh"
 
 #include <string.h>
 
diff --git a/src/ring.h b/src/ring.hh
similarity index 98%
rename from src/ring.h
rename to src/ring.hh
index fe7ba55..6795a1f 100644
--- a/src/ring.h
+++ b/src/ring.hh
@@ -20,13 +20,12 @@
 
 /* The interfaces in this file are subject to change at any time. */
 
-#ifndef vte_ring_h_included
-#define vte_ring_h_included
+#pragma once
 
 #include <gio/gio.h>
 #include <vte/vte.h>
 
-#include "vterowdata.h"
+#include "vterowdata.hh"
 #include "vtestream.h"
 
 G_BEGIN_DECLS
@@ -125,5 +124,3 @@ gboolean _vte_ring_write_contents (VteRing *ring,
                                   GError **error);
 
 G_END_DECLS
-
-#endif
diff --git a/src/vte.cc b/src/vte.cc
index a903416..c78060d 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -42,8 +42,7 @@
 #include "vteconv.h"
 #include "vtedraw.hh"
 #include "reaper.hh"
-#include "ring.h"
-#include "caps.hh"
+#include "ring.hh"
 
 #ifdef HAVE_WCHAR_H
 #include <wchar.h>
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 58b37a7..1562255 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -23,7 +23,7 @@
 #include "vtedefines.hh"
 #include "vtetypes.hh"
 #include "reaper.hh"
-#include "ring.h"
+#include "ring.hh"
 #include "vteconv.h"
 #include "buffer.h"
 #include "parser.hh"
diff --git a/src/vterowdata.cc b/src/vterowdata.cc
index 42b22e1..185aba7 100644
--- a/src/vterowdata.cc
+++ b/src/vterowdata.cc
@@ -21,7 +21,7 @@
 #include <config.h>
 
 #include "debug.h"
-#include "vterowdata.h"
+#include "vterowdata.hh"
 
 #include <string.h>
 
diff --git a/src/vterowdata.h b/src/vterowdata.hh
similarity index 99%
rename from src/vterowdata.h
rename to src/vterowdata.hh
index 80483d3..7c6af83 100644
--- a/src/vterowdata.h
+++ b/src/vterowdata.hh
@@ -18,8 +18,7 @@
 
 /* The interfaces in this file are subject to change at any time. */
 
-#ifndef vterowdata_h_included
-#define vterowdata_h_included
+#pragma once
 
 #include <string.h>
 
@@ -248,5 +247,3 @@ void _vte_row_data_shrink (VteRowData *row, gulong max_len);
 
 
 G_END_DECLS
-
-#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]