# 2.11BSD#431 - /usr/src/new/jove/ctype.h

##### Macros

    END_TABLE         X
    WITH_TABLE        X
    _C                X
    _Cl               X
    _L                X
    _N                X
    _Op               X
    _P                X
    _U                X
    _W                X
    has_syntax        X
    isalpha           X
    isclosep          X
    isctrl            X
    isdigit           X
    islower           X
    isopenp           X
    ispunct           X
    isspace           X
    isupper           X
    iswhite           X
    isword            X
    toascii           X
    tolower           X
    toupper           X

       1: /***************************************************************************
       2:  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
       3:  * is provided to you without charge, and with no warranty.  You may give  *
       4:  * away copies of JOVE, including sources, provided that this notice is    *
       5:  * included in all the files.                                              *
       6:  ***************************************************************************/
       7:
       8: /* The code in this file was snarfed from ctype.h and modified for JOVE. */
       9:
      10: #define _U  01
      11: #define _L  02
      12: #define _N  04
      13: #define _P  010
      14: #define _C  020
      15: #define _W  040
      16: #define _Op 0100
      17: #define _Cl 0200
      18:
      19: extern int  SyntaxTable;
      20: #define iswhite(c)  (isspace(c))
      21: #define isword(c)   ((CharTable[SyntaxTable])[c]&(_W))
      22: #define isalpha(c)  ((CharTable[SyntaxTable])[c]&(_U|_L))
      23: #define isupper(c)  ((CharTable[SyntaxTable])[c]&_U)
      24: #define islower(c)  ((CharTable[SyntaxTable])[c]&_L)
      25: #define isdigit(c)  ((CharTable[SyntaxTable])[c]&_N)
      26: #define isspace(c)  (c == ' ' || c == '\t')
      27: #define ispunct(c)  ((CharTable[SyntaxTable])[c]&_P)
      28:
      29:
      30: #define toascii(c)  ((c)&CHARMASK)
      31: #define isctrl(c)   ((CharTable[0][c&CHARMASK])&_C)
      32: #define isopenp(c)  ((CharTable[0][c&CHARMASK])&_Op)
      33: #define isclosep(c) ((CharTable[0][c&CHARMASK])&_Cl)
      34: #define has_syntax(c,s) ((CharTable[SyntaxTable][c&CHARMASK])&s)
      35:
      36: #ifdef ASCII
      37: #define toupper(c)  ((c)&~040)
      38: #define tolower(c)  ((c)|040)
      39: #else /* IBMPC or MAC */
      40: #define toupper(c)  (CaseEquiv[c])
      41: /* #define tolower(c)	((c)|040)	*/
      42: #endif /* IBMPC */
      43:
      44: #define WITH_TABLE(x) \
      45: { \
      46:     int push = SyntaxTable; \
      47:     SyntaxTable = x;
      48:
      49: #define END_TABLE() \
      50:     SyntaxTable = push; \
      51: }

#### Defined macros

END_TABLE defined in line 49; used 3 times

- in /usr/src/new/jove/abbrev.c line 160
- in /usr/src/new/jove/c.c line 226
- in /usr/src/new/jove/insert.c line 749

WITH_TABLE defined in line 44; used 3 times

- in /usr/src/new/jove/abbrev.c line 143
- in /usr/src/new/jove/c.c line 221
- in /usr/src/new/jove/insert.c line 747

_C defined in line 14; used 133 times

- in line 31
- in /usr/src/new/jove/ctype.c line 15-18(32), 30, 60-63(32), 75, 105-108(32), 120, 135-138(32), 150

_Cl defined in line 17; used 15 times

- in line 33
- in /usr/src/new/jove/c.c line 214, 314
- in /usr/src/new/jove/ctype.c line 20, 26-30(2), 65, 71-75(2), 110, 116-120(2), 140, 146-150(2)

_L defined in line 11; used 170 times

- in line 22-24(2)
- in /usr/src/new/jove/ctype.c line 27-33(29), 42-49(29), 72-78(29), 87-94(29), 117-120(26), 147-150(26)

_N defined in line 12; used 41 times

- in line 25
- in /usr/src/new/jove/ctype.c line 21-22(10), 66-67(10), 111-112(10), 141-142(10)

_Op defined in line 16; used 14 times

