aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-11 10:28:49 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-11 10:28:49 +0200
commit9802e289c61e68e262a173063f14438ae12b32dd (patch)
tree9d541a4e0087915451edbaadd151bbea0a698386
parent514b6e1ddf2b086378cc689bb87765d259ac9732 (diff)
downloadvis-9802e289c61e68e262a173063f14438ae12b32dd.tar.gz
vis-9802e289c61e68e262a173063f14438ae12b32dd.tar.xz
Fix warnings about redefinition of typedefed structs
-rw-r--r--window.c1
-rw-r--r--window.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/window.c b/window.c
index bdb5ce3..931c4dc 100644
--- a/window.c
+++ b/window.c
@@ -56,7 +56,6 @@ typedef struct { /* cursor position */
Line *line; /* screen line on which cursor currently resides */
} Cursor;
-typedef struct Win Win;
struct Win { /* window showing part of a file */
Text *text; /* underlying text management */
WINDOW *win; /* curses window for the text area */
diff --git a/window.h b/window.h
index fc9cd43..f7016b5 100644
--- a/window.h
+++ b/window.h
@@ -4,8 +4,8 @@
#include <stddef.h>
#include <stdbool.h>
#include "text.h"
+#include "syntax.h"
-typedef struct Syntax Syntax;
typedef struct Win Win;
Win *window_new(Text*);