nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1%language=ANSI-C
2%compare-strncmp
3%pic
4%readonly-tables
5%{
6#include "citrus_namespace.h"
7#include "citrus_types.h"
8#include "citrus_module.h"
9#include "citrus_hash.h"
10
11#include "citrus_iconv.h"
12#include "citrus_mapper.h"
13#include "citrus_stdenc.h"
14
15extern _CITRUS_STDENC_GETOPS_FUNC(BIG5);
16extern _CITRUS_STDENC_GETOPS_FUNC(DECHanyu);
17extern _CITRUS_STDENC_GETOPS_FUNC(DECKanji);
18extern _CITRUS_STDENC_GETOPS_FUNC(EUC);
19extern _CITRUS_STDENC_GETOPS_FUNC(EUCTW);
20extern _CITRUS_STDENC_GETOPS_FUNC(GBK2K);
21extern _CITRUS_STDENC_GETOPS_FUNC(HZ);
22extern _CITRUS_STDENC_GETOPS_FUNC(ISO2022);
23extern _CITRUS_STDENC_GETOPS_FUNC(JOHAB);
24extern _CITRUS_STDENC_GETOPS_FUNC(MSKanji);
25extern _CITRUS_STDENC_GETOPS_FUNC(UES);
26extern _CITRUS_STDENC_GETOPS_FUNC(UTF1632);
27extern _CITRUS_STDENC_GETOPS_FUNC(UTF7);
28extern _CITRUS_STDENC_GETOPS_FUNC(UTF8);
29extern _CITRUS_STDENC_GETOPS_FUNC(UTF8MAC);
30extern _CITRUS_STDENC_GETOPS_FUNC(VIQR);
31extern _CITRUS_STDENC_GETOPS_FUNC(ZW);
32
33extern _CITRUS_ICONV_GETOPS_FUNC(iconv_none);
34extern _CITRUS_ICONV_GETOPS_FUNC(iconv_std);
35
36extern _CITRUS_MAPPER_GETOPS_FUNC(mapper_646);
37extern _CITRUS_MAPPER_GETOPS_FUNC(mapper_none);
38extern _CITRUS_MAPPER_GETOPS_FUNC(mapper_parallel);
39extern _CITRUS_MAPPER_GETOPS_FUNC(mapper_serial);
40extern _CITRUS_MAPPER_GETOPS_FUNC(mapper_std);
41extern _CITRUS_MAPPER_GETOPS_FUNC(mapper_zone);
42%}
43%define lookup-function-name lookup_getops
44%define hash-function-name is_known_encoding
45%define string-pool-name encodings
46%struct-type
47struct getops_pair { int name; void* opsfn; };
48%%
49BIG5, _citrus_BIG5_stdenc_getops
50DECHanyu, _citrus_DECHanyu_stdenc_getops
51DECKanji, _citrus_DECKanji_stdenc_getops
52EUC, _citrus_EUC_stdenc_getops
53EUCTW, _citrus_EUCTW_stdenc_getops
54GBK2K, _citrus_GBK2K_stdenc_getops
55HZ, _citrus_HZ_stdenc_getops
56ISO2022, _citrus_ISO2022_stdenc_getops
57JOHAB, _citrus_JOHAB_stdenc_getops
58MSKanji, _citrus_MSKanji_stdenc_getops
59UES, _citrus_UES_stdenc_getops
60UTF1632, _citrus_UTF1632_stdenc_getops
61UTF7, _citrus_UTF7_stdenc_getops
62UTF8, _citrus_UTF8_stdenc_getops
63UTF8MAC, _citrus_UTF8MAC_stdenc_getops
64VIQR, _citrus_VIQR_stdenc_getops
65ZW, _citrus_ZW_stdenc_getops
66iconv_none, _citrus_iconv_none_iconv_getops
67iconv_std, _citrus_iconv_std_iconv_getops
68mapper_646, _citrus_mapper_646_mapper_getops
69mapper_none, _citrus_mapper_none_mapper_getops
70mapper_serial, _citrus_mapper_serial_mapper_getops
71mapper_parallel, _citrus_mapper_parallel_mapper_getops
72mapper_std, _citrus_mapper_std_mapper_getops
73mapper_zone, _citrus_mapper_zone_mapper_getops