blob: d38cb102fdd119e6dd7d93fd0be987cf0ad12393 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* d_define.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */
/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */
/* */
/* ************************************************************************** */
#ifndef D_DEFINE_H
#define D_DEFINE_H
#include "d_enum.h"
/*
** ====== CLASSICS ======
*/
#define FT_PS_ONE "minishell ~> "
#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type"
#define FT_HISTFILE "minishell_history"
/*
** ====== OPTIONS ======
*/
#define FT_OPT_INTERACT "-i"
#define FT_OPT_COMMAND "-c"
/*
** ====== VARS ======
*/
#define FT_ZER_VAR "$0"
#define FT_RET_VAR "$?"
#define FT_PID_VAR "$$"
/*
** ====== FAIL MSG ======
*/
#define FT_FAIL_COMMAND_NOT_FOUND "command not found"
#define FT_FAIL_NO_OPTIONS "no options required"
#define FT_FAIL_TOO_MANY_ARGS "too many arguments"
#define FT_FAIL_HOME_NOT_SET "HOME not set"
/*
** ====== FILES ======
*/
#define FT_MINISHELLRC ".minishellrc"
#define FT_MINISHELL_HISTORY ".minishell_history"
#endif
|