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 (Berkeley) 4/30/85
   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

PI defined in line 17; never used

Usage of this include

Last modified: 1985-05-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 755
Valid CSS Valid XHTML 1.0 Strict