summaryrefslogtreecommitdiffstats
path: root/src/d_enum.h
blob: e5078a7a2a2d9143a30ccf77bf1ee9b2eabbb104 (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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   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
{
	FT_RET_FINE,
	FT_RET_ALLOC
};

enum
{
	FT_WRITE_END,
	FT_READ_END
};

typedef enum
{
	Q_NONE,
	Q_SINGLE,
	Q_DOUBLE
}	t_quote_mode;

enum
{
	FT_ID_ECHO,
	FT_ID_CD,
	FT_ID_PWD,
	FT_ID_EXPORT,
	FT_ID_UNSET,
	FT_ID_ENV,
	FT_ID_EXIT,
	FT_ID_TYPE,
	FT_ID_SQB,
	FT_BUILTINS_COUNT
};

enum
{
	FT_ID_SQB_B,
	FT_ID_SQB_C,
	FT_ID_SQB_D,
	FT_ID_SQB_E,
	FT_ID_SQB_F,
	FT_ID_SQB_H,
	FT_ID_SQB_N,
	FT_ID_SQB_P,
	FT_ID_SQB_R,
	FT_ID_SQB_S,
	FT_ID_SQB_W,
	FT_ID_SQB_X,
	FT_ID_SQB_Z,
	FT_ID_SQB_L_MAJ,
	FT_ID_SQB_S_MAJ,
	FT_ID_SQB_NT,
	FT_ID_SQB_OT,
	FT_ID_SQB_EQUA,
	FT_ID_SQB_DIFF,
	FT_ID_SQB_EQ,
	FT_ID_SQB_NE,
	FT_ID_SQB_GT,
	FT_ID_SQB_GE,
	FT_ID_SQB_LT,
	FT_ID_SQB_LE,
	FT_ID_SQB_COUNT
};

#endif