# 2.11BSD#431 - /usr/src/new/kermit5.188/ckcxla.h

##### Macros

    AL_ARABIC         X
    AL_CYRIL          X
    AL_GREEK          X
    AL_HAN            X
    AL_HEBREW         X
    AL_INDIA          X
    AL_JAPAN          X
    AL_KANA           X
    AL_ROMAN          X
    AL_UNIV           X
    AL_UNK            X
    CKCXLA_H          X
    CYRILLIC          X
    FC_TRANSP         X
    LATIN2            X
    L_ARABIC          X
    L_ASCII           X
    L_CHINESE         X
    L_DANISH          X
    L_DUTCH           X
    L_FINNISH         X
    L_FRENCH          X
    L_GERMAN          X
    L_GREEK           X
    L_HEBREW          X
    L_HUNGARIAN       X
    L_ICELANDIC       X
    L_ITALIAN         X
    L_JAPANESE        X
    L_KOREAN          X
    L_NORWEGIAN       X
    L_PORTUGUESE      X
    L_RUSSIAN         X
    L_SPANISH         X
    L_SWEDISH         X
    L_SWISS           X
    L_TURKISH         X
    L_USASCII         X
    MAXLANG           X
    MAXTCSETS         X
    TC_1LATIN         X
    TC_2LATIN         X
    TC_3LATIN         X
    TC_4LATIN         X
    TC_5LATIN         X
    TC_ARABIC         X
    TC_CHINES         X
    TC_CYRILL         X
    TC_GREEK          X
    TC_HEBREW         X
    TC_I10646         X
    TC_JEUC           X
    TC_JIS208         X
    TC_KOREAN         X
    TC_TRANSP         X
    TC_USASCII        X
    TS_L0             X
    TS_L1             X
    TS_L2             X
    UNK               X

