Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
Macros
constants.h File Reference

Header file defining constants. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_BACKGROUND_PROCESSES   100
 Maximum nmber of background processes.
 
#define MAX_INPUT_LENGTH   1024
 The max length of the input string.
 
#define MAX_COMMANDS   3
 The maximum number of commands in a command sequence.
 
#define MAX_OPERATORS   (MAX_COMMANDS - 1)
 The maximum number of operators in a command sequence.
 
#define IS_BUILTIN_COMMAND   0
 The status value to return when a built-in command is run successfully.
 
#define IS_NOT_BUILTIN_COMMAND   -1
 The status value to return when a command is not a built-in command.
 
#define IS_ALIAS_COMMAND   1
 The value to return when a command is an alias command.
 
#define IS_NOT_ALIAS_COMMAND   0
 The value to return when a command is not an alias command.
 
#define YELB   "\e[43m"
 The YELB color.
 
#define RESET   "\e[0m"
 The RESET color (default color)
 
#define BLUE   "\e[1;34m"
 The RED color.
 
#define GREEN   "\e[1;32m"
 The RED color.
 
#define YELLOW   "\e[1;33m"
 The RED color.
 
#define MAX_HISTORY_SIZE   1000
 The max size of the history.
 
#define HISTORY_FILE   "history.txt"
 The history file name.
 
#define ALIASES_FILE   "aliases.txt"
 Path to the aliases file.
 
#define MAX_ALIASES   100
 The max number of aliases.
 
#define CHILD_PROCESS   0
 The child process id (pid)
 
#define INPUT_DELIMITERS   " \n"
 The delimiters used to parse the whole input.
 
#define CMD_DELIMITERS   " \t\n"
 The delimiters used to parse a single command string.
 

Detailed Description

Header file defining constants.

Author
Julien & Franck
Date
29 Dec 2023