aboutsummaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/parser.c b/parser.c
deleted file mode 100644
index a680d2a..0000000
--- a/parser.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "db.h"
-
-
-int handleMetaCommand(inputBuffer *in){
- if(sameStr(in->buffer, ".exit")){
- freeInputBuffer(in);
- printf("EXIT M'NIGGA\n");
- exit(EXIT_SUCCESS);
- }else{
- return META_COMMAND_FAIL;
- }
-}
-
-int handleInput(inputBuffer *in){
- if(in->buffer[0] == '.'){
- return handleMetaCommand(in);
- }else{
- printf("normal command\n");
- }
-}