Overview
| Comment: | avoid return from within switch |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
d7feb2870d788f3bd80b91611c39c279 |
| User & Date: | nnz on 2024-12-02 22:38:21.236 |
| Other Links: | manifest | tags |
Context
|
2024-12-02
| ||
| 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 | |
| 21:05 | use typedef for pointer too check-in: 107d9e9f4f user: nnz tags: trunk | |
Changes
Modified aocdailies.c
from [d36c34688e]
to [55bc482fd5].
1 2 3 4 5 6 |
#include <stddef.h>
#include "aocdailies.h"
aocfunc *select(int y, int d) {
aocfunc *p; // void (*p)(char *, size_t);
switch (y * 100 + d) {
| | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#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;
case 201504: p = aoc201504; break;
case 201505: p = aoc201505; break;
|
| ︙ | ︙ |