summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-02-04 14:15:09 -0800
committerOri Bernstein <ori@eigenstate.org>2017-02-04 14:15:09 -0800
commitd58541170b9f956610bc7d8b90a02f429d49e4fd (patch)
treeca1bec9db928f710dea5090e49e20052ecb86fce
parent4bee91b03eb8f6d02dc5b9605f9acf0471335a2f (diff)
downloadmk-master.tar.gz
Add missing file, fix style.HEADmaster
-rw-r--r--example/hello.c3
-rw-r--r--example/hello.h7
-rw-r--r--example/hellogtk.c12
-rw-r--r--example/main.c3
4 files changed, 19 insertions, 6 deletions
diff --git a/example/hello.c b/example/hello.c
index 32feb10..aa37631 100644
--- a/example/hello.c
+++ b/example/hello.c
@@ -3,7 +3,8 @@
#include "hello.h"
-void hello_showargs(char **args, int nargs)
+void
+hello_showargs(char **args, int nargs)
{
size_t i;
diff --git a/example/hello.h b/example/hello.h
new file mode 100644
index 0000000..95ec0b4
--- /dev/null
+++ b/example/hello.h
@@ -0,0 +1,7 @@
+#ifndef _HELLO_H_
+#define _HELLO_H_
+
+void hello_showgtk(int argc, char *argv[]);
+void hello_showargs(char **args, int nargs);
+
+#endif
diff --git a/example/hellogtk.c b/example/hellogtk.c
index 9d38a18..9d0903e 100644
--- a/example/hellogtk.c
+++ b/example/hellogtk.c
@@ -4,23 +4,27 @@
#include "hello.h"
-static void hello(GtkWidget *widget, gpointer data)
+static void
+hello(GtkWidget *widget, gpointer data)
{
printf("Hello World\n");
}
-static gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data)
+static gboolean
+delete_event(GtkWidget *widget, GdkEvent *event, gpointer data)
{
return FALSE;
}
/* Another callback */
-static void destroy(GtkWidget *widget, gpointer data)
+static void
+destroy(GtkWidget *widget, gpointer data)
{
gtk_main_quit();
}
-void hello_showgtk(int argc, char *argv[])
+void
+hello_showgtk(int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *button;
diff --git a/example/main.c b/example/main.c
index e3e33a8..56fbb69 100644
--- a/example/main.c
+++ b/example/main.c
@@ -2,7 +2,8 @@
#include "hello.h"
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
{
int i;