##### struct's

    csinfo            X
    langinfo          X

       1: /*
       2:   Author: Frank da Cruz (fdc@columbia.edu, FDCCU@CUVMA.BITNET),
       3:   Columbia University Center for Computing Activities.
       4:   First released January 1985.
       5:   Copyright (C) 1985, 1992, Trustees of Columbia University in the City of New
       6:   York.  Permission is granted to any individual or institution to use this
       7:   software as long as it is not sold for profit.  This copyright notice must be
       8:   retained.  This software may not be included in commercial products without
       9:   written permission of Columbia University.
      10: */
      11: #ifndef CKCXLA_H            /* Guard against multiple inclusion */
      12: #define CKCXLA_H
      13:
      14: #ifdef NOCSETS
      15: #ifdef KANJI
      16: #undef KANJI
      17: #endif /* KANJI */
      18: #ifdef CYRILLIC
      19: #undef CYRILLIC
      20: #endif /* CYRILLIC */
      21: #ifdef LATIN2
      22: #undef LATIN2
      23: #endif /* LATIN2 */
      24:
      25: #else /* Rest of this file... */
      26:
      27: #ifndef NOLATIN2            /* If they didn't say "no Latin-2" */
      28: #ifndef LATIN2              /* Then if LATIN2 isn't already */
      29: #define LATIN2              /* defined, define it. */
      30: #endif /* LATIN2 */
      31: #endif /* NOLATIN2 */
      32:
      33: #ifndef NOCYRIL             /* If they didn't say "no Cyrillic" */
      34: #ifndef CYRILLIC            /* Then if CYRILLIC isn't already */
      35: #define CYRILLIC            /* defined, define it. */
      36: #endif /* CYRILLIC */
      37: #endif /* NOCYRIL */
      38:
      39: /* File ckcxla.h -- Character-set-related definitions, system independent */
      40:
      41: /* Codes for Kermit Transfer Syntax Level (obsolete) */
      42:
      43: #define TS_L0 0      /* Level 0 (Transparent) */
      44: #define TS_L1 1      /* Level 1 (one standard character set) */
      45: #define TS_L2 2      /* Level 2 (multiple character sets in same file) */
      46:
      47: #define UNK 63       /* Symbol to use for unknown character (63 = ?) */
      48:
      49: /*
      50:   Codes for the base alphabet of a given character set.
      51:   These are assigned in roughly ISO 8859 order.
      52:   (Each is assumed to include ASCII/Roman.)
      53: */
      54: #define AL_UNIV    0            /* Universal (like ISO 10646) */
      55: #define AL_ROMAN   1            /* Roman (Latin) alphabet */
      56: #define AL_CYRIL   2            /* Cyrillic alphabet */
      57: #define AL_ARABIC  3            /* Arabic */
      58: #define AL_GREEK   4            /* Greek */
      59: #define AL_HEBREW  5            /* Hebrew */
      60: #define AL_KANA    6            /* Japanese Katakana */
      61: #define AL_JAPAN   7            /* Japanese Katakana+Kanji ideograms */
      62: #define AL_HAN     8            /* Chinese/Japanese/Korean ideograms */
      63: #define AL_INDIA   9            /* Indian scripts (ISCII) */
      64:                     /* Add more here... */
      65: #define AL_UNK   999            /* Unknown (transparent) */
      66:
      67: /* Codes for languages */
      68: /*
      69:   NOTE: It would perhaps be better to use ISO 639-1988 2-letter "Codes for
      70:   Representation of Names of Languages" here, shown in the comments below.
      71: */
      72: #define L_ASCII       0  /* EN ASCII, English */
      73: #define L_USASCII     0  /* EN ASCII, English */
      74: #define L_DUTCH       1  /* NL Dutch */
      75: #define L_FINNISH     2  /* FI Finnish */
      76: #define L_FRENCH      3  /* FR French */
      77: #define L_GERMAN      4  /* DE German */
      78: #define L_HUNGARIAN   5  /* HU Hungarian */
      79: #define L_ITALIAN     6  /* IT Italian */
      80: #define L_NORWEGIAN   7  /* NO Norwegian */
      81: #define L_PORTUGUESE  8  /* PT Portuguese */
      82: #define L_SPANISH     9  /* ES Spanish */
      83: #define L_SWEDISH    10  /* SV Swedish */
      84: #define L_SWISS      11  /* RM Swiss (Rhaeto-Romance) */
      85: #define L_DANISH     12  /* DA Danish */
      86: #define L_ICELANDIC  13  /* IS Icelandic */
      87:
      88: #ifdef CYRILLIC      /* RU Russian */
      89: #define L_RUSSIAN 14
      90: #ifndef KANJI
      91: #define MAXLANG 14
      92: #endif /* KANJI */
      93: #endif /* CYRILLIC */
      94:
      95: #ifdef KANJI         /* JA Japanese */
      96: #ifndef CYRILLIC
      97: #define L_JAPANESE 14
      98: #define MAXLANG 14
      99: #else
     100: #define L_JAPANESE 15
     101: #define MAXLANG 15
     102: #endif /* CYRILLIC */
     103: #endif /* KANJI */
     104:
     105: #ifndef MAXLANG
     106: #define MAXLANG 14
     107: #endif /* MAXLANG */
     108:
     109: #ifdef COMMENT
     110: /*
     111:   The ones below are not used yet.  This list needs to be expanded and
     112:   organized, and something must be done about the hard coded numbers, because
     113:   they will be wrong if CYRILLIC and/or KANJI are deselected.  But we can't do
     114:   "#define L_CHINESE L_JAPANESE + 1" because that causes recursion in the
     115:   preprocessor.
     116: */
     117: #define L_CHINESE    16         /* ZH */
     118: #define L_KOREAN     17         /* KO */
     119: #define L_ARABIC     18         /* AR */
     120: #define L_HEBREW     19         /* IW */
     121: #define L_GREEK      20         /* EL */
     122: #define L_TURKISH    21         /* TR */
     123: /* etc... */
     124: #endif /* COMMENT */
     125:
     126: /*
     127:   File character-sets are defined in the system-specific ck?xla.h file,
     128:   except for the following one, which must be available to all versions:
     129: */
     130: #define FC_TRANSP  254          /* Transparent */
     131:
     132: /*
     133:   Designators for Kermit's transfer character sets.  These are all standard
     134:   sets, or based on them.  Symbols must be unique in the first 8 characters,
     135:   because some C preprocessors have this limit.
     136: */
     137: /* LIST1 */
     138: #define TC_TRANSP  0   /* Transparent, no character translation */
     139: #define TC_USASCII 1   /* US 7-bit ASCII */
     140: #define TC_1LATIN  2   /* ISO 8859-1, Latin-1 */
     141: #define TC_2LATIN  3   /* ISO 8859-2, Latin-2 */
     142: #define TC_CYRILL  4   /* ISO 8859-5, Latin/Cyrillic */
     143: #define TC_JEUC    5   /* Japanese EUC */
     144:
     145: #define MAXTCSETS  5   /* Highest Transfer Character Set Number */
     146:
     147: #ifdef COMMENT
     148: /*
     149:   Not used yet.
     150: */
     151: #define TC_3LATIN  6  /* ISO 8859-3, Latin-3 */
     152: #define TC_4LATIN  7  /* ISO 8859-4, Latin-4 */
     153: #define TC_5LATIN  8  /* ISO 8859-9, Latin-5 */
     154: #define TC_ARABIC  9  /* ISO-8859-6, Latin/Arabic */
     155: #define TC_GREEK  10  /* ISO-8859-7, Latin/Greek */
     156: #define TC_HEBREW 11  /* ISO-8859-8, Latin/Hebrew */
     157: #define TC_JIS208 12  /* Japanese JIS X 0208 multibyte set */
     158: #define TC_CHINES 13  /* Chinese Standard GB 2312-80 */
     159: #define TC_KOREAN 14  /* Korean KS C 5601-1987 */
     160: #define TC_I10646 15  /* ISO DIS 10646 (not defined yet) */
     161: /* etc... */
     162: #endif /* COMMENT */
     163:
     164: /* Structure for character-set information */
     165:
     166: struct csinfo {
     167:     char *name;             /* Name of character set */
     168:     int size;               /* Size (128 or 256)     */
     169:     int code;               /* Like TC_1LATIN, etc.  */
     170:     char *designator;           /* Designator, like I2/100 = Latin-1 */
     171:     int alphabet;           /* Base alphabet */
     172: };
     173:
     174: /* Structure for language information */
     175:
     176: struct langinfo {
     177:     int id;             /* Language ID code (L_whatever) */
     178:     int fc;             /* File character set to use */
     179:     int tc;             /* Transfer character set to use */
     180:     char *description;          /* Description of language */
     181: };
     182:
     183: /* Now take in the system-specific definitions */
     184:
     185: #ifdef UNIX
     186: #include "ckuxla.h"
     187: #endif /* UNIX */
     188:
     189: #ifdef OSK              /* OS-9 */
     190: #include "ckuxla.h"
     191: #endif /* OS-9 */
     192:
     193: #ifdef VMS              /* VAX/VMS */
     194: #include "ckuxla.h"
     195: #endif /* VMS */
     196:
     197: #ifdef GEMDOS               /* Atari ST */
     198: #include "ckuxla.h"
     199: #endif /* GEMDOS */
     200:
     201: #ifdef MAC              /* Macintosh */
     202: #include "ckmxla.h"
     203: #endif /* MAC */
     204:
     205: #ifdef OS2              /* OS/2 */
     206: #include "ckuxla.h"         /* Uses big UNIX version */
     207: #endif /* OS2 */
     208:
     209: #ifdef AMIGA                /* Commodore Amiga */
     210: #include "ckuxla.h"
     211: #endif /* AMIGA */
     212:
     213: #ifdef datageneral          /* Data General MV AOS/VS */
     214: #include "ckuxla.h"
     215: #endif /* datageneral */
     216:
     217: #endif /* NOCSETS */
     218:
     219: #endif /* CKCXLA_H */
     220:
     221: #ifdef KANJI
     222: _PROTOTYP( int xkanjf, (void) );
     223: _PROTOTYP( int xkanjz, (int (*)(char)) );
     224: _PROTOTYP( int xkanji, (int, int (*)(char)) );
     225: #endif /* KANJI */
     226:
     227: /* End of ckcxla.h */

