* Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
[s-roff.git] / src / xditview / DviChar.h
blobb075240d395459137dc4e8d88e362d00e4444dcd
1 /*
2 * DviChar.h
4 * descriptions for mapping dvi names to
5 * font indexes and back. Dvi fonts are all
6 * 256 elements (actually only 256-32 are usable).
8 * The encoding names are taken from X -
9 * case insensitive, a dash separating the
10 * CharSetRegistry from the CharSetEncoding
13 # define DVI_MAX_SYNONYMS 10
14 # define DVI_MAP_SIZE 256
15 # define DVI_HASH_SIZE 256
17 typedef struct _dviCharNameHash {
18 struct _dviCharNameHash *next;
19 char *name;
20 int position;
21 } DviCharNameHash;
23 typedef struct _dviCharNameMap {
24 char *encoding;
25 int special;
26 char *dvi_names[DVI_MAP_SIZE][DVI_MAX_SYNONYMS];
27 DviCharNameHash *buckets[DVI_HASH_SIZE];
28 } DviCharNameMap;
30 extern DviCharNameMap *DviFindMap ( /* char *encoding */ );
31 extern void DviRegisterMap ( /* DviCharNameMap *map */ );
32 #ifdef NOTDEF
33 extern char *DviCharName ( /* DviCharNameMap *map, int index, int synonym */ );
34 #else
35 #define DviCharName(map,index,synonym) ((map)->dvi_names[index][synonym])
36 #endif
37 extern int DviCharIndex ( /* DviCharNameMap *map, char *name */ );