Hacker News new | ask | show | jobs
by tedunangst 5051 days ago
There are two not in C99 gcc extensions in that snippet. && to take the address of a label, and ... to produce a range of indices. It may also happen to be a designated initializer, but the whole piece is far from standard.
1 comments

Yeah, I was interested in the [0...255] thing, the calculated gotos were discussed in the other comment.

As far as js0n, it's a great example of cool things that can be done in gcc, but isn't really useful at all since it only handles the first level of depth and has no typing. The jsmn, with typing and nesting, is actually usable, also compiles a lot smaller than the big tables in js0n.