1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-11-14 12:53:20 +00:00
fish/fish_shell/fish_core.h

41 lines
725 B
C
Raw Normal View History

2017-05-11 15:16:06 +00:00
//
// Created by Antoine Bartuccio on 11/05/2017.
//
#ifndef FISH_FISH_CORE_H
#define FISH_FISH_CORE_H
2017-05-11 15:16:06 +00:00
2017-05-16 00:58:16 +00:00
#define FISH_BUFFER_SIZE 1024
#define FISH_TOKENS " \t\r\n\a"
2017-05-11 15:16:06 +00:00
#include "fish_types.h"
#include "fish_commands.h"
2017-05-15 12:08:10 +00:00
#include "fish_utils.h"
2017-05-29 14:19:42 +00:00
#include "fish_settings.h"
2017-05-11 15:16:06 +00:00
/* WordArray functions */
2017-05-16 00:58:16 +00:00
WordList * split(char *string, char *separator); // Tested
2017-05-11 15:16:06 +00:00
/* General purpose functions */
void fishLoop(Settings * settings);
char * fishReadLine();
2017-05-16 00:58:16 +00:00
int countSeparators(char *string, char *separators); // Tested
2017-05-11 15:16:06 +00:00
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