-
Notifications
You must be signed in to change notification settings - Fork 0
/
aocdriver.h
51 lines (41 loc) · 1022 Bytes
/
aocdriver.h
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
// AOC 2022 results in C
// @chadsy
// Copyright (C) 2022 Chad Royal
// MIT License http://opensource.org/licenses/MIT
//
// Driver/CLI header for the Advent of Code 2022 contest
#pragma once
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define PROFILE_RUNS 1000
typedef enum {
day01 = 1, day02, day03, day04,
day05, day06, day07, day08,
day09, day10, day11, day12,
day13, day14, day15, day16,
day17, day18, day19, day20,
day21, day22, day23, day24,
day25,
} daynum;
typedef enum {
ANS_INT,
ANS_STR,
} answer_flag;
typedef union {
char *filename;
char *data;
} input_t;
typedef struct {
daynum day;
bool is_sample;
input_t input;
answer_t result_1;
answer_t result_2;
} dataset;
typedef struct {
daynum day;
bool (*solver)(arguments *);
answer_flag typ;
const char *title;
} solver_entry;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void show_help(void);