Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Exploring GNU extensions in the Linux kernel.
static void tbl[] = {&&do_ret, &&do_inc, &&do_dec};
#define NEXT goto tbl[*pc++]
NEXT;
for(;;) {
do_ret: return val;
do_inc: val++; NEXT;
do_dec: val--; NEXT;
}
There are no comments on this comment yet.
static void tbl[] = {&&do_ret, &&do_inc, &&do_dec};
#define NEXT goto tbl[*pc++]
NEXT;
for(;;) {
do_ret: return val;
do_inc: val++; NEXT;
do_dec: val--; NEXT;
}