#### Defined struct's

csinfo defined in line 166; used 16 times

- in /usr/src/new/kermit5.188/ckcfn3.c line 55(2)
- in /usr/src/new/kermit5.188/ckcfns.c line 55(2)
- in /usr/src/new/kermit5.188/ckucon.c line 140(2)
- in /usr/src/new/kermit5.188/ckuus3.c line 77(2)
- in /usr/src/new/kermit5.188/ckuus4.c line 170(2)
- in /usr/src/new/kermit5.188/ckuxla.c line 104(2), 131(2), 164(2)

langinfo defined in line 176; used 8 times

- in /usr/src/new/kermit5.188/ckuus3.c line 78(2)
- in /usr/src/new/kermit5.188/ckuus4.c line 171(2)
- in /usr/src/new/kermit5.188/ckuxla.c line 372(2), 395(2)

#### Defined macros

AL_ARABIC defined in line 57; never used
AL_CYRIL defined in line 56; used 6 times

- in /usr/src/new/kermit5.188/ckuus4.c line 353
- in /usr/src/new/kermit5.188/ckuxla.c line 115, 194-197(4)

AL_GREEK defined in line 58; never used
AL_HAN defined in line 62; never used
AL_HEBREW defined in line 59; never used
AL_INDIA defined in line 63; never used
AL_JAPAN defined in line 61; used 8 times

