Advent of Code

Check-in [81b926f5cf]
Login

Check-in [81b926f5cf]

Overview
Comment:removed unnecessary comment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 81b926f5cf7464aebb4bfe6f96db9d1bdfc4ea9e4b559bc27b21064fdacb2fb7
User & Date: nnz on 2024-12-02 22:39:33
Other Links: manifest | tags
Context
2024-12-02
22:43
renamed function select to aocselect check-in: 65953b2da6 user: nnz tags: trunk
22:39
removed unnecessary comment check-in: 81b926f5cf user: nnz tags: trunk
22:38
avoid return from within switch check-in: d7feb2870d user: nnz tags: trunk
Changes

Modified aocdailies.c from [55bc482fd5] to [89d1cc6d94].

1
2
3
4
5
6
7
8
9
10
11
12
#include <stddef.h>
#include "aocdailies.h"

aocfunc *select(int y, int d) {
    aocfunc *p; // void (*p)(char *, size_t);
    switch (y * 100 + d) {
        default: p = NULL; break;

        #if 0
        case 201501: p = aoc201501; break;
        case 201502: p = aoc201502; break;
        case 201503: p = aoc201503; break;




|







1
2
3
4
5
6
7
8
9
10
11
12
#include <stddef.h>
#include "aocdailies.h"

aocfunc *select(int y, int d) {
    aocfunc *p;
    switch (y * 100 + d) {
        default: p = NULL; break;

        #if 0
        case 201501: p = aoc201501; break;
        case 201502: p = aoc201502; break;
        case 201503: p = aoc201503; break;