about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command.c1
-rw-r--r--src/command.h3
-rw-r--r--src/command_parser.c (renamed from src/parser.c)2
-rw-r--r--src/parser.h31
4 files changed, 4 insertions, 33 deletions
diff --git a/src/command.c b/src/command.c
index 12eaccf2..f8f5e432 100644
--- a/src/command.c
+++ b/src/command.c
@@ -36,7 +36,6 @@
 #include "chat_log.h"
 #include "jid.h"
 #include "log.h"
-#include "parser.h"
 #include "preferences.h"
 #include "autocomplete.h"
 #include "profanity.h"
diff --git a/src/command.h b/src/command.h
index 0b6c5a5f..805702df 100644
--- a/src/command.h
+++ b/src/command.h
@@ -50,4 +50,7 @@ void cmd_history_append(char *inp);
 char *cmd_history_previous(char *inp, int *size);
 char *cmd_history_next(char *inp, int *size);
 
+gchar** parse_args(const char * const inp, int min, int max);
+gchar** parse_args_with_freetext(const char * const inp, int min, int max);
+
 #endif
diff --git a/src/parser.c b/src/command_parser.c
index af01ddcc..e8197444 100644
--- a/src/parser.c
+++ b/src/command_parser.c
@@ -1,5 +1,5 @@
 /*
- * parser.c
+ * command_parser.c
  *
  * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
  *
diff --git a/src/parser.h b/src/parser.h
deleted file mode 100644
index f191ed15..00000000
--- a/src/parser.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * parser.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 PARSER_H
-#define PARSER_H
-
-#include <glib.h>
-
-gchar** parse_args(const char * const inp, int min, int max);
-gchar** parse_args_with_freetext(const char * const inp, int min, int max);
-
-#endif