1 /* 2 This software is being provided to you, the LICENSEE, by the 3 Massachusetts Institute of Technology (M.I.T.) under the following 4 license. By obtaining, using and/or copying this software, you agree 5 that you have read, understood, and will comply with these terms and 6 conditions: 7 8 Permission to use, copy, modify and distribute, including the right to 9 grant others the right to distribute at any tier, this software and 10 its documentation for any purpose and without fee or royalty is hereby 11 granted, provided that you agree to comply with the following 12 copyright notice and statements, including the disclaimer, and that 13 the same appear on ALL copies of the software and documentation, 14 including modifications that you make for internal use or for 15 distribution: 16 17 Copyright 1992,1993 by the Massachusetts Institute of Technology. 18 All rights reserved. 19 20 THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS 21 OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not 22 limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF 23 MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE 24 OF THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD 25 PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. 26 27 The name of the Massachusetts Institute of Technology or M.I.T. may 28 NOT be used in advertising or publicity pertaining to distribution of 29 the software. Title to copyright in this software and any associated 30 documentation shall at all times remain with M.I.T., and USER agrees 31 to preserve same. 32 */ 33 34 #ifndef _xplot_h_ 35 #define _xplot_h_ 36 37 #include "config.h" 38 39 #ifdef HAVE_LIBX11 40 #include <X11/Xos.h> 41 #else 42 #error xplot requires X11 43 #endif 44 45 #ifdef STDC_HEADERS 46 #include <stdlib.h> 47 #else 48 #include <malloc.h> 49 #endif 50 51 #ifdef HAVE_LIBM 52 #include <math.h> 53 #ifdef ultrix 54 double rint(); /* YMUL! some versions of ultrix omit this from math.h! */ 55 #endif 56 #else 57 #error xplot requires libm/math.h 58 #endif 59 60 /* Coordinate type definitions */ 61 typedef union coord_u { 62 int i; 63 unsigned int u; 64 struct timeval t; 65 double d; 66 } coord; 67 68 typedef enum { U_INT, INT, TIMEVAL, DOUBLE, DTIME} coord_type; 69 70 #include "coord.h" 71 72 73 /* prototypes */ 74 void panic(char *s); 75 void fatalerror(char *s); 76 77 #endif 78