# 2.11BSD#431 - /usr/src/usr.lib/libplot/t4014/subr.c

##### Functions

    cont              X
    putch             X

##### Variables

    botx              X
    boty              X
    obotx             X
    oboty             X
    oextra            X
    ohix              X
    ohiy              X
    oloy              X
    scaleflag         X
    scalex            X
    scaley            X

       1: #ifndef lint
       2: static char sccsid[] = "@(#)subr.c	4.1 (Berkeley) 6/27/83";
       3: #endif
       4:
       5: #include <stdio.h>
       6: float obotx = 0.;
       7: float oboty = 0.;
       8: float botx = 0.;
       9: float boty = 0.;
      10: float scalex = 1.;
      11: float scaley = 1.;
      12: int scaleflag;
      13:
      14: int oloy = -1;
      15: int ohiy = -1;
      16: int ohix = -1;
      17: int oextra = -1;
      18: cont(x,y){
      19:     int hix,hiy,lox,loy,extra;
      20:     int n;
      21:     x = (x-obotx)*scalex + botx;
      22:     y = (y-oboty)*scaley + boty;
      23:     hix=(x>>7) & 037;
      24:     hiy=(y>>7) & 037;
      25:     lox = (x>>2)&037;
      26:     loy=(y>>2)&037;
      27:     extra=x&03+(y<<2)&014;
      28:     n = (abs(hix-ohix) + abs(hiy-ohiy) + 6) / 12;
      29:     if(hiy != ohiy){
      30:         putch(hiy|040);
      31:         ohiy=hiy;
      32:     }
      33:     if(hix != ohix){
      34:         if(extra != oextra){
      35:             putch(extra|0140);
      36:             oextra=extra;
      37:         }
      38:         putch(loy|0140);
      39:         putch(hix|040);
      40:         ohix=hix;
      41:         oloy=loy;
      42:     }
      43:     else{
      44:         if(extra != oextra){
      45:             putch(extra|0140);
      46:             putch(loy|0140);
      47:             oextra=extra;
      48:             oloy=loy;
      49:         }
      50:         else if(loy != oloy){
      51:             putch(loy|0140);
      52:             oloy=loy;
      53:         }
      54:     }
      55:     putch(lox|0100);
      56:     while(n--)
      57:         putch(0);
      58: }
      59:
      60: putch(c){
      61:     putc(c,stdout);
      62: }

#### Defined functions

cont defined in line 18; used 21 times

- in /usr/src/ucb/PORT/pascal/pdx/process.h line 27
- in /usr/src/ucb/PORT/pascal/pdx/runtime/callproc.c line 180
- in /usr/src/ucb/PORT/pascal/pdx/tree/eval.c line 285
- in /usr/src/usr.bin/graph/graph.c line 510-512(3), 591
- in /usr/src/usr.lib/libplot/t4014/arc.c line 56, 84
- in /usr/src/usr.lib/libplot/t4014/box.c line 8-11(4)
- in /usr/src/usr.lib/libplot/t4014/line.c line 7
- in /usr/src/usr.lib/libplot/t4014/move.c line 7
- in /usr/src/usr.lib/libplot/t4014/point.c line 7
- in /usr/src/usr.lib/libplot/tf77/box.c line 15-18(4)
- in /usr/src/usr.lib/libplot/tf77/cont.c line 14

putch defined in line 60; used 31 times

- in line 30-39(4), 45-57(5)
- in /usr/src/usr.lib/libplot/t4014/close.c line 7-11(2)
- in /usr/src/usr.lib/libplot/t4014/erase.c line 11-12(2)
- in /usr/src/usr.lib/libplot/t4014/label.c line 27-31(3)
- in /usr/src/usr.lib/libplot/t4014/linemod.c line 9, 22
- in /usr/src/usr.lib/libplot/t4014/move.c line 6
- in /usr/src/usr.sbin/sendmail.MX/aux/mail-dm.c line 106-111(3), 126, 133, 139
- in /usr/src/usr.sbin/sendmail/aux/mail-dm.c line 106-111(3), 126, 133, 139

#### Defined variables

botx defined in line 8; used 2 times

- in line 21
- in /usr/src/usr.lib/libplot/t4014/space.c line 13

boty defined in line 9; used 8 times

- in line 22
- in /usr/src/usr.lib/libplot/t300/space.c line 10
- in /usr/src/usr.lib/libplot/t300/subr.c line 114
- in /usr/src/usr.lib/libplot/t300s/space.c line 10
- in /usr/src/usr.lib/libplot/t300s/subr.c line 158
- in /usr/src/usr.lib/libplot/t4014/space.c line 14
- in /usr/src/usr.lib/libplot/t450/space.c line 8
- in /usr/src/usr.lib/libplot/t450/subr.c line 118

obotx defined in line 6; used 8 times

- in line 21
- in /usr/src/usr.lib/libplot/t300/space.c line 11
- in /usr/src/usr.lib/libplot/t300/subr.c line 109
- in /usr/src/usr.lib/libplot/t300s/space.c line 11
- in /usr/src/usr.lib/libplot/t300s/subr.c line 153
- in /usr/src/usr.lib/libplot/t4014/space.c line 15
- in /usr/src/usr.lib/libplot/t450/space.c line 9
- in /usr/src/usr.lib/libplot/t450/subr.c line 113

oboty defined in line 7; used 8 times

- in line 22
- in /usr/src/usr.lib/libplot/t300/space.c line 12
- in /usr/src/usr.lib/libplot/t300/subr.c line 114
- in /usr/src/usr.lib/libplot/t300s/space.c line 12
- in /usr/src/usr.lib/libplot/t300s/subr.c line 158
- in /usr/src/usr.lib/libplot/t4014/space.c line 16
- in /usr/src/usr.lib/libplot/t450/space.c line 10
- in /usr/src/usr.lib/libplot/t450/subr.c line 118

oextra defined in line 17; used 5 times

- in line 34-36(2), 44-47(2)
- in /usr/src/usr.lib/libplot/t4014/erase.c line 15

ohix defined in line 16; used 4 times

- in line 28-33(2), 40
- in /usr/src/usr.lib/libplot/t4014/erase.c line 14

ohiy defined in line 15; used 4 times

- in line 28-31(3)
- in /usr/src/usr.lib/libplot/t4014/erase.c line 13

oloy defined in line 14; used 5 times

- in line 41, 48-52(3)
- in /usr/src/usr.lib/libplot/t4014/erase.c line 16

scaleflag defined in line 12; used 2 times

- in /usr/src/usr.lib/libplot/t4014/scale.c line 25
- in /usr/src/usr.lib/libplot/t4014/space.c line 17

scalex defined in line 10; used 3 times

- in line 21
- in /usr/src/usr.lib/libplot/t4014/scale.c line 22
- in /usr/src/usr.lib/libplot/t4014/space.c line 19

scaley defined in line 11; used 9 times

- in line 22
- in /usr/src/usr.lib/libplot/t300/space.c line 14
- in /usr/src/usr.lib/libplot/t300/subr.c line 114
- in /usr/src/usr.lib/libplot/t300s/space.c line 14
- in /usr/src/usr.lib/libplot/t300s/subr.c line 158
- in /usr/src/usr.lib/libplot/t4014/scale.c line 23
- in /usr/src/usr.lib/libplot/t4014/space.c line 20
- in /usr/src/usr.lib/libplot/t450/space.c line 12
- in /usr/src/usr.lib/libplot/t450/subr.c line 118

sccsid defined in line 2; never used

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