- in /usr/src/new/kermit5.188/ckuus4.c line 343-344(2)
- in /usr/src/new/kermit5.188/ckuxla.c line 125-126(2), 200-203(4)

AL_KANA defined in line 60; never used
AL_ROMAN defined in line 55; used 26 times

- in /usr/src/new/kermit5.188/ckuxla.c line 107-110(3), 166-192(23)

AL_UNIV defined in line 54; never used
AL_UNK defined in line 65; used 4 times

- in /usr/src/new/kermit5.188/ckuxla.c line 106, 112-117(2), 128

CKCXLA_H defined in line 12; used 1 times

- in line 11

CYRILLIC defined in line 35; used 24 times

- in line 18-19(2), 34, 88, 96
- in /usr/src/new/kermit5.188/ckuus2.c line 488, 1613
- in /usr/src/new/kermit5.188/ckuus4.c line 348
- in /usr/src/new/kermit5.188/ckuus5.c line 1633
- in /usr/src/new/kermit5.188/ckuxla.c line 90, 114, 135, 193, 230, 251, 272, 298, 324, 348, 388, 422-427(2), 1393, 3000

FC_TRANSP defined in line 130; used 2 times

- in /usr/src/new/kermit5.188/ckuus7.c line 992
- in /usr/src/new/kermit5.188/ckuxla.c line 354

LATIN2 defined in line 29; used 21 times

- in line 21-22(2), 28
- in /usr/src/new/kermit5.188/ckuus3.c line 508
- in /usr/src/new/kermit5.188/ckuus4.c line 357
- in /usr/src/new/kermit5.188/ckuus5.c line 1630, 1688
- in /usr/src/new/kermit5.188/ckuxla.c line 95, 109, 141, 153, 181, 188, 227, 254, 262, 295, 327, 335, 1507, 2659

L_ARABIC defined in line 119; never used
L_ASCII defined in line 72; never used
L_CHINESE defined in line 117; never used
L_DANISH defined in line 85; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 375, 407

L_DUTCH defined in line 74; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 376, 408

L_FINNISH defined in line 75; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 377, 410

L_FRENCH defined in line 76; used 11 times

- in /usr/src/new/kermit5.188/ckuxla.c line 378, 411, 1918, 2091, 2117-2122(2), 2266, 2435, 2454, 2617, 2636

L_GERMAN defined in line 77; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 379, 412

L_GREEK defined in line 121; never used
L_HEBREW defined in line 120; never used
L_HUNGARIAN defined in line 78; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 380, 413

L_ICELANDIC defined in line 86; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 381, 414

L_ITALIAN defined in line 79; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 382, 415

L_JAPANESE defined in line 100; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 384, 417

L_KOREAN defined in line 118; never used
L_NORWEGIAN defined in line 80; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 386, 419

L_PORTUGUESE defined in line 81; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 387, 421

L_RUSSIAN defined in line 89; used 11 times

- in /usr/src/new/kermit5.188/ckucon.c line 564
- in /usr/src/new/kermit5.188/ckuxla.c line 389, 423-428(2), 3040, 3083, 3095, 3118, 3153, 3165, 3178

L_SPANISH defined in line 82; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 391, 425

L_SWEDISH defined in line 83; used 2 times

- in /usr/src/new/kermit5.188/ckuxla.c line 392, 426

L_SWISS defined in line 84; used 1 times

- in /usr/src/new/kermit5.188/ckuxla.c line 393

L_TURKISH defined in line 122; never used
L_USASCII defined in line 73; used 9 times

- in /usr/src/new/kermit5.188/ckucon.c line 566
- in /usr/src/new/kermit5.188/ckuus4.c line 413, 465, 1422
- in /usr/src/new/kermit5.188/ckuxla.c line 49, 374, 406-409(2), 420

MAXLANG defined in line 106; used 2 times

- in line 105
- in /usr/src/new/kermit5.188/ckuus4.c line 1417

MAXTCSETS defined in line 145; used 20 times

