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

##### Macros

    ESC               X
    PI                X
    XMAX              X
    YMAX              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:  *	@(#)bg.h	5.1.1 (2.11BSD GTE) 1/1/94
       7:  */
       8:
       9: /*
      10:  * Displays plot files on a bbn bitgraph terminal.
      11:  */
      12:
      13: #include <stdio.h>
      14: #include <math.h>
      15:
      16: #define ESC 033
      17: #define PI  3.141592659
      18:
      19: /* The graphics address range is 0..XMAX, 0..YMAX. */
      20: #define XMAX    768
      21: #define YMAX    1024
      22: #define scaleX(xi)  ((int) ((xi - lowx)*scale +0.5))
      23: #define scaleY(yi)  ((int) ((yi - lowy)*scale +0.5))
      24:
      25: extern int currentx;
      26: extern int currenty;
      27: extern double lowx;
      28: extern double lowy;
      29: extern double scale;

#### Defined macros

ESC defined in line 16; used 6 times

- in /usr/src/usr.lib/libplot/bitgraph/arc.c line 90
- in /usr/src/usr.lib/libplot/bitgraph/close.c line 21
- in /usr/src/usr.lib/libplot/bitgraph/cont.c line 19
- in /usr/src/usr.lib/libplot/bitgraph/erase.c line 16-18(2)
- in /usr/src/usr.lib/libplot/bitgraph/move.c line 19

PI defined in line 17; never used
XMAX defined in line 20; used 2 times

- in /usr/src/usr.lib/libplot/bitgraph/open.c line 34
- in /usr/src/usr.lib/libplot/bitgraph/space.c line 20

YMAX defined in line 21; used 2 times

- in /usr/src/usr.lib/libplot/bitgraph/open.c line 34
- in /usr/src/usr.lib/libplot/bitgraph/space.c line 21

scaleX defined in line 22; used 7 times

- in /usr/src/usr.lib/libplot/bitgraph/arc.c line 25-32(3)
- in /usr/src/usr.lib/libplot/bitgraph/cont.c line 17
- in /usr/src/usr.lib/libplot/bitgraph/line.c line 17-19(2)
- in /usr/src/usr.lib/libplot/bitgraph/move.c line 17

scaleY defined in line 23; used 7 times

- in /usr/src/usr.lib/libplot/bitgraph/arc.c line 26-33(3)
- in /usr/src/usr.lib/libplot/bitgraph/cont.c line 18
- in /usr/src/usr.lib/libplot/bitgraph/line.c line 17-19(2)
- in /usr/src/usr.lib/libplot/bitgraph/move.c line 18

#### Usage of this include

bg.h used 8 times

- in /usr/src/usr.lib/libplot/bitgraph/arc.c line 12
- in /usr/src/usr.lib/libplot/bitgraph/close.c line 13
- in /usr/src/usr.lib/libplot/bitgraph/cont.c line 12
- in /usr/src/usr.lib/libplot/bitgraph/erase.c line 12
- in /usr/src/usr.lib/libplot/bitgraph/line.c line 12
- in /usr/src/usr.lib/libplot/bitgraph/move.c line 12
- in /usr/src/usr.lib/libplot/bitgraph/open.c line 17
- in /usr/src/usr.lib/libplot/bitgraph/space.c line 12

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