-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.c
50 lines (46 loc) · 1.78 KB
/
debug.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* debug.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rnishimo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/29 20:38:33 by rnishimo #+# #+# */
/* Updated: 2022/01/29 21:12:54 by rnishimo ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
#ifdef DEBUG
void debug_t_print(t_print *st)
{
printf("t_print {\n");
printf(" size : %lu\n", st->size);
printf(" space: %lu\n", st->space);
printf(" zero : %lu\n", st->zero);
printf(" sign : %lu\n", st->sign);
printf(" hex : %lu\n", st->hex);
printf("}\n");
}
void debug_t_flag(t_flag *st)
{
printf("t_flag {\n");
printf(" width: %lu\n", st->width);
printf(" prcs : %lu\n", st->precision);
printf(" minus: %u\n", st->minus);
printf(" zero : %u\n", st->zero);
printf(" dot : %u\n", st->dot);
printf(" sharp: %u\n", st->sharp);
printf(" space: %u\n", st->space);
printf(" plus : %u\n", st->plus);
printf("}\n");
}
void debug_t_str(t_str *st)
{
printf("t_str {\n");
printf(" str : %s\n", st->str);
printf(" size : %lu\n", st->size);
printf(" minus: %u\n", st->minus);
printf(" spec : %c\n", st->specifier);
printf("}\n");
}
#endif