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

##### Functions

    openpl            X

##### Variables

    currentx          X
    currenty          X
    lowx              X
    lowy              X
    scalex            X
    scaley            X

       1: /*
       2:  * Copyright (c) 1980 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  */
       6:
       7: #ifndef lint
       8: static char sccsid[] = "@(#)open.c	5.1 (Berkeley) 5/7/85";
       9: #endif not lint
      10:
      11: /*
      12:  * Displays plot files on a gigi "graphics" terminal.
      13:  */
      14:
      15: #include <signal.h>
      16: #include "gigi.h"
      17:
      18: int currentx = 0;
      19: int currenty = 0;
      20: double lowx = 0.0;
      21: double lowy = 0.0;
      22: double scalex = 1.0;
      23: double scaley = 1.0;
      24:
      25: openpl()
      26: {
      27:     int closepl();
      28:
      29:     /* catch interupts */
      30:     signal(SIGINT, closepl);
      31:     currentx = 0;
      32:     currenty = 0;
      33:     /* enter grapics mode */
      34:     putchar(ESC); putchar('P'); putchar('p');
      35:
      36:     /* set some parameters */
      37:     printf("S(I0 T0 [0,0])");
      38:
      39:     space(0, 0, XMAX, YMAX);
      40: }

#### Defined functions

openpl defined in line 25; never used

#### Defined variables

currentx defined in line 18; used 7 times

- in line 31
- in /usr/src/usr.lib/libplot/gigi/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/gigi/move.c line 16-18(2)
- in /usr/src/usr.lib/libplot/gigi/open.c line 31
- in /usr/src/usr.lib/libplot/gigi/point.c line 16

currenty defined in line 19; used 7 times

- in line 32
- in /usr/src/usr.lib/libplot/gigi/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/gigi/move.c line 17-18(2)
- in /usr/src/usr.lib/libplot/gigi/open.c line 32
- in /usr/src/usr.lib/libplot/gigi/point.c line 16

lowx defined in line 20; used 3 times

- in /usr/src/usr.lib/libplot/gigi/gigi.h line 25
- in /usr/src/usr.lib/libplot/gigi/space.c line 16-18(2)

lowy defined in line 21; used 3 times

- in /usr/src/usr.lib/libplot/gigi/gigi.h line 26
- in /usr/src/usr.lib/libplot/gigi/space.c line 17-19(2)

scalex defined in line 22; used 2 times

- in /usr/src/usr.lib/libplot/gigi/gigi.h line 25
- in /usr/src/usr.lib/libplot/gigi/space.c line 18

scaley defined in line 23; used 2 times

- in /usr/src/usr.lib/libplot/gigi/gigi.h line 26
- in /usr/src/usr.lib/libplot/gigi/space.c line 19

sccsid defined in line 8; never used

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