From 13de79618011892d1ad7c100c7a8b62ce412ff7f Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 27 Jun 2014 18:13:34 -0400 Subject: Cleanup --- chatbot.c | 3 ++- gtnw.c | 1 + joshua.c | 3 ++- strings.c | 1 + util.c | 3 ++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chatbot.c b/chatbot.c index ae3e2c6..81ede03 100644 --- a/chatbot.c +++ b/chatbot.c @@ -1,11 +1,11 @@ #include "gtnw.h" #include "strings.h" #include "util.h" - #include #include #include #include + void do_chatbot(void) { int stage=0; /* stage 0: i'm fine how are you... -> @@ -107,3 +107,4 @@ void do_chatbot(void) } // else } // while } + diff --git a/gtnw.c b/gtnw.c index 22b8e23..adf6b9e 100644 --- a/gtnw.c +++ b/gtnw.c @@ -380,3 +380,4 @@ void global_thermonuclear_war(void) } } + diff --git a/joshua.c b/joshua.c index 3a65de0..1183586 100644 --- a/joshua.c +++ b/joshua.c @@ -2,12 +2,12 @@ #include "joshua.h" #include "strings.h" /* predefined strings */ #include "util.h" - #include #include #include #include #include + void cleanup(int signum) { endwin(); @@ -90,3 +90,4 @@ void be_joshua() do_chatbot(); endwin(); } + diff --git a/strings.c b/strings.c index 1cc22ae..8109fa4 100644 --- a/strings.c +++ b/strings.c @@ -74,3 +74,4 @@ const char* greetings_responses[] = { const char punctuation_marks[] = { '\'', '?', '.', '/', '`', '~', ',', '+', '!' }; + diff --git a/util.c b/util.c index 2f319f9..5e22489 100644 --- a/util.c +++ b/util.c @@ -1,11 +1,11 @@ #include "strings.h" #include "util.h" - #include #include #include #include + void allLower(char* str) { for(int i=0;str[i];++i) @@ -46,3 +46,4 @@ void remove_punct(char* buf) } } } + -- cgit v1.1