-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
66 lines (62 loc) · 1.92 KB
/
main.c
File metadata and controls
66 lines (62 loc) · 1.92 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
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
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "common.h"
#include "gym.h"
#include "spoiler.h"
#include "study.h"
#include "korean.h"
static void entries_MAY(void)
{
{
make_gym_record(2024, 05, 19, INTENSITY_5, 2, (int []){WEIGHTS, CARDIO});
make_koreanlang_record(2024, 05, 19, INTENSITY_2, 1, (int []){KSTUDY});
make_spoiler_record(2024, 05, 19, INTENSITY_4, 1, (int []){SPOILER_1});
make_study_record(2024, 05, 19, INTENSITY_5, 3, (int []){CODING, WATCHING, READING});
print_records_for_day(2024, 05, 19);
}
{
make_gym_record(2024, 05, 25, INTENSITY_0, 0, 0);
make_koreanlang_record(2024, 05, 25, INTENSITY_0, 0, 0);
make_spoiler_record(2024, 05, 25, INTENSITY_5, 1, (int []){SPOILER_1});
make_study_record(2024, 05, 25, INTENSITY_2, 1, (int []){CODING,});
print_records_for_day(2024, 05, 25);
}
}
static void cleanup(void)
{
for(int i = 0; i < DAYS_IN_YEAR_2024; i++)
{
{
SingleRecord* srec = get_record_for_yday(i, GYM);
free_gym_rec_info(srec);
Note* note = get_note_for_yday(i, GYM);
free_note_message(note);
}
{
SingleRecord* srec = get_record_for_yday(i, KOREAN);
free_korean_rec_info(srec);
Note* note = get_note_for_yday(i, KOREAN);
free_note_message(note);
}
{
SingleRecord* srec = get_record_for_yday(i, STUDY);
free_study_rec_info(srec);
Note* note = get_note_for_yday(i, STUDY);
free_note_message(note);
}
{
SingleRecord* srec = get_record_for_yday(i, SPOILER);
free_spoiler_rec_info(srec);
Note* note = get_note_for_yday(i, SPOILER);
free_note_message(note);
}
}
}
int main(void)
{
day_of_year_today();
entries_MAY();
cleanup();
return 0;
}