Livl Shell
0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
include
constants.h
Go to the documentation of this file.
1
8
#ifndef CONSTANTS_H
9
#define CONSTANTS_H
10
11
// Maximums
12
16
#define MAX_BACKGROUND_PROCESSES 100
17
21
#define MAX_INPUT_LENGTH 1024
22
26
#define MAX_COMMANDS 3
27
31
#define MAX_OPERATORS (MAX_COMMANDS - 1)
32
33
// Built-in commands
34
38
#define IS_BUILTIN_COMMAND 0
39
43
#define IS_NOT_BUILTIN_COMMAND -1
44
48
#define IS_ALIAS_COMMAND 1
49
53
#define IS_NOT_ALIAS_COMMAND 0
54
55
// Colors
56
60
#define YELB "\e[43m"
61
65
#define RESET "\e[0m"
66
70
#define BLUE "\e[1;34m"
71
75
#define GREEN "\e[1;32m"
76
80
#define YELLOW "\e[1;33m"
81
82
// History
83
87
#define MAX_HISTORY_SIZE 1000
88
92
#define HISTORY_FILE "history.txt"
93
94
// Aliases
95
99
#define ALIASES_FILE "aliases.txt"
100
104
#define MAX_ALIASES 100
105
106
// Scheduler
107
111
#define CHILD_PROCESS 0
112
113
// Parsing
114
118
#define INPUT_DELIMITERS " \n"
119
123
#define CMD_DELIMITERS " \t\n"
124
125
#endif // CONSTANTS_H
Generated by
1.8.17