[vte] table: Move header to table.hh



commit 5e9ad640f61ba98436e3a48cc0031b64b7851c7e
Author: Christian Persch <chpe src gnome org>
Date:   Tue Nov 21 18:36:48 2017 +0100

    table: Move header to table.hh

 doc/reference/Makefile.am |    2 +-
 src/Makefile.am           |    6 +++---
 src/matcher.cc            |    2 +-
 src/table.cc              |    2 +-
 src/{table.h => table.hh} |   10 +---------
 5 files changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
index bb878d3..d6429b0 100644
--- a/doc/reference/Makefile.am
+++ b/doc/reference/Makefile.am
@@ -86,7 +86,7 @@ IGNORE_HFILES = \
        matcher.hh \
        ring.h \
        stamp-vtetypebuiltins.h \
-       table.h \
+       table.hh \
        trie.h \
        vteconv.h \
        vtedraw.h \
diff --git a/src/Makefile.am b/src/Makefile.am
index 0761503..66e5295 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -64,7 +64,7 @@ libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
        ring.cc \
        ring.h \
        table.cc \
-       table.h \
+       table.hh \
        vte.cc \
        vteaccess.cc \
        vteaccess.h \
@@ -251,7 +251,7 @@ interpret_SOURCES = \
        matcher.cc \
        matcher.hh \
        table.cc \
-       table.h \
+       table.hh \
        vteconv.cc \
        vteconv.h \
        interpret.cc
@@ -291,7 +291,7 @@ table_SOURCES = \
        matcher.cc \
        matcher.hh \
        table.cc \
-       table.h \
+       table.hh \
        vteconv.cc \
        vteconv.h \
        $(NULL)
diff --git a/src/matcher.cc b/src/matcher.cc
index 1e164af..38ae150 100644
--- a/src/matcher.cc
+++ b/src/matcher.cc
@@ -24,7 +24,7 @@
 #include "debug.h"
 #include "caps.h"
 #include "matcher.hh"
-#include "table.h"
+#include "table.hh"
 
 struct _vte_matcher {
        _vte_matcher_match_func match; /* shortcut to the most common op */
diff --git a/src/table.cc b/src/table.cc
index 68d3e9d..0f61898 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -27,7 +27,7 @@
 #include <glib-object.h>
 #include "debug.h"
 #include "iso2022.h"
-#include "table.h"
+#include "table.hh"
 
 /* Table info. */
 #define VTE_TABLE_MAX_LITERAL (128 + 32)
diff --git a/src/table.h b/src/table.hh
similarity index 94%
rename from src/table.h
rename to src/table.hh
index a909d52..57ce7a2 100644
--- a/src/table.h
+++ b/src/table.hh
@@ -18,14 +18,10 @@
 
 /* The interfaces in this file are subject to change at any time. */
 
-#ifndef vte_table_h_included
-#define vte_table_h_included
-
+#pragma once
 
 #include <glib-object.h>
 
-G_BEGIN_DECLS
-
 struct _vte_table;
 
 /* Create an empty, one-level table. */
@@ -48,7 +44,3 @@ const char *_vte_table_match(struct _vte_table *table,
 void _vte_table_print(struct _vte_table *table);
 
 extern const struct _vte_matcher_class _vte_matcher_table;
-
-G_END_DECLS
-
-#endif


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