- in line 32
- in /usr/src/new/jove/c.c line 214
- in /usr/src/new/jove/ctype.c line 20, 26-30(2), 65, 71-75(2), 110, 116-120(2), 140, 146-150(2)

_P defined in line 13; used 212 times

- in line 27
- in /usr/src/new/jove/ctype.c line 19-30(33), 46-52(40), 64-75(33), 91-97(40), 109-120(33), 139-150(32)

_U defined in line 10; used 152 times

- in line 22-23(2)
- in /usr/src/new/jove/ctype.c line 23-26(26), 32-33(3), 42-53(20), 68-71(26), 77-78(3), 87-98(20), 113-116(26), 143-146(26)

_W defined in line 15; used 384 times

- in line 21
- in /usr/src/new/jove/ctype.c line 21-33(68), 42-53(49), 64-78(69), 87-98(49), 109-120(64), 139-150(83), 168

has_syntax defined in line 34; used 2 times

- in /usr/src/new/jove/c.c line 228, 314

isalpha defined in line 22; used 2 times

- in /usr/src/new/jove/extend.c line 207
- in /usr/src/new/jove/macros.c line 314

isclosep defined in line 33; used 2 times

- in /usr/src/new/jove/c.c line 178
- in /usr/src/new/jove/insert.c line 261

isctrl defined in line 31; used 11 times

- in /usr/src/new/jove/disp.c line 218, 623
- in /usr/src/new/jove/macros.c line 257
- in /usr/src/new/jove/move.c line 140
- in /usr/src/new/jove/screen.c line 683, 694, 754, 779, 827, 858, 874

isdigit defined in line 25; used 6 times

- in /usr/src/new/jove/extend.c line 549
- in /usr/src/new/jove/fp.c line 323
- in /usr/src/new/jove/misc.c line 50-54(2), 337, 343

islower defined in line 24; used 4 times

- in /usr/src/new/jove/abbrev.c line 171
- in /usr/src/new/jove/case.c line 115, 161
- in /usr/src/new/jove/funcdefs.c line 645

isopenp defined in line 32; used 1 times

- in /usr/src/new/jove/c.c line 172

ispunct defined in line 27; never used
isspace defined in line 26; used 2 times

- in line 20
- in /usr/src/new/jove/c.c line 575

isupper defined in line 23; used 4 times

- in /usr/src/new/jove/abbrev.c line 147
- in /usr/src/new/jove/case.c line 143
- in /usr/src/new/jove/extend.c line 723
- in /usr/src/new/jove/funcdefs.c line 632

iswhite defined in line 20; used 1 times

- in /usr/src/new/jove/re1.c line 264

isword defined in line 21; used 6 times

- in /usr/src/new/jove/ask.c line 125
- in /usr/src/new/jove/case.c line 89
- in /usr/src/new/jove/move.c line 273, 293
- in /usr/src/new/jove/util.c line 331, 341

toascii defined in line 30; never used
tolower defined in line 38; used 3 times

- in /usr/src/new/jove/abbrev.c line 152
- in /usr/src/new/jove/extend.c line 724
- in /usr/src/new/jove/funcdefs.c line 633

toupper defined in line 40; used 1 times

- in /usr/src/new/jove/abbrev.c line 173

#### Usage of this include

ctype.h used 18 times

- in /usr/src/new/jove/abbrev.c line 13
- in /usr/src/new/jove/ask.c line 10
- in /usr/src/new/jove/c.c line 12
- in /usr/src/new/jove/case.c line 9
- in /usr/src/new/jove/ctype.c line 9
- in /usr/src/new/jove/disp.c line 9
- in /usr/src/new/jove/extend.c line 11
- in /usr/src/new/jove/fp.c line 10
- in /usr/src/new/jove/funcdefs.c line 9
- in /usr/src/new/jove/insert.c line 9
- in /usr/src/new/jove/macros.c line 9
- in /usr/src/new/jove/misc.c line 9
- in /usr/src/new/jove/move.c line 9
- in /usr/src/new/jove/re.c line 11
- in /usr/src/new/jove/re1.c line 11
- in /usr/src/new/jove/recover.c line 333
- in /usr/src/new/jove/screen.c line 10
- in /usr/src/new/jove/util.c line 14

Last modified: 1988-03-15 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 738 |