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

##### Macros

    ACK               X
    ASCII             X
    BINARY            X
    CR                X
    DISPLAY           X
    ENQ               X
    ESC               X
    FALSE             X
    GRAPHIC           X
    MODE              X
    PENUP             X
    PLOT              X
    TERMINAL          X
    TRUE              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:  *	@(#)hp2648.h	5.1.1 (2.11BSD GTE) 1/1/94
       7:  *
       8:  *
       9:  * Displays plot files on an hp2648a graphics terminals.  I have heard
      10:  * that all hp plotting devices use the same control sequences, so this
      11:  * might work for all hp devices capable of plotting.
      12:  */
      13:
      14: #include <stdio.h>
      15:
      16: #ifdef pdp11
      17: #include <sys/ioctl.h>
      18: #endif
      19:
      20: #define TERMINAL "/dev/tty"
      21:
      22: #define ENQ 05
      23: #define ACK 06
      24: #define ESC 033
      25: #define GRAPHIC '*'
      26: #define MODE    'm'
      27: #define PLOT    'p'
      28: #define DISPLAY 'd'
      29: #define PENUP   'a'
      30: #define BINARY  'i'
      31: #define ASCII   'f'
      32: #define CR  '\n'
      33:
      34: #define TRUE  1
      35: #define FALSE 0
      36:
      37: #define xsc(xi) ((int) (xi - lowx) * scalex + 0.5)
      38: #define ysc(yi) ((int) (yi - lowy) * scaley + 0.5)
      39:
      40: extern int shakehands;
      41:
      42: extern int currentx;
      43: extern int currenty;
      44: extern int buffcount;
      45: extern int fildes;
      46: extern float lowx;
      47: extern float lowy;
      48: extern float scalex;
      49: extern float scaley;
      50: extern struct sgttyb sarg;

#### Defined macros

ACK defined in line 23; used 1 times

- in /usr/src/usr.lib/libplot/hp2648/subr.c line 28

ASCII defined in line 31; never used
BINARY defined in line 30; used 5 times

- in /usr/src/usr.lib/libplot/hp2648/erase.c line 23
- in /usr/src/usr.lib/libplot/hp2648/label.c line 30
- in /usr/src/usr.lib/libplot/hp2648/linemod.c line 75
- in /usr/src/usr.lib/libplot/hp2648/open.c line 49
- in /usr/src/usr.lib/libplot/hp2648/subr.c line 46

CR defined in line 32; never used
DISPLAY defined in line 28; used 2 times

- in /usr/src/usr.lib/libplot/hp2648/erase.c line 18
- in /usr/src/usr.lib/libplot/hp2648/open.c line 44

ENQ defined in line 22; used 1 times

- in /usr/src/usr.lib/libplot/hp2648/subr.c line 22

ESC defined in line 24; used 10 times

- in /usr/src/usr.lib/libplot/hp2648/erase.c line 16-20(2)
- in /usr/src/usr.lib/libplot/hp2648/label.c line 17-27(3)
- in /usr/src/usr.lib/libplot/hp2648/linemod.c line 18, 72
- in /usr/src/usr.lib/libplot/hp2648/open.c line 42-46(2)
- in /usr/src/usr.lib/libplot/hp2648/subr.c line 43

FALSE defined in line 35; used 1 times

- in /usr/src/usr.lib/libplot/hp2648/open.c line 36

GRAPHIC defined in line 25; used 10 times

- in /usr/src/usr.lib/libplot/hp2648/erase.c line 17-21(2)
- in /usr/src/usr.lib/libplot/hp2648/label.c line 18-28(3)
- in /usr/src/usr.lib/libplot/hp2648/linemod.c line 19, 73
- in /usr/src/usr.lib/libplot/hp2648/open.c line 43-47(2)
- in /usr/src/usr.lib/libplot/hp2648/subr.c line 44

MODE defined in line 26; used 1 times

- in /usr/src/usr.lib/libplot/hp2648/linemod.c line 20

PENUP defined in line 29; used 1 times

- in /usr/src/usr.lib/libplot/hp2648/move.c line 20

PLOT defined in line 27; used 5 times

- in /usr/src/usr.lib/libplot/hp2648/erase.c line 22
- in /usr/src/usr.lib/libplot/hp2648/label.c line 29
- in /usr/src/usr.lib/libplot/hp2648/linemod.c line 74
- in /usr/src/usr.lib/libplot/hp2648/open.c line 48
- in /usr/src/usr.lib/libplot/hp2648/subr.c line 45

TERMINAL defined in line 20; used 1 times

- in /usr/src/usr.lib/libplot/hp2648/open.c line 29

TRUE defined in line 34; used 3 times

- in /usr/src/usr.lib/libplot/hp2648/close.c line 17
- in /usr/src/usr.lib/libplot/hp2648/open.c line 28
- in /usr/src/usr.lib/libplot/hp2648/subr.c line 19

xsc defined in line 37; used 7 times

- in /usr/src/usr.lib/libplot/hp2648/cont.c line 17, 24
- in /usr/src/usr.lib/libplot/hp2648/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/hp2648/move.c line 17, 25
- in /usr/src/usr.lib/libplot/hp2648/point.c line 16

ysc defined in line 38; used 7 times

- in /usr/src/usr.lib/libplot/hp2648/cont.c line 18, 25
- in /usr/src/usr.lib/libplot/hp2648/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/hp2648/move.c line 18, 26
- in /usr/src/usr.lib/libplot/hp2648/point.c line 16

#### Usage of this include

hp2648.h used 13 times

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

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