# 2.11BSD#431 - /usr/src/usr.lib/libplot/t300/open.c

##### Functions

    openpl            X
    openvt            X

##### Variables

    HEIGHT            X
    ITTY              X
    OUTF              X
    PTTY              X
    botx              X
    scalex            X
    xnow              X
    xoffset           X
    xscale            X
    ynow              X
    yscale            X

##### Macros

    ACK               X
    BEL               X
    CR                X
    DOWN              X
    FF                X
    HORZRES           X
    HORZRESP          X
    LEFT              X
    RIGHT             X
    UP                X
    VERTRES           X
    VERTRESP          X

       1: #ifndef lint
       2: static char sccsid[] = "@(#)open.c	4.1 (Berkeley) 6/27/83";
       3: #endif
       4:
       5: #
       6: #include <sgtty.h>
       7: /* gsi plotting output routines */
       8: # define DOWN 012
       9: # define UP 013
      10: # define LEFT 010
      11: # define RIGHT 040
      12: # define BEL 007
      13: # define ACK 006
      14: # define CR 015
      15: # define FF 014
      16: # define VERTRESP 48
      17: # define HORZRESP 60.
      18: # define HORZRES 6.
      19: # define VERTRES 8.
      20: /* down is line feed, up is reverse oyne feed,
      21:    left is bwckspace, right is space.  48 points per inch
      22:    vertically, 60 horizontally */
      23:
      24: int xnow, ynow;
      25: int OUTF;
      26: struct sgttyb ITTY, PTTY;
      27: float HEIGHT = 6.0, WIDTH = 6.0, OFFSET = 0.0;
      28: int xscale, xoffset, yscale;
      29: float botx = 0., boty = 0., obotx = 0., oboty = 0.;
      30: float scalex = 1., scaley = 1.;
      31:
      32: openpl ()
      33: {
      34:     int reset();
      35:         xnow = ynow = 0;
      36:         OUTF = 1;
      37:         printf("\r");
      38:         gtty(OUTF, &ITTY);
      39:         signal (2, reset);
      40:         PTTY = ITTY;
      41:         PTTY.sg_flags &= ~CRMOD;    /* don't map lf */
      42:         /* initialize constants */
      43:         xscale  = 4096./(HORZRESP * WIDTH);
      44:         yscale = 4096 /(VERTRESP * HEIGHT);
      45:         xoffset = OFFSET * HORZRESP;
      46:         return;
      47: }
      48:
      49: openvt(){
      50: openpl();
      51: }

#### Defined functions

openpl defined in line 32; used 1 times

- in line 50

openvt defined in line 49; never used

#### Defined variables

HEIGHT defined in line 27; used 1 times

- in line 44

ITTY defined in line 26; used 3 times

- in line 38-40(2)
- in /usr/src/usr.lib/libplot/t300/subr.c line 38

OUTF defined in line 25; used 4 times

- in line 36-38(2)
- in /usr/src/usr.lib/libplot/t300/subr.c line 29, 38

PTTY defined in line 26; used 3 times

- in line 40-41(2)
- in /usr/src/usr.lib/libplot/t300/subr.c line 29

botx defined in line 29; used 2 times

- in /usr/src/usr.lib/libplot/t300/space.c line 9
- in /usr/src/usr.lib/libplot/t300/subr.c line 109

scalex defined in line 30; used 2 times

- in /usr/src/usr.lib/libplot/t300/space.c line 13
- in /usr/src/usr.lib/libplot/t300/subr.c line 109

sccsid defined in line 2; never used
xnow defined in line 24; used 13 times

- in line 35
- in /usr/src/usr.lib/libplot/t300/label.c line 11
- in /usr/src/usr.lib/libplot/t300/line.c line 11, 37-38(2)
- in /usr/src/usr.lib/libplot/t300/subr.c line 77-90(7), 104

xoffset defined in line 28; used 2 times

- in line 45
- in /usr/src/usr.lib/libplot/t300/subr.c line 17

xscale defined in line 28; used 2 times

- in line 43
- in /usr/src/usr.lib/libplot/t300/subr.c line 17

ynow defined in line 24; used 10 times

- in line 35
- in /usr/src/usr.lib/libplot/t300/line.c line 11, 41-42(2)
- in /usr/src/usr.lib/libplot/t300/subr.c line 77, 94-104(5)

yscale defined in line 28; used 2 times

- in line 44
- in /usr/src/usr.lib/libplot/t300/subr.c line 24

#### Defined macros

ACK defined in line 13; never used
BEL defined in line 12; never used
CR defined in line 14; never used
DOWN defined in line 8; never used
FF defined in line 15; never used
HORZRES defined in line 18; never used
HORZRESP defined in line 17; used 2 times

- in line 43-45(2)

LEFT defined in line 10; never used
RIGHT defined in line 11; never used
UP defined in line 9; never used
VERTRES defined in line 19; never used
VERTRESP defined in line 16; used 1 times

- in line 44

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