diff options
| author | Franklin Wei <franklin@fwei.tk> | 2014-06-27 18:13:34 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@fwei.tk> | 2014-06-27 18:13:34 -0400 |
| commit | 13de79618011892d1ad7c100c7a8b62ce412ff7f (patch) | |
| tree | 76ede0e278cf9b61acc535a2ea0e18bae3559d0e | |
| parent | aedf71494b2011ceeb06b96e63da1c7a79a32e0e (diff) | |
| download | wargames-server-13de79618011892d1ad7c100c7a8b62ce412ff7f.zip wargames-server-13de79618011892d1ad7c100c7a8b62ce412ff7f.tar.gz wargames-server-13de79618011892d1ad7c100c7a8b62ce412ff7f.tar.bz2 wargames-server-13de79618011892d1ad7c100c7a8b62ce412ff7f.tar.xz | |
Cleanup
| -rw-r--r-- | chatbot.c | 3 | ||||
| -rw-r--r-- | gtnw.c | 1 | ||||
| -rw-r--r-- | joshua.c | 3 | ||||
| -rw-r--r-- | strings.c | 1 | ||||
| -rw-r--r-- | util.c | 3 |
5 files changed, 8 insertions, 3 deletions
@@ -1,11 +1,11 @@ #include "gtnw.h" #include "strings.h" #include "util.h" - #include <curses.h> #include <stdlib.h> #include <string.h> #include <unistd.h> + 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 } + @@ -380,3 +380,4 @@ void global_thermonuclear_war(void) } } + @@ -2,12 +2,12 @@ #include "joshua.h" #include "strings.h" /* predefined strings */ #include "util.h" - #include <curses.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <unistd.h> + void cleanup(int signum) { endwin(); @@ -90,3 +90,4 @@ void be_joshua() do_chatbot(); endwin(); } + @@ -74,3 +74,4 @@ const char* greetings_responses[] = { const char punctuation_marks[] = { '\'', '?', '.', '/', '`', '~', ',', '+', '!' }; + @@ -1,11 +1,11 @@ #include "strings.h" #include "util.h" - #include <ctype.h> #include <curses.h> #include <string.h> #include <unistd.h> + void allLower(char* str) { for(int i=0;str[i];++i) @@ -46,3 +46,4 @@ void remove_punct(char* buf) } } } + |