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

##### Macros

    ATMBL             X
    CKUCMD_H          X
    CMDBL             X
    CMDDEP            X
    CMT_COM           X
    CMT_FIL           X
    CMT_LBL           X
    CMT_SHE           X
    CM_ABR            X
    CM_INV            X
    DCMDBUF           X
    HLPBL             X
    HLPCW             X
    HLPLW             X
    LDEL              X
    RDIS              X
    WDEL              X
    getchar           X

##### struct's

    keytab            X

       1: /*  C K U C M D . H  --  Header file for Unix cmd package  */
       2:
       3: /*
       4:   Author: Frank da Cruz (fdc@columbia.edu, FDCCU@CUVMA.BITNET),
       5:   Columbia University Center for Computing Activities.
       6:   First released January 1985.
       7:   Copyright (C) 1985, 1992, Trustees of Columbia University in the City of New
       8:   York.  Permission is granted to any individual or institution to use this
       9:   software as long as it is not sold for profit.  This copyright notice must be
      10:   retained.  This software may not be included in commercial products without
      11:   written permission of Columbia University.
      12: */
      13:
      14: #ifndef CKUCMD_H
      15: #define CKUCMD_H
      16:
      17: /* Special getchars... */
      18:
      19: #ifdef DYNAMIC              /* Dynamic command buffers */
      20: #define DCMDBUF
      21: /*
      22:   Use malloc() to allocate the many command-related buffers in ckucmd.c.
      23: */
      24: #endif /* DYNAMIC */
      25:
      26: #ifdef VMS
      27: #define getchar()   vms_getchar()
      28: #endif /* VMS */
      29:
      30: #ifdef aegis
      31: #undef getchar
      32: #define getchar()   coninc(0)
      33: #endif /* aegis */
      34:
      35: #ifdef AMIGA
      36: #undef getchar
      37: #define getchar() coninc(0)
      38: #endif /* AMIGA */
      39:
      40: /* Sizes of things */
      41:
      42: #ifndef CMDDEP
      43: #define CMDDEP  20          /* Maximum command recursion depth */
      44: #endif /* CMDDEP */
      45: #define HLPLW   78          /* Width of ?-help line */
      46: #define HLPCW   19          /* Width of ?-help column */
      47: #define HLPBL  100          /* Help string buffer length */
      48: #define ATMBL  256          /* Command atom buffer length*/
      49: #ifdef NOSPL
      50: /* No script programming language, save some space */
      51: #define CMDBL 512           /* Command buffer length */
      52: #else
      53: #define CMDBL 1024          /* Command buffer length */
      54: #endif /* NOSPL */
      55:
      56: /* Special characters */
      57:
      58: #define RDIS 0022           /* Redisplay   (^R) */
      59: #define LDEL 0025           /* Delete line (^U) */
      60: #define WDEL 0027           /* Delete word (^W) */
      61:
      62: /* Keyword table flags */
      63:
      64: #define CM_INV 1            /* Invisible keyword */
      65: #define CM_ABR 2            /* Abbreviation */
      66:
      67: /* Token flags */
      68:
      69: #define CMT_COM 0           /* Comment (; or #) */
      70: #define CMT_SHE 1           /* Shell escape (!) */
      71: #define CMT_LBL 2           /* Label (:) */
      72: #define CMT_FIL 3           /* Indirect filespec (@) */
      73:
      74: /* Keyword Table Template */
      75:
      76: struct keytab {             /* Keyword table */
      77:     char *kwd;              /* Pointer to keyword string */
      78:     int kwval;              /* Associated value */
      79:     int flgs;               /* Flags (as defined above) */
      80: };
      81:
      82: /* Function prototypes */
      83:
      84: #ifdef CK_ANSIC             /* ANSI C */
      85: #ifdef M_SYSV               /* SCO Microsoft C wants no args */
      86: typedef int (*xx_strp)();
      87: #else
      88: typedef int (*xx_strp)(char *, char **, int *);
      89: #endif /* M_SYSV */
      90: #else                   /* Not ANSI C */
      91: typedef int (*xx_strp)();
      92: #endif /* CK_ANSIC */
      93:
      94: _PROTOTYP( int xxesc, (char **) );
      95: _PROTOTYP( VOID cmsetp, (char *) );
      96: _PROTOTYP( VOID cmsavp, (char [], int) );
      97: _PROTOTYP( VOID prompt, (xx_strp) );
      98: _PROTOTYP( VOID pushcmd, (void) );
      99: _PROTOTYP( VOID cmres, (void) );
     100: _PROTOTYP( VOID cmini, (int) );
     101: _PROTOTYP( int cmpush, (void) );
     102: _PROTOTYP( int cmpop, (void) );
     103: _PROTOTYP( VOID untab, (char *) );
     104: _PROTOTYP( int cmnum, (char *, char *, int, int *, xx_strp ) );
     105: _PROTOTYP( int cmofi, (char *, char *, char **, xx_strp ) );
     106: _PROTOTYP( int cmifi, (char *, char *, char **, int *, xx_strp ) );
     107: _PROTOTYP( int cmdir, (char *, char *, char **, xx_strp ) );
     108: _PROTOTYP( int cmfld, (char *, char *, char **, xx_strp ) );
     109: _PROTOTYP( int cmtxt, (char *, char *, char **, xx_strp ) );
     110: _PROTOTYP( int cmkey, (struct keytab [], int, char *, char *, xx_strp) );
     111: _PROTOTYP( int cmkey2,(struct keytab [], int, char *, char *, char *,xx_strp));
     112: _PROTOTYP( int chktok, (char *) );
     113: _PROTOTYP( int cmcfm, (void) );
     114: _PROTOTYP( int rdigits, (char *) );
     115: _PROTOTYP( int chknum, (char *) );
     116: _PROTOTYP( int lower, (char *) );
     117: _PROTOTYP( int lookup, (struct keytab [], char *, int, int *) );
     118: _PROTOTYP( int ungword, (void) );
     119:
     120: #ifdef DCMDBUF
     121: _PROTOTYP( int cmsetup, (void) );
     122: #endif /* DCMDBUF */
     123:
     124: #endif /* CKUCMD_H */
     125:
     126: /* End of ckucmd.h */

