vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a5e186cc4230682281a87b9cf1ae338f7ca939bf parent 29ad9bff08d82cf2371c8fd4bf5fbf4df91401b4 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 11 Sep 2014 10:28:49 +0200 Fix warnings about redefinition of typedefed structs Diffstat:
| M | window.c | | | 1 | - |
| M | window.h | | | 2 | +- |
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git 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 @@ -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*);