Silly of me to overlook it: another obvious way you might like to
[sgt/charset] / enum.c
CommitLineData
c6d25d8d 1/*
2 * enum.c - enumerate all charsets defined by the library.
3 *
4 * This file maintains a list of every other source file which
5 * contains ENUM_CHARSET definitions. It #includes each one with
6 * ENUM_CHARSETS defined, which causes those source files to do
7 * nothing at all except call the ENUM_CHARSET macro on each
8 * charset they define.
9 *
10 * This file in turn is included from various other places, with
11 * the ENUM_CHARSET macro defined to various different things. This
12 * allows us to have multiple implementations of the master charset
13 * lookup table (a static one and a dynamic one).
14 */
15
16#define ENUM_CHARSETS
17#include "sbcsdat.c"
18#include "utf8.c"
19#include "utf7.c"
20#include "utf16.c"
21#include "euc.c"
b97e5427 22#include "iso2022.c"
c6d25d8d 23#include "iso2022s.c"
24#include "big5enc.c"
25#include "shiftjis.c"
26#include "hz.c"
27#include "cp949.c"
28#undef ENUM_CHARSETS