#### Defined struct's

keytab defined in line 76; used 304 times

- in line 110-111(4), 117(2)
- in /usr/src/new/kermit5.188/ckucmd.c line 1241-1246(4), 2196(2)
- in /usr/src/new/kermit5.188/ckudia.c line 902(2), 945(2)
- in /usr/src/new/kermit5.188/ckuus2.c line 50-51(4)
- in /usr/src/new/kermit5.188/ckuus3.c line 115(2), 124(2), 131(2), 140(2), 163(2), 202-205(4), 211(2), 218(2), 236-240(4), 254-258(4), 268-270(4), 282-285(4), 293(2), 300-312(8), 334-339(4), 346-355(6), 361-365(4), 372(2), 381(2), 388(2), 394(2), 401(2), 409(2), 415-430(8), 436-444(6), 544(2)
- in /usr/src/new/kermit5.188/ckuus4.c line 43(2), 77(2), 163(2), 169(2), 184(2), 225-229(4), 258(2), 266(2)
- in /usr/src/new/kermit5.188/ckuus5.c line 79(2), 93-95(4), 128(2), 139(2)
- in /usr/src/new/kermit5.188/ckuus6.c line 99(2), 113-116(4), 125-127(4), 148(2), 247(2), 466(2)
- in /usr/src/new/kermit5.188/ckuus7.c line 60(2), 94-95(4), 111(2), 127(2), 142(2), 161(2), 170(2), 178(2), 190-199(8), 205(2), 231-233(4), 243(2), 261(2), 276-285(6), 294(2), 314(2), 323(2), 341-349(6), 356-359(4), 382-392(8), 400-404(4), 415-417(4), 435-439(4), 446-453(6)
- in /usr/src/new/kermit5.188/ckuusr.c line 130(2), 218(2), 489(2), 508-513(4), 519(2), 644-648(4), 664-669(4), 691-693(4), 703-705(4), 720-725(4), 734-736(4), 755-759(4), 828-831(4), 837-840(4), 858(2), 870(2)
- in /usr/src/new/kermit5.188/ckuusy.c line 43(2)
- in /usr/src/new/kermit5.188/ckuxla.c line 133(2), 158(2), 211(2), 279-282(4), 356(2), 405(2), 431(2)

#### Defined macros

ATMBL defined in line 48; used 6 times

- in /usr/src/new/kermit5.188/ckucmd.c line 132-136(3), 179-182(3)

CKUCMD_H defined in line 15; used 1 times

- in line 14

CMDBL defined in line 53; used 29 times

- in /usr/src/new/kermit5.188/ckucmd.c line 130-137(3), 175-180(3), 275, 586, 627, 707, 786, 888, 992, 1077, 1181, 1279, 1332, 1377, 1599, 1796, 1808
- in /usr/src/new/kermit5.188/ckuus5.c line 655, 853, 875
- in /usr/src/new/kermit5.188/ckuus6.c line 1155, 1181, 1202, 1233
- in /usr/src/new/kermit5.188/ckuusr.h line 27

