-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.h
More file actions
29 lines (27 loc) · 1.38 KB
/
Copy pathmacros.h
File metadata and controls
29 lines (27 loc) · 1.38 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* macros.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lpetsoan <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/25 15:41:11 by lpetsoan #+# #+# */
/* Updated: 2019/08/28 17:29:12 by lpetsoan ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MACROS_H
# define MACROS_H
# define RECUR 'R'
# define ALL 'a'
# define LONG 'l'
# define REV 'r'
# define T_SORT 't'
# define FORM_COLOR "%d %s %s %d \t%s \033[1;35m%s\033[0m\n"
# define FORM "%d %s %s %d \t%s %s\n"
# define SHORT_COLOR "\033[1;35m%s\033[0m\n"
# define SHORT "%s\n"
# define NOT_DOT strcmp(head->name, ".") != 0
# define NOT_DOT_DOT ft_strcmp(head->name, "..") != 0
# define IS_DIR_SHORT head->is_dir == 1 ? SHORT_COLOR : SHORT
# define IS_DIR_FORM head->is_dir == 1? FORM_COLOR : FORM
#endif