2017-05-11 15:16:06 +00:00
|
|
|
//
|
|
|
|
// Created by Antoine Bartuccio on 11/05/2017.
|
|
|
|
//
|
|
|
|
|
2017-05-14 18:54:39 +00:00
|
|
|
#ifndef FISH_FISH_CORE_H
|
|
|
|
#define FISH_FISH_CORE_H
|
2017-05-11 15:16:06 +00:00
|
|
|
|
|
|
|
|
2017-05-14 18:54:39 +00:00
|
|
|
#include "fish_types.h"
|
|
|
|
#include "fish_commands.h"
|
2017-05-15 12:08:10 +00:00
|
|
|
#include "fish_utils.h"
|
2017-05-11 15:16:06 +00:00
|
|
|
|
2017-05-13 20:40:41 +00:00
|
|
|
/* WordArray functions */
|
|
|
|
|
2017-05-15 14:53:56 +00:00
|
|
|
WordList * split(char *string, char *separator);
|
2017-05-13 20:40:41 +00:00
|
|
|
|
|
|
|
/* Settings functions */
|
|
|
|
|
|
|
|
Settings * getSettings();
|
2017-05-15 10:32:00 +00:00
|
|
|
void freeSettings(Settings *settings);
|
2017-05-11 15:16:06 +00:00
|
|
|
|
|
|
|
|
2017-05-13 20:40:41 +00:00
|
|
|
/* General purpose functions */
|
|
|
|
|
|
|
|
void fishLoop(Settings * settings);
|
|
|
|
|
|
|
|
char * fishReadLine();
|
|
|
|
|
|
|
|
int countSeparators(char *string, char *separators);
|
2017-05-11 15:16:06 +00:00
|
|
|
|
|
|
|
|
2017-05-14 18:54:39 +00:00
|
|
|
int fishLoad(WordArray *array);
|
|
|
|
|
|
|
|
int fishExecute(WordArray *array);
|
|
|
|
|
|
|
|
#endif //FISH_FISH_CORE_H
|