summaryrefslogtreecommitdiffstats
path: root/src/d_enum.h
blob: 8c32b1e7a31a5ae2ef5bebc0d11ba9d3bc1fa19c (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   d_enum.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_ENUM_H
# define D_ENUM_H

/*
** ret vals:
** ---------
** 0: cool
** 1: alloc err
*/

enum			e_ret
{
	M_RET_FINE,
	M_RET_ALLOC
};

enum			e_pipe_ends
{
	E_WRITE_END,
	E_READ_END
};

typedef enum	e_quote_mode
{
	Q_NONE,
	Q_SINGLE,
	Q_DOUBLE
}				t_quote_mode;

enum			e_builtins_id
{
	B_ID_ECHO,
	B_ID_CD,
	B_ID_PWD,
	B_ID_EXPORT,
	B_ID_UNSET,
	B_ID_ENV,
	B_ID_EXIT,
	B_ID_TYPE,
	B_ID_SQB,
	B_ID_ALIAS,
	B_ID_H,
	B_BUILTINS_COUNT
};

enum			e_sqb_id
{
	B_ID_SQB_B,
	B_ID_SQB_C,
	B_ID_SQB_D,
	B_ID_SQB_E,
	B_ID_SQB_F,
	B_ID_SQB_H,
	B_ID_SQB_N,
	B_ID_SQB_P,
	B_ID_SQB_R,
	B_ID_SQB_S,
	B_ID_SQB_W,
	B_ID_SQB_X,
	B_ID_SQB_Z,
	B_ID_SQB_L_MAJ,
	B_ID_SQB_S_MAJ,
	B_ID_SQB_NT,
	B_ID_SQB_OT,
	B_ID_SQB_EQUA,
	B_ID_SQB_DIFF,
	B_ID_SQB_EQ,
	B_ID_SQB_NE,
	B_ID_SQB_GT,
	B_ID_SQB_GE,
	B_ID_SQB_LT,
	B_ID_SQB_LE,
	B_ID_SQB_COUNT
};

#endif