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

##### Macros

    MAXCOLS           X
    MAXLINES          X
    scale             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:  *	@(#)dumb.h	5.1.1 (2.11BSD GTE) 1/1/94
       7:  *
       8:  *
       9:  * This accepts plot file formats and produces the appropriate plots
      10:  * for dumb terminals.  It can also be used for printing terminals and
      11:  * lineprinter listings, although there is no way to specify number of
      12:  * lines and columns different from your terminal.  This would be easy
      13:  * to change, and is left as an exercise for the reader.
      14:  */
      15:
      16: #include <math.h>
      17:
      18: #define scale(x,y) y = LINES-1-(LINES*y/rangeY +minY); x = COLS*x/rangeX + minX
      19:
      20: extern int minX, rangeX;    /* min and range of x */
      21: extern int minY, rangeY;    /* min and range of y */
      22:
      23: extern int currentx, currenty;
      24: extern int COLS, LINES;
      25:
      26: /* A very large screen! (probably should use malloc) */
      27: #define MAXCOLS     132
      28: #define MAXLINES    90
      29:
      30: extern char screenmat[MAXCOLS][MAXLINES];

#### Defined macros

MAXCOLS defined in line 27; used 4 times

- in line 30
- in /usr/src/usr.lib/libplot/dumb/open.c line 28, 41-42(2)

MAXLINES defined in line 28; used 4 times

- in line 30
- in /usr/src/usr.lib/libplot/dumb/open.c line 28, 48-49(2)

scale defined in line 18; used 6 times

- in /usr/src/usr.lib/libplot/dumb/cont.c line 19
- in /usr/src/usr.lib/libplot/dumb/line.c line 18-21(2)
- in /usr/src/usr.lib/libplot/dumb/move.c line 16
- in /usr/src/usr.lib/libplot/dumb/point.c line 16
- in /usr/src/usr.lib/libplot/dumb/subr.c line 25

#### Usage of this include

dumb.h used 11 times

- in /usr/src/usr.lib/libplot/dumb/arc.c line 11
- in /usr/src/usr.lib/libplot/dumb/close.c line 12
- in /usr/src/usr.lib/libplot/dumb/cont.c line 11
- in /usr/src/usr.lib/libplot/dumb/erase.c line 11
- in /usr/src/usr.lib/libplot/dumb/label.c line 11
- in /usr/src/usr.lib/libplot/dumb/line.c line 11
- in /usr/src/usr.lib/libplot/dumb/move.c line 11
- in /usr/src/usr.lib/libplot/dumb/open.c line 20
- in /usr/src/usr.lib/libplot/dumb/point.c line 11
- in /usr/src/usr.lib/libplot/dumb/space.c line 11
- in /usr/src/usr.lib/libplot/dumb/subr.c line 11

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