Overview
| Comment: | moved big switch out of main |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
dd0c03da2e8fab7f7faca7dc9a9d9374 |
| User & Date: | nnz on 2024-12-02 20:53:47.835 |
| Other Links: | manifest | tags |
Context
|
2024-12-02
| ||
| 20:57 | changed header guard check-in: cd1251ba62 user: nnz tags: trunk | |
| 20:53 | moved big switch out of main check-in: dd0c03da2e user: nnz tags: trunk | |
| 20:04 | 202401 and 202402, 4 stars check-in: 8e5f2a70ef user: nnz tags: trunk | |
Changes
Modified aoc.c
from [afd38c9390]
to [3e499c316d].
| ︙ | ︙ | |||
34 35 36 37 38 39 40 |
exit(EXIT_FAILURE);
}
// read data from dataname into input
char *input = NULL;
size_t ilen = slurp(&input, dataname);
// call the right function
| | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | > | 34 35 36 37 38 39 40 41 42 43 44 45 |
exit(EXIT_FAILURE);
}
// read data from dataname into input
char *input = NULL;
size_t ilen = slurp(&input, dataname);
// call the right function
void (*p)(char *, size_t) = select(y, d);
if (p) p(input, ilen);
else fprintf(stderr, "Impossible!\n");
free(input);
}
|
Added aocdailies.c version [9faf574fa1].
Modified aocdailies.h
from [981e8d069f]
to [5d1244df06].
1 2 3 4 5 6 7 8 9 10 | #ifndef AOCDAILY_H_INCLUDED #define AOCDAILY_H_INCLUDED #if 0 void aoc201501(char *, size_t); void aoc201502(char *, size_t); void aoc201503(char *, size_t); void aoc201504(char *, size_t); void aoc201505(char *, size_t); void aoc201506(char *, size_t); | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #ifndef AOCDAILY_H_INCLUDED #define AOCDAILY_H_INCLUDED #include <stddef.h> typedef void aocfunc(char *, size_t); aocfunc *select(int, int); #if 0 void aoc201501(char *, size_t); void aoc201502(char *, size_t); void aoc201503(char *, size_t); void aoc201504(char *, size_t); void aoc201505(char *, size_t); void aoc201506(char *, size_t); |
| ︙ | ︙ |