mirror of
https://gitlab.com/klmp200/fish.git
synced 2024-09-20 18:08:09 +00:00
35 lines
493 B
C
35 lines
493 B
C
//
|
|
// Created by Antoine Bartuccio on 14/05/2017.
|
|
//
|
|
|
|
#ifndef FISH_FISH_TYPES_H
|
|
#define FISH_FISH_TYPES_H
|
|
|
|
/* Custom types */
|
|
|
|
typedef struct {
|
|
char ** words;
|
|
int size;
|
|
} WordArray;
|
|
|
|
typedef struct elem {
|
|
char * word;
|
|
struct elem * previous;
|
|
struct elem * next;
|
|
} WordListElement;
|
|
|
|
typedef struct {
|
|
int size;
|
|
WordListElement * first;
|
|
WordListElement * last;
|
|
} WordList;
|
|
|
|
typedef struct {
|
|
char *PS1;
|
|
} Settings;
|
|
|
|
|
|
typedef int (builtinCommand) (WordArray*);
|
|
|
|
#endif //FISH_FISH_TYPES_H
|