# 2.11BSD#431 - /usr/src/ucb/window/char.h

##### Variables

    _cmap             X
    _unctrl           X

##### Macros

    _C                X
    _P                X
    _U                X
    ctrl              X
    isctrl            X
    isprt             X
    isunctrl          X
    unctrl            X

       1: /*
       2:  * @(#)char.h	3.3 4/24/85
       3:  */
       4:
       5: /*
       6:  * Copyright (c) 1983 Regents of the University of California,
       7:  * All rights reserved.  Redistribution permitted subject to
       8:  * the terms of the Berkeley Software License Agreement.
       9:  */
      10:
      11: /*
      12:  * Macros and things to deal with control characters.
      13:  *
      14:  * Unctrl() is just like the standard function, except we don't want
      15:  * to include curses.
      16:  * Isctrl() returns true for all characters less than space and
      17:  * greater than or equal to delete.
      18:  * Isprt() is tab and all characters not isctrl().  It's used
      19:  * by wwwrite().
      20:  * Isunctrl() includes all characters that should be expanded
      21:  * using unctrl() by wwwrite() if ww_unctrl is set.
      22:  */
      23:
      24: char *_unctrl[];
      25: char _cmap[];
      26: #define ctrl(c)     ('c' & 0x1f)
      27: #define unctrl(c)   (_unctrl[(unsigned char) (c)])
      28: #define _C      0x01
      29: #define _P      0x02
      30: #define _U      0x04
      31: #define isctrl(c)   (_cmap[(unsigned char) (c)] & _C)
      32: #define isprt(c)    (_cmap[(unsigned char) (c)] & _P)
      33: #define isunctrl(c) (_cmap[(unsigned char) (c)] & _U)

#### Defined variables

_cmap defined in line 25; used 3 times

- in line 31-33(3)

_unctrl defined in line 24; used 1 times

- in line 27

#### Defined macros

_C defined in line 28; used 162 times

- in line 31
- in /usr/src/ucb/window/char.c line 14-21(32), 48-84(129)

_P defined in line 29; used 97 times

- in line 32
- in /usr/src/ucb/window/char.c line 16, 23-48(95)

_U defined in line 30; used 253 times

- in line 33
- in /usr/src/ucb/window/char.c line 14-84(252)

ctrl defined in line 26; used 28 times

- in /usr/src/ucb/window/cmd.c line 30-38(9), 60, 106-130(9), 136-140(2)
- in /usr/src/ucb/window/cmd1.c line 130
- in /usr/src/ucb/window/win.c line 280
- in /usr/src/ucb/window/wwgets.c line 44
- in /usr/src/ucb/window/wwmisc.c line 36
- in /usr/src/ucb/window/wwwrite.c line 151-154(3)

isctrl defined in line 31; never used
isprt defined in line 32; used 3 times

- in /usr/src/ucb/window/wwwrite.c line 47, 60, 83

isunctrl defined in line 33; used 2 times

- in /usr/src/ucb/window/wwwrite.c line 48, 87

unctrl defined in line 27; used 7 times

- in /usr/src/ucb/window/startup.c line 44
- in /usr/src/ucb/window/wwgets.c line 46, 59
- in /usr/src/ucb/window/wwinit.c line 184
- in /usr/src/ucb/window/wwlabel.c line 52
- in /usr/src/ucb/window/wwwrite.c line 63, 90

#### Usage of this include

char.h used 13 times

- in /usr/src/ucb/window/char.c line 11
- in /usr/src/ucb/window/cmd.c line 12
- in /usr/src/ucb/window/cmd1.c line 12
- in /usr/src/ucb/window/cmd6.c line 13
- in /usr/src/ucb/window/error.c line 14
- in /usr/src/ucb/window/main.c line 15
- in /usr/src/ucb/window/startup.c line 14
- in /usr/src/ucb/window/win.c line 12
- in /usr/src/ucb/window/wwgets.c line 12
- in /usr/src/ucb/window/wwinit.c line 15
- in /usr/src/ucb/window/wwlabel.c line 12
- in /usr/src/ucb/window/wwmisc.c line 13
- in /usr/src/ucb/window/wwwrite.c line 13

Last modified: 1987-02-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 448 |