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

##### Macros

    ESC               X
    PI                X
    XMAX              X
    YMAX              X
    xsc               X
    ysc               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:  *	@(#)gigi.h	5.1.1 (2.11BSD GTE) 1/1/94
       7:  */
       8:
       9: /*
      10:  * Displays plot files on a gigi "graphics" terminal.
      11:  */
      12:
      13: #include <stdio.h>
      14: #include <math.h>
      15:
      16: #define ESC 033
      17: #define PI  3.141592659
      18:
      19: /*
      20:  * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the
      21:  * lower left corner.
      22:  */
      23: #define XMAX    767
      24: #define YMAX    479
      25: #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5))
      26: #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5))
      27:
      28: extern int currentx;
      29: extern int currenty;
      30: extern double lowx;
      31: extern double lowy;
      32: extern double scalex;
      33: extern double scaley;

#### Defined macros

ESC defined in line 16; used 2 times

- in /usr/src/usr.lib/libplot/gigi/close.c line 20
- in /usr/src/usr.lib/libplot/gigi/open.c line 34

PI defined in line 17; used 1 times

- in /usr/src/usr.lib/libplot/gigi/arc.c line 39

XMAX defined in line 23; used 2 times

- in /usr/src/usr.lib/libplot/gigi/open.c line 39
- in /usr/src/usr.lib/libplot/gigi/space.c line 18

YMAX defined in line 24; used 3 times

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

xsc defined in line 25; used 5 times

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

ysc defined in line 26; used 5 times

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

#### Usage of this include

gigi.h used 12 times

- in /usr/src/usr.lib/libplot/gigi/arc.c line 11
- in /usr/src/usr.lib/libplot/gigi/circle.c line 11
- in /usr/src/usr.lib/libplot/gigi/close.c line 12
- in /usr/src/usr.lib/libplot/gigi/cont.c line 11
- in /usr/src/usr.lib/libplot/gigi/erase.c line 11
- in /usr/src/usr.lib/libplot/gigi/label.c line 11
- in /usr/src/usr.lib/libplot/gigi/line.c line 11
- in /usr/src/usr.lib/libplot/gigi/linemod.c line 11
- in /usr/src/usr.lib/libplot/gigi/move.c line 11
- in /usr/src/usr.lib/libplot/gigi/open.c line 16
- in /usr/src/usr.lib/libplot/gigi/point.c line 11
- in /usr/src/usr.lib/libplot/gigi/space.c line 11

Last modified: 1994-01-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 846 |