automated code cleanup
This commit is contained in:
parent
61f693f89b
commit
7a78055d06
@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
#include "lfinput.h"
|
#include "lfinput.h"
|
||||||
|
|
||||||
|
#define GRID_SZ 1000
|
||||||
|
|
||||||
void advent2015day06(void) {
|
void advent2015day06(void) {
|
||||||
char *input = get_input("input/2015/06");
|
|
||||||
printf("Solution for Day 06 of 2015 is not completed yet\n");
|
char *input = get_lines("input/2015/06");
|
||||||
free(input);
|
free(input);
|
||||||
}
|
}
|
||||||
|
30
src/main.c
30
src/main.c
@ -3,7 +3,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
||||||
#include <bsd/stdlib.h>
|
#include <bsd/stdlib.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "advent2015.h"
|
#include "advent2015.h"
|
||||||
@ -37,13 +39,27 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (year) {
|
switch (year) {
|
||||||
case 15: solutions2015[day-1](); break;
|
case 15:
|
||||||
case 16: solutions2016[day-1](); break;
|
solutions2015[day - 1]();
|
||||||
case 17: solutions2017[day-1](); break;
|
break;
|
||||||
case 18: solutions2018[day-1](); break;
|
case 16:
|
||||||
case 19: solutions2019[day-1](); break;
|
solutions2016[day - 1]();
|
||||||
case 20: solutions2020[day-1](); break;
|
break;
|
||||||
case 21: solutions2021[day-1](); break;
|
case 17:
|
||||||
|
solutions2017[day - 1]();
|
||||||
|
break;
|
||||||
|
case 18:
|
||||||
|
solutions2018[day - 1]();
|
||||||
|
break;
|
||||||
|
case 19:
|
||||||
|
solutions2019[day - 1]();
|
||||||
|
break;
|
||||||
|
case 20:
|
||||||
|
solutions2020[day - 1]();
|
||||||
|
break;
|
||||||
|
case 21:
|
||||||
|
solutions2021[day - 1]();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user