- in /usr/src/new/kermit5.188/ckcfn3.c line 59-65(4)
- in /usr/src/new/kermit5.188/ckcfns.c line 84-88(4)
- in /usr/src/new/kermit5.188/ckucon.c line 124-125(2), 131-132(2)
- in /usr/src/new/kermit5.188/ckuus4.c line 173-177(4)
- in /usr/src/new/kermit5.188/ckuxla.c line 3585-3587(2), 3788-3790(2)

TC_1LATIN defined in line 140; used 20 times

- in /usr/src/new/kermit5.188/ckuus4.c line 363
- in /usr/src/new/kermit5.188/ckuxla.c line 108, 146-152(6), 375-393(12)

TC_2LATIN defined in line 141; used 4 times

- in /usr/src/new/kermit5.188/ckuus4.c line 360
- in /usr/src/new/kermit5.188/ckuxla.c line 110, 154, 380

TC_3LATIN defined in line 151; never used
TC_4LATIN defined in line 152; never used
TC_5LATIN defined in line 153; never used
TC_ARABIC defined in line 154; never used
TC_CHINES defined in line 158; never used
TC_CYRILL defined in line 142; used 4 times

- in /usr/src/new/kermit5.188/ckuus4.c line 354
- in /usr/src/new/kermit5.188/ckuxla.c line 115, 136, 389

TC_GREEK defined in line 155; never used
TC_HEBREW defined in line 156; never used
TC_I10646 defined in line 160; never used
TC_JEUC defined in line 143; used 11 times

- in /usr/src/new/kermit5.188/ckcfns.c line 401, 410, 541, 597, 627, 659, 833
- in /usr/src/new/kermit5.188/ckuxla.c line 125-126(2), 139, 384

TC_JIS208 defined in line 157; never used
TC_KOREAN defined in line 159; never used
TC_TRANSP defined in line 138; used 17 times

- in /usr/src/new/kermit5.188/ckcfn3.c line 683, 1212
- in /usr/src/new/kermit5.188/ckcfns.c line 830, 1342, 2073
- in /usr/src/new/kermit5.188/ckucon.c line 574
- in /usr/src/new/kermit5.188/ckuus3.c line 1206
- in /usr/src/new/kermit5.188/ckuus4.c line 340-345(2), 412, 1441
- in /usr/src/new/kermit5.188/ckuxla.c line 47, 106, 112-117(2), 128, 156

TC_USASCII defined in line 139; used 4 times

- in /usr/src/new/kermit5.188/ckcfn3.c line 924
- in /usr/src/new/kermit5.188/ckuxla.c line 107, 134, 374

TS_L0 defined in line 43; used 1 times

- in /usr/src/new/kermit5.188/ckuxla.c line 46

TS_L1 defined in line 44; never used
TS_L2 defined in line 45; used 1 times

- in /usr/src/new/kermit5.188/ckuus4.c line 1437

UNK defined in line 47; used 662 times

- in /usr/src/new/kermit5.188/ckuxla.c line 579-610(32), 628, 639-641(3), 844-857(25), 867-877(34), 884-897(30), 906-917(34), 926-937(31), 952-957(22), 964-977(31), 998-1000(33), 1015-1025(30), 1035-1045(30), 1052-1065(28), 1074-1085(34), 1092-1105(35), 1120-1125(8), 1270-1275(30), 1405, 1426-1431(18), 1448-1452(55), 1467-1468(32), 1487-1492(16), 1563-1564(4), 1583-1588(17), 1601-1604(39), 1794-1802(4), 1858-1860(2), 1899, 1986, 2128

#### Usage of this include

ckcxla.h used 12 times

- in /usr/src/new/kermit5.188/ckcfn2.c line 24
- in /usr/src/new/kermit5.188/ckcfn3.c line 19
- in /usr/src/new/kermit5.188/ckcfns.c line 27
- in /usr/src/new/kermit5.188/ckucon.c line 38
- in /usr/src/new/kermit5.188/ckuus2.c line 23
- in /usr/src/new/kermit5.188/ckuus3.c line 25
- in /usr/src/new/kermit5.188/ckuus4.c line 28
- in /usr/src/new/kermit5.188/ckuus5.c line 24
- in /usr/src/new/kermit5.188/ckuus6.c line 22
- in /usr/src/new/kermit5.188/ckuus7.c line 27
- in /usr/src/new/kermit5.188/ckuusr.c line 92
- in /usr/src/new/kermit5.188/ckuxla.c line 37

Last modified: 1992-11-24 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1352 |