chiark / gitweb /
src/types.c: Rearrange the main typeinfo table.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 31 May 2014 14:24:41 +0000 (15:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:41 +0000 (09:57 +0100)
commitc5fd1fbbe4976af30ac18f600b275036dbbe688f
treee4a86f6784128c5ba81e5d3b950c67e874094a89
parent4bc76b9c8188ccbcbabda0880a9856cbe53aaae8
src/types.c: Rearrange the main typeinfo table.

Kill XTRA_TYPE, which won't scale at all well as new features are added
to the typeinfo structure.  Instead, allow additional arguments to
FLAT/DEEP_TYPE, which are used to carry designated initializers for the
more unusual fields.

I took the opportunity to factor out some common prefixes in the names
of the functions listed in the table, which gives us some additional
horizontal space.  This will come in useful later.

All of this involves a little nontrivial macrology, now in internal.h.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
src/internal.h
src/types.c