[vte] ring: Move some types to ring.cc



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

    ring: Move some types to ring.cc
    
    These types are only used internally by the ring and only in
    this one file, so there is no need to put them into the header.

 src/ring.cc |    5 +++++
 src/ring.hh |    6 ------
 src/vte.cc  |    1 +
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/ring.cc b/src/ring.cc
index 55b61aa..449e525 100644
--- a/src/ring.cc
+++ b/src/ring.cc
@@ -25,6 +25,11 @@
 
 #include <string.h>
 
+typedef struct _VteCellAttrChange {
+        gsize text_end_offset;  /* offset of first character no longer using this attr */
+        VteStreamCellAttr attr;
+} VteCellAttrChange;
+
 /*
  * VteRing: A buffer ring
  */
diff --git a/src/ring.hh b/src/ring.hh
index 6795a1f..b5df883 100644
--- a/src/ring.hh
+++ b/src/ring.hh
@@ -37,12 +37,6 @@ typedef struct _VteVisualPosition {
        long row, col;
 } VteVisualPosition;
 
-typedef struct _VteCellAttrChange {
-       gsize text_end_offset;  /* offset of first character no longer using this attr */
-        VteStreamCellAttr attr;
-} VteCellAttrChange;
-
-
 /*
  * VteRing: A scrollback buffer ring
  */
diff --git a/src/vte.cc b/src/vte.cc
index c78060d..70dc081 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -43,6 +43,7 @@
 #include "vtedraw.hh"
 #include "reaper.hh"
 #include "ring.hh"
+#include "caps.hh"
 
 #ifdef HAVE_WCHAR_H
 #include <wchar.h>


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