summaryrefslogtreecommitdiff
path: root/meme
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-14 14:56:03 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-14 14:56:03 (GMT)
commit1f9086e6b4da68a49d00ab4a25624119b8a36d56 (patch)
treea4d4c0834a8285e077e4d1984ac71c4e7e4e7f9b /meme
parent4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf (diff)
downloadmisc-1f9086e6b4da68a49d00ab4a25624119b8a36d56.zip
misc-1f9086e6b4da68a49d00ab4a25624119b8a36d56.tar.gz
misc-1f9086e6b4da68a49d00ab4a25624119b8a36d56.tar.bz2
meme/gui.h: give gui.c its proper header
Diffstat (limited to 'meme')
-rw-r--r--meme/gui.c4
-rw-r--r--meme/gui.h21
-rw-r--r--meme/meme.c4
3 files changed, 25 insertions, 4 deletions
diff --git a/meme/gui.c b/meme/gui.c
index 80aedf4..0cd6836 100644
--- a/meme/gui.c
+++ b/meme/gui.c
@@ -1,4 +1,5 @@
-/* * gui.c - User interface
+/*
+ * gui.c - User interface
*
* Written 2014-2015 by Werner Almesberger
* Copyright 2014-2015 by Werner Almesberger
@@ -25,6 +26,7 @@
#include "plane.h"
#include "gaux.h"
#include "text.h"
+#include "gui.h"
#define XRES 640
diff --git a/meme/gui.h b/meme/gui.h
new file mode 100644
index 0000000..3ddd31c
--- /dev/null
+++ b/meme/gui.h
@@ -0,0 +1,21 @@
+/*
+ * gui.c - User interface
+ *
+ * Written 2014-2015 by Werner Almesberger
+ * Copyright 2014-2015 by Werner Almesberger
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef GUI_H
+#define GUI_H
+
+#include "overlay.h"
+
+
+void gui(const char *logfile, const struct overlay *overlay);
+
+#endif /* !GUI_H */
diff --git a/meme/meme.c b/meme/meme.c
index 80dd619..5f41079 100644
--- a/meme/meme.c
+++ b/meme/meme.c
@@ -20,9 +20,7 @@
#include "stl.h"
#include "overlay.h"
#include "slice.h"
-
-
-extern void gui(const char *logfile, const struct overlay *overlay);
+#include "gui.h"
static bool count_edge(const struct vertex *a, const struct vertex *b,