CMDDEP defined in line 43; used 7 times

- in line 42
- in /usr/src/new/kermit5.188/ckucmd.c line 294-296(3), 305, 312
- in /usr/src/new/kermit5.188/ckuus5.c line 1746

CMT_COM defined in line 69; never used
CMT_FIL defined in line 72; never used
CMT_LBL defined in line 71; never used
CMT_SHE defined in line 70; never used
CM_ABR defined in line 65; used 39 times

- in /usr/src/new/kermit5.188/ckucmd.c line 1355-1359(2), 1394
- in /usr/src/new/kermit5.188/ckuus3.c line 272
- in /usr/src/new/kermit5.188/ckuusr.c line 239, 290, 302-304(2), 318-320(2), 328, 345, 358, 409, 428-429(2), 521-522(2), 539-540(2), 563-564(2), 572, 659
- in /usr/src/new/kermit5.188/ckuxla.c line 146-150(5), 255-259(5), 328-332(5)

CM_INV defined in line 64; used 135 times

- in /usr/src/new/kermit5.188/ckucmd.c line 1402
- in /usr/src/new/kermit5.188/ckudia.c line 918-921(2)
- in /usr/src/new/kermit5.188/ckuus3.c line 164, 234, 272-276(2), 357-358(2), 375-376(2)
- in /usr/src/new/kermit5.188/ckuus5.c line 2292, 2301
- in /usr/src/new/kermit5.188/ckuus6.c line 103-106(4), 138
- in /usr/src/new/kermit5.188/ckuus7.c line 185, 244-251(8), 363-365(3), 371-378(4), 425, 441
- in /usr/src/new/kermit5.188/ckuusr.c line 220-230(5), 239-241(2), 250-257(3), 278-282(2), 290-292(2), 299-304(3), 318-320(2), 328-345(6), 352-358(3), 370-378(3), 384, 398, 404-409(2), 423-429(3), 435, 450, 476-486(7), 521-524(3), 539-546(4), 561-564(3), 572-577(2), 596, 635-641(3), 659-661(2), 671, 707, 717, 738, 773, 802, 825, 846
- in /usr/src/new/kermit5.188/ckuxla.c line 146-150(5), 221, 243, 255-259(5), 289, 313, 328-332(5), 406-425(7)

DCMDBUF defined in line 20; used 26 times

- in line 120
- in /usr/src/new/kermit5.188/ckucmd.c line 120, 172, 286, 310, 335, 416, 438
- in /usr/src/new/kermit5.188/ckuus2.c line 28
- in /usr/src/new/kermit5.188/ckuus3.c line 50, 86
- in /usr/src/new/kermit5.188/ckuus4.c line 110, 146
- in /usr/src/new/kermit5.188/ckuus5.c line 113, 242, 267, 277, 348
- in /usr/src/new/kermit5.188/ckuus6.c line 67, 165, 174, 204
- in /usr/src/new/kermit5.188/ckuus7.c line 63
- in /usr/src/new/kermit5.188/ckuusr.c line 158, 203
- in /usr/src/new/kermit5.188/ckuusx.c line 115

HLPBL defined in line 47; used 2 times

- in /usr/src/new/kermit5.188/ckucmd.c line 131, 178

HLPCW defined in line 46; used 1 times

- in /usr/src/new/kermit5.188/ckucmd.c line 107

HLPLW defined in line 45; used 1 times

- in /usr/src/new/kermit5.188/ckucmd.c line 106

LDEL defined in line 59; used 1 times

- in /usr/src/new/kermit5.188/ckucmd.c line 1719

RDIS defined in line 58; used 1 times

- in /usr/src/new/kermit5.188/ckucmd.c line 1749

WDEL defined in line 60; used 1 times

- in /usr/src/new/kermit5.188/ckucmd.c line 1729

getchar defined in line 37; used 8 times

- in line 31-36(2)
- in /usr/src/new/kermit5.188/ckucmd.c line 1881-1890(4)
- in /usr/src/new/kermit5.188/ckuus7.c line 1326-1328(2)

#### Usage of this include

ckucmd.h used 8 times

- in /usr/src/new/kermit5.188/ckucmd.c line 83, 2002
- in /usr/src/new/kermit5.188/ckucon.c line 35
- in /usr/src/new/kermit5.188/ckudia.c line 59
- in /usr/src/new/kermit5.188/ckufio.c line 211
- in /usr/src/new/kermit5.188/ckuusr.h line 16
- in /usr/src/new/kermit5.188/ckuusy.c line 20
- in /usr/src/new/kermit5.188/ckuxla.c line 36

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