1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-11-22 00:33:20 +00:00
fish/fish_shell/fish_core.h
2017-05-29 16:24:36 +02:00

41 lines
725 B
C

//
// Created by Antoine Bartuccio on 11/05/2017.
//
#ifndef FISH_FISH_CORE_H
#define FISH_FISH_CORE_H
#define FISH_BUFFER_SIZE 1024
#define FISH_TOKENS " \t\r\n\a"
#include "fish_types.h"
#include "fish_commands.h"
#include "fish_utils.h"
#include "fish_settings.h"
/* WordArray functions */
WordList * split(char *string, char *separator); // Tested
/* General purpose functions */
void fishLoop(Settings * settings);
char * fishReadLine();
int countSeparators(char *string, char *separators); // Tested
int fishLoad(WordArray *array);
int fishExecute(WordList *list);
WordList *parseWordList(WordList *list, shell_operator *an_operator);
int loadRightCommand(WordArray *array);
#endif //FISH_FISH_CORE_H