Skip to content

Commit

Permalink
Swithced to 2 spaces indent
Browse files Browse the repository at this point in the history
  • Loading branch information
dm1sh committed Feb 14, 2021
1 parent bd61469 commit 1a4792f
Show file tree
Hide file tree
Showing 15 changed files with 1,458 additions and 1,458 deletions.
22 changes: 11 additions & 11 deletions include/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
#include <string.h>

enum keys {
DELETE_KEY = 1000,
UP_KEY,
DOWN_KEY,
LEFT_KEY,
RIGHT_KEY,
HOME_KEY,
END_KEY,
BACKSPACE_KEY,
ENTER_KEY,
TAB_KEY,
ESCAPE_KEY
DELETE_KEY = 1000,
UP_KEY,
DOWN_KEY,
LEFT_KEY,
RIGHT_KEY,
HOME_KEY,
END_KEY,
BACKSPACE_KEY,
ENTER_KEY,
TAB_KEY,
ESCAPE_KEY
};

void change_mode(int on);
Expand Down
54 changes: 27 additions & 27 deletions include/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,60 @@
// Types definitions
struct hist_sub
{
char **content;
int length;
int pos;
char **content;
int length;
int pos;
};

struct history
{
char **content;
ssize_t length;
int pos;
FILE *file;
char **content;
ssize_t length;
int pos;
FILE *file;

struct hist_sub sub;
struct hist_sub sub;
};

struct status
{
int s;
bool invert;
int s;
bool invert;
};

typedef enum
{
NO_SEP,
SEMICOLON_SEP,
AND_SEP,
OR_SEP
NO_SEP,
SEMICOLON_SEP,
AND_SEP,
OR_SEP
} cmd_sep;

typedef struct pipes
{
char **args;
ssize_t args_am;
int pipefd[2];
struct pipes *next;
char **args;
ssize_t args_am;
int pipefd[2];
struct pipes *next;
} cmd_pipe;

typedef struct commands
{
cmd_pipe *pipe;
ssize_t pipes_am;
cmd_pipe *pipe;
ssize_t pipes_am;

char **envs;
ssize_t envs_am;
char **envs;
ssize_t envs_am;

struct status stat;
struct commands *next;
cmd_sep sep_next;
struct status stat;
struct commands *next;
cmd_sep sep_next;
} cmds_p;

typedef struct
{
struct history hist;
int last_status;
struct history hist;
int last_status;
} t_;

//Globals defenition
Expand Down
4 changes: 2 additions & 2 deletions include/tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

struct tree_node
{
struct tree_node *child[ALPHABET_SIZE];
struct tree_node *child[ALPHABET_SIZE];

int is_leaf;
int is_leaf;
};

struct tree_node *get_new_node();
Expand Down
Loading

0 comments on commit 1a4792f

Please sign in to comment.