diff options
author | James Booth <boothj5@gmail.com> | 2013-01-28 01:23:37 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-28 01:23:37 +0000 |
commit | 80e62cfa5fc4635f8f1f96467520da5bc05ef6cc (patch) | |
tree | 994967661814cb04b362c1c921154179529ff9cb /src | |
parent | a63d0aff98a761cd4823cba03ece5b16f3e52458 (diff) | |
download | profani-tty-80e62cfa5fc4635f8f1f96467520da5bc05ef6cc.tar.gz |
Renamed history.c -> command_history.c
Included in command.h
Diffstat (limited to 'src')
-rw-r--r-- | src/command.c | 1 | ||||
-rw-r--r-- | src/command.h | 5 | ||||
-rw-r--r-- | src/command_history.c (renamed from src/history.c) | 2 | ||||
-rw-r--r-- | src/history.h | 31 | ||||
-rw-r--r-- | src/profanity.c | 1 | ||||
-rw-r--r-- | src/ui_inputwin.c | 1 |
6 files changed, 6 insertions, 35 deletions
diff --git a/src/command.c b/src/command.c index 767081af..788d8bfd 100644 --- a/src/command.c +++ b/src/command.c @@ -34,7 +34,6 @@ #include "contact.h" #include "contact_list.h" #include "chat_log.h" -#include "history.h" #include "jid.h" #include "log.h" #include "parser.h" diff --git a/src/command.h b/src/command.h index f7e38954..f54e841e 100644 --- a/src/command.h +++ b/src/command.h @@ -45,4 +45,9 @@ GSList * cmd_get_basic_help(void); GSList * cmd_get_settings_help(void); GSList * cmd_get_presence_help(void); +void history_init(void); +void history_append(char *inp); +char *history_previous(char *inp, int *size); +char *history_next(char *inp, int *size); + #endif diff --git a/src/history.c b/src/command_history.c index d7e360c1..1b918a95 100644 --- a/src/history.c +++ b/src/command_history.c @@ -1,5 +1,5 @@ /* - * history.c + * command_history.c * * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com> * diff --git a/src/history.h b/src/history.h deleted file mode 100644 index 0b9f3b30..00000000 --- a/src/history.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * history.h - * - * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com> - * - * This file is part of Profanity. - * - * Profanity 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 3 of the License, or - * (at your option) any later version. - * - * Profanity is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Profanity. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#ifndef HISTORY_H -#define HISTORY_H - -void history_init(void); -void history_append(char *inp); -char *history_previous(char *inp, int *size); -char *history_next(char *inp, int *size); - -#endif diff --git a/src/profanity.c b/src/profanity.c index 9ee3775f..a6cafacc 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -37,7 +37,6 @@ #include "contact.h" #include "contact_list.h" #include "files.h" -#include "history.h" #include "log.h" #include "preferences.h" #include "profanity.h" diff --git a/src/ui_inputwin.c b/src/ui_inputwin.c index f4e70d95..58818a9e 100644 --- a/src/ui_inputwin.c +++ b/src/ui_inputwin.c @@ -36,7 +36,6 @@ #include "common.h" #include "command.h" #include "contact_list.h" -#include "history.h" #include "log.h" #include "preferences.h" #include "profanity.h" |