v15i017: gnuplot 2.0 patch 1 (2 of 4)

Russell Lang rjl at monu1.cc.monash.edu.au
Sat Oct 6 10:12:55 AEST 1990


Posting-number: Volume 15, Issue 17
Submitted-by: Russell Lang <rjl at monu1.cc.monash.edu.au>
Archive-name: gnuplot2/patch02

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  patch1a
# Wrapped by eln272v at monu1 on Tue Sep 18 14:52:51 1990
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f patch1a -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"patch1a\"
else
echo shar: Extracting \"patch1a\" \(76676 characters\)
sed "s/^X//" >patch1a <<'END_OF_patch1a'
Xdiff -c ./README ../patch/README
X*** ./README	Tue Mar 27 08:58:56 1990
X--- ../patch/README	Thu Sep 13 10:07:14 1990
X***************
X*** 16,24
X  
X                       GNUPLOT 2.0 RELEASE NOTES
X  
X! New terminal drivers: Roland DXY800A, EEPIC, EPSON LX-800, Fig,
X! HP2648, HPGL, HP LaserJet, Imagen, Kermit-MS Tektronix emulator,
X! LaTeX, MCGA, NEC CP6 pinwriter, POSTSCRIPT, Proprinter, SUN, VGA.
X  
X  Additions:
X  
X
X--- 16,25 -----
X  
X                       GNUPLOT 2.0 RELEASE NOTES
X  
X! New terminal drivers: ATT6300, Roland DXY800A, EEPIC, emTeX, EPSON LX-800, 
X! EPSON 60dpi, Fig, HP2648, HPGL, HP LaserJet, Imagen, Kermit-MS Tektronix 
X! emulator, LaTeX, MCGA, NEC CP6 pinwriter, POSTSCRIPT, Proprinter, Star color 
X! printer, Tandy DMP-130, Tektronix 410x, SUN, VGA, X11.
X  
X  Additions:
X  
X***************
X*** 178,184
X                         PREPROCESSOR #DEFINES
X  
X  These #defines should be checked before compilation:
X! define  	  file	    		note
X  ------      ----            --------
X  VFORK       Makefile        define if you've got vfork() system call
X  GAMMA       Makefile        define if you've got gamma(3)
X
X--- 179,185 -----
X                         PREPROCESSOR #DEFINES
X  
X  These #defines should be checked before compilation:
X! define      file            note
X  ------      ----            --------
X  VFORK       Makefile        define if you've got vfork() system call
X  GAMMA       Makefile        define if you've got gamma(3)
X***************
X*** 199,205
X  various plotting terminals, printers, and protocols that a given version
X  of gnuplot can access:
X  
X! define 	    file	    note
X  ------      ----            --------
X  TERMFLAGS   Makefile        the set of terminals you want, from below
X  
X
X--- 200,206 -----
X  various plotting terminals, printers, and protocols that a given version
X  of gnuplot can access:
X  
X! define 	    file            note
X  ------      ----            --------
X  TERMFLAGS   Makefile        the set of terminals you want, from below
X              or term.h
X***************
X*** 202,207
X  define 	    file	    note
X  ------      ----            --------
X  TERMFLAGS   Makefile        the set of terminals you want, from below
X  
X     AED         AED 512 and AED 767
X     BITGRAPH    BBN BitGraph
X
X--- 203,209 -----
X  define 	    file            note
X  ------      ----            --------
X  TERMFLAGS   Makefile        the set of terminals you want, from below
X+             or term.h
X  
X     AED         AED 512 and AED 767
X     ATT6300     PC with AT&T 6300 graphics
X***************
X*** 204,209
X  TERMFLAGS   Makefile        the set of terminals you want, from below
X  
X     AED         AED 512 and AED 767
X     BITGRAPH    BBN BitGraph
X     DXY800A     Roland DXY800A plotter
X     EPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X
X--- 206,212 -----
X              or term.h
X  
X     AED         AED 512 and AED 767
X+    ATT6300     PC with AT&T 6300 graphics
X     BITGRAPH    BBN BitGraph
X     CORONA      PC with Corona graphics 325
X     DXY800A     Roland DXY800A plotter
X***************
X*** 205,210
X  
X     AED         AED 512 and AED 767
X     BITGRAPH    BBN BitGraph
X     DXY800A     Roland DXY800A plotter
X     EPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X     FIG         Fig graphics language (requires object.h from TransFig)
X
X--- 208,214 -----
X     AED         AED 512 and AED 767
X     ATT6300     PC with AT&T 6300 graphics
X     BITGRAPH    BBN BitGraph
X+    CORONA      PC with Corona graphics 325
X     DXY800A     Roland DXY800A plotter
X     EEPIC       EEPIC-extended LaTeX driver, for EEPIC users
X     EMTEX       LATEX picture environment with emTeX specials
X***************
X*** 206,211
X     AED         AED 512 and AED 767
X     BITGRAPH    BBN BitGraph
X     DXY800A     Roland DXY800A plotter
X     EPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X     FIG         Fig graphics language (requires object.h from TransFig)
X     HP2648      HP2648, HP2647
X
X--- 210,218 -----
X     BITGRAPH    BBN BitGraph
X     CORONA      PC with Corona graphics 325
X     DXY800A     Roland DXY800A plotter
X+    EEPIC       EEPIC-extended LaTeX driver, for EEPIC users
X+    EMTEX       LATEX picture environment with emTeX specials
X+    EPS60       Epson-style 60-dot per inch printers
X     EPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X     FIG         Fig graphics language (requires object.h from TransFig)
X     HERCULES    IBM PC/Clone with Hercules graphics board
X***************
X*** 208,213
X     DXY800A     Roland DXY800A plotter
X     EPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X     FIG         Fig graphics language (requires object.h from TransFig)
X     HP2648      HP2648, HP2647
X     HP26        HP2623A and maybe others
X     HP75        HP7580, and probably other HPs
X
X--- 215,221 -----
X     EPS60       Epson-style 60-dot per inch printers
X     EPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X     FIG         Fig graphics language (requires object.h from TransFig)
X+    HERCULES    IBM PC/Clone with Hercules graphics board
X     HP2648      HP2648, HP2647
X     HP26        HP2623A and maybe others
X     HP75        HP7580, and probably other HPs
X***************
X*** 223,229
X     QMS         QMS/QUIC laserprinter (Talaris 1200 and others)
X     REGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
X     SELANAR     Selanar
X!    TEK         Tektronix 4010, and probably others
X     SUN         Sun Microsystems Workstation
X     UNIXPC      unixpc (ATT 3b1 or ATT 7300)
X     UNIXPLOT    unixplot
X
X--- 231,237 -----
X     QMS         QMS/QUIC laserprinter (Talaris 1200 and others)
X     REGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
X     SELANAR     Selanar
X!    STARC       Star Color Printer
X     SUN         Sun Microsystems Workstation
X     T410X       Tektronix 4106, 4107, 4109 and 420x terminals
X     TANDY60     Tandy DMP-130 series 60-dot per inch graphics
X***************
X*** 225,230
X     SELANAR     Selanar
X     TEK         Tektronix 4010, and probably others
X     SUN         Sun Microsystems Workstation
X     UNIXPC      unixpc (ATT 3b1 or ATT 7300)
X     UNIXPLOT    unixplot
X     V384        Vectrix 384 and tandy color printer
X
X--- 233,241 -----
X     SELANAR     Selanar
X     STARC       Star Color Printer
X     SUN         Sun Microsystems Workstation
X+    T410X       Tektronix 4106, 4107, 4109 and 420x terminals
X+    TANDY60     Tandy DMP-130 series 60-dot per inch graphics
X+    TEK         Tektronix 4010, and probably others
X     UNIXPC      unixpc (ATT 3b1 or ATT 7300)
X     UNIXPLOT    unixplot
X     V384        Vectrix 384 and tandy color printer
X***************
X*** 228,233
X     UNIXPC      unixpc (ATT 3b1 or ATT 7300)
X     UNIXPLOT    unixplot
X     V384        Vectrix 384 and tandy color printer
X  
X  
X  These #defines are defined automatically by various compilers, some
X
X--- 239,245 -----
X     UNIXPC      unixpc (ATT 3b1 or ATT 7300)
X     UNIXPLOT    unixplot
X     V384        Vectrix 384 and tandy color printer
X+    X11         X11R4 window system
X  
X  
X  These #defines are defined automatically by various compilers, some
X***************
X*** 246,254
X  
X  under UNIX:  
X  To compile do:
X!     cp makefile.unx Makefile
X!     (make any changes to #defines, especially HELPDEST and TERMFLAGS)
X!     make
X  
X  under VMS:  
X   To compile:
X
X--- 258,271 -----
X  
X  under UNIX:  
X  To compile do:
X!   Copy one of makefile.unx, makefile.x11 or makefile.3b1,  
X!   to Makefile, for example
X!       cp makefile.unx Makefile
X!   Edit Makefile to change LIBS, #defines, especially HELPDEST and TERMFLAGS
X!   Edit term.h, to include/exclude terminals
X!       make
X!   If that works, try
X!       make install
X  
X  under VMS:  
X   To compile:
Xdiff -c ./README.x11 ../patch/README.x11
X*** ./README.x11	Thu Sep  6 09:21:38 1990
X--- ../patch/README.x11	Tue Sep  4 20:57:58 1990
X***************
X*** 0
X
X--- 1,49 -----
X+ Gnuplot Support for X11
X+ -----------------------
X+ 31 August 1990
X+ 
X+ Installing gnuplot X11 support requires:
X+ 
X+    o compilation of term.c with -DX11 included in TERMFLAGS
X+ 
X+    o compilation of plot.c with -DX11
X+ 
X+    o compilation of the outboard X11 terminal driver gnuplot_x11
X+ 
X+    o additions to the gnuplot(1) man page to describe command line
X+      options and tailorable resources available when gnuplot terminal
X+      types x11 or X11 are used.
X+ 
X+ makefile.x11 (a modified version of makefile.unx) provides these additional
X+ functions. The X11LIBS and X11INCLUDES parameters should be set to point to
X+ the X11 libraries and include files on your system. Comments give settings
X+ for several systems.
X+ 
X+ Sorry, as of this writing no support is available for systems without the 
X+ Athena widget library (libXaw.a), or platforms other than unix.
X+ 
X+ Differences from "xgnuplot"
X+ ---------------------------
X+ 
X+ This X11 support is based on (and replaces) the xgnuplot wrapper/terminal 
X+ driver which was distributed separately from gnuplot. Differences:
X+ 
X+    o Gnuplot silently invokes the outboard driver, rather than vice versa.
X+      Thus resource names in .Xdefaults begin with "gnuplot" rather than
X+      "xgnuplot". En passant, this change fixed the bug where xgnuplot would
X+      hang until Ctrl-C when gnuplot was exited without plotting at least
X+      one x11/X11 plot.
X+ 
X+    o When the window is resized, the currently displayed plot is automatically
X+      rescaled and replotted.
X+ 
X+    o Compiles under X11 R3 as well as R4. This required using XtInitialize
X+      instead of XtAppInitialize, (char *) instead of XtPointer for callback
X+      client data declarations, removing a reference to XGetGCValues, and 
X+      parameterizing (X11INCLUDES in makefile.x11) the location of the needed 
X+      Athena include files.
X+ 
X+ 
X+ ---------------------------------
X+ Ed Kubaitis, ejk at uxh.cso.uiuc.edu
X+ Computing Services Office - University of Illinois, Urbana
XCommon subdirectories: ./bugtest and ../patch/bugtest
Xdiff -c ./buildvms.com ../patch/buildvms.com
X*** ./buildvms.com	Tue Mar 27 08:59:27 1990
X--- ../patch/buildvms.com	Thu Sep  6 12:11:16 1990
X***************
X*** 1,6
X  $ ! buildvms.com  (Command file to compile/link gnuplot and doc2hlp)
X  $ CFLAGS = "/NOOP"
X! $ TERMFLAGS = "/define=(AED,BITGRAPH,DXY800A,HP2648,HP26,HP75,HPGL,KERMIT,LATEX,POSTSCRIPT,QMS,REGIS,SELANAR,TEK,V384)"
X  $ set verify
X  $ cc 'CFLAGS' command.c
X  $ cc 'CFLAGS' eval.c
X
X--- 1,7 -----
X  $ ! buildvms.com  (Command file to compile/link gnuplot and doc2hlp)
X  $ CFLAGS = "/NOOP"
X! $ !TERMFLAGS = "/define=()"
X! $ TERMFLAGS = ""
X  $ set verify
X  $ cc 'CFLAGS' command.c
X  $ cc 'CFLAGS' eval.c
Xdiff -c ./command.c ../patch/command.c
X*** ./command.c	Tue Mar 27 09:00:55 1990
X--- ../patch/command.c	Wed Sep 12 11:16:51 1990
X***************
X*** 40,45
X  
X  #ifdef __TURBOC__
X  #include <dos.h>	/* sleep() */
X  
X  #else	/* must be MSC */
X  #include <time.h>	/* kludge to provide sleep() */
X
X--- 40,47 -----
X  
X  #ifdef __TURBOC__
X  #include <dos.h>	/* sleep() */
X+ #include <conio.h>
X+ extern unsigned _stklen = 8192;	/* increase stack size */
X  
X  #else	/* must be MSC */
X  #include <time.h>	/* kludge to provide sleep() */
X***************
X*** 72,77
X  extern char *strcpy(),*strncpy(),*strcat();
X  extern int strlen(), strcmp();
X  
X  extern double magnitude(),angle(),real(),imag();
X  extern struct value *const_express(), *pop(), *complex();
X  extern struct at_type *temp_at(), *perm_at();
X
X--- 74,86 -----
X  extern char *strcpy(),*strncpy(),*strcat();
X  extern int strlen(), strcmp();
X  
X+ #ifdef unix
X+ extern char *getwd();
X+ #else
X+ extern char *getcwd();
X+ #endif
X+ extern int chdir();
X+ 
X  extern double magnitude(),angle(),real(),imag();
X  extern struct value *const_express(), *pop(), *complex();
X  extern struct at_type *temp_at(), *perm_at();
X***************
X*** 265,270
X  			c_token = num_tokens = 0;
X  		}
X  	}
X  	else if (almost_equals(c_token,"ex$it") ||
X  			almost_equals(c_token,"q$uit")) {
X  		done(IO_SUCCESS);
X
X--- 274,301 -----
X  			c_token = num_tokens = 0;
X  		}
X  	}
X+ 	else if (almost_equals(c_token,"cd")) {
X+ 		if (!isstring(++c_token))
X+ 			int_error("expecting directory name",c_token);
X+ 		else {
X+ 			quotel_str(sv_file,c_token);
X+ 			if (chdir(sv_file)) {
X+ 			  int_error("Can't change to this directory",c_token);
X+ 			}
X+ 		c_token++;
X+ 		}
X+ 	}
X+ 	else if (almost_equals(c_token,"pwd")) {
X+ #ifdef unix
X+ /* unix has getwd() */
X+ 	  (void) getwd(sv_file);
X+ #else
X+ /* Turbo C and VMS have getcwd() */
X+ 	  (void) getcwd(sv_file,MAX_ID_LEN);
X+ #endif
X+ 	  fprintf(stderr,"%s\n", sv_file);
X+ 	  c_token++;
X+ 	}
X  	else if (almost_equals(c_token,"ex$it") ||
X  			almost_equals(c_token,"q$uit")) {
X  		done(IO_SUCCESS);
X***************
X*** 281,287
X  			int_error("cannot set range with replot",c_token);
X  		if (!END_OF_COMMAND) {
X  			capture(str,c_token,num_tokens-1);
X! 			if ( (strlen(str) + strlen(input_line)) <= MAX_LINE_LEN-1) {
X  				(void) strcat(replot_line,",");
X  				(void) strcat(replot_line,str); 
X  			} else {
X
X--- 312,318 -----
X  			int_error("cannot set range with replot",c_token);
X  		if (!END_OF_COMMAND) {
X  			capture(str,c_token,num_tokens-1);
X! 			if ( (strlen(str) + strlen(replot_line)) <= MAX_LINE_LEN-1) {
X  				(void) strcat(replot_line,",");
X  				(void) strcat(replot_line,str); 
X  			} else {
X***************
X*** 1001,1007
X  	char *prompt;
X  {
X      register int i;
X!     int start = 0;
X      BOOLEAN more;
X      int last;
X      
X
X--- 1032,1038 -----
X  	char *prompt;
X  {
X      register int i;
X!     int start = 0, ilen = 0;
X      BOOLEAN more;
X      int last;
X      
X***************
X*** 1009,1016
X  	if (interactive) { /* if interactive use console IO so CED will work */
X  		cputs(prompt);
X  		do {
X! 		   input_line[start] = MAX_LINE_LEN - start - 1;
X! 		   cgets(&(input_line[start]));
X  		   (void) putc('\n',stderr);
X  		   if (input_line[start+2] == 26) {
X  			  /* end-of-file */
X
X--- 1040,1048 -----
X  	if (interactive) { /* if interactive use console IO so CED will work */
X  		cputs(prompt);
X  		do {
X! 		   ilen = MAX_LINE_LEN-start-1;
X! 		   input_line[start] = ilen > 126 ? 126 : ilen;
X! 		   (void) cgets(&(input_line[start]));
X  		   (void) putc('\n',stderr);
X  		   if (input_line[start+2] == 26) {
X  			  /* end-of-file */
XCommon subdirectories: ./demo and ../patch/demo
XCommon subdirectories: ./docs and ../patch/docs
Xdiff -c ./linkopt.tc ../patch/linkopt.tc
X*** ./linkopt.tc	Tue Mar 27 09:03:43 1990
X--- ../patch/linkopt.tc	Tue Aug 28 17:10:27 1990
X***************
X*** 1,2
X! \tc\lib\C0l command eval graphics help internal misc parse plot scanner setshow standard term util version cga egavga herc ,gnuplot,gnuplot, \tc\lib\emu \tc\lib\mathl \tc\lib\cl \tc\lib\graphics
X!         
X
X--- 1,9 -----
X! \tc\lib\C0l +
X! command eval graphics help internal misc parse +
X! plot scanner setshow standard term util version +
X! cga egavga herc att +
X! ,gnuplot,gnuplot, +
X! \tc\lib\emu +
X! \tc\lib\mathl +
X! \tc\lib\cl +
X! \tc\lib\graphics
Xdiff -c ./makefile.3b1 ../patch/makefile.3b1
X*** ./makefile.3b1	Tue Mar 27 08:59:02 1990
X--- ../patch/makefile.3b1	Mon Sep 10 10:10:56 1990
X***************
X*** 21,26
X  CC = cc
X  CFLAGS = -DGAMMA -O #-g
X  
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X  # -DAED         AED 512 and AED 767
X  # -DBITGRAPH    BBN BitGraph
X
X--- 21,31 -----
X  CC = cc
X  CFLAGS = -DGAMMA -O #-g
X  
X+ # -lplot iff you have -DUNIXPLOT
X+ # -lsuntool -lsunwindow -lpixrect  iff you have -DSUN
X+ # -lgl_s if IRIS4D
X+ LIBS = -lm -lplot
X+ 
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X  # other terminal flags defined in term.h
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X***************
X*** 22,48
X  CFLAGS = -DGAMMA -O #-g
X  
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X! # -DAED         AED 512 and AED 767
X! # -DBITGRAPH    BBN BitGraph
X! # -DDXY800A     Roland DXY800A plotter
X! # -DEPSON               Epson LX-800, Star NL-10, NX-1000 and lots of others
X! # -DFIG                 Fig graphics language (requires object.h from TransFig)
X! # -DHP2648              HP2648, HP2647
X! # -DHP26        HP2623A and maybe others
X! # -DHP75        HP7580, and probably other HPs
X! # -DHPGL                HP7475 and (hopefully) lots of others
X! # -DHPLJET              HP Laserjet
X! # -DIMAGEN      Imagen laser printers (300dpi) (requires -Iterm also)
X! # -DIRIS4D      IRIS4D series computer
X! # -DKERMIT      MS-Kermit Tektronix 4010 emulator
X! # -DLATEX       LATEX picture environment
X! # -DPOSTSCRIPT  Postscript
X! # -DPROPRINTER  IBM Proprinter
X! # -DQMS         QMS/QUIC laserprinter (Talaris 1200 and others)
X! # -DREGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
X! # -DSELANAR     Selanar
X! # -DTEK         Tektronix 4010, and probably others
X! # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X  # -DV384        Vectrix 384 and tandy color printer
X
X--- 27,33 -----
X  LIBS = -lm -lplot
X  
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X! # other terminal flags defined in term.h
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X  
X***************
X*** 45,51
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X- # -DV384        Vectrix 384 and tandy color printer
X  
X  TERMFLAGS =  -Iterm -DNEC -DUNIXPLOT -DUNIXPC
X  
X
X--- 30,35 -----
X  # other terminal flags defined in term.h
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X  
X  TERMFLAGS =  -Iterm -DUNIXPLOT -DUNIXPC
X  
X***************
X*** 47,53
X  # -DUNIXPLOT    unixplot
X  # -DV384        Vectrix 384 and tandy color printer
X  
X! TERMFLAGS =  -Iterm -DNEC -DUNIXPLOT -DUNIXPC
X  
X  OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
X      plot.o scanner.o setshow.o standard.o term.o util.o
X
X--- 31,37 -----
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X  
X! TERMFLAGS =  -Iterm -DUNIXPLOT -DUNIXPC
X  
X  OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
X      plot.o scanner.o setshow.o standard.o term.o util.o
X***************
X*** 57,64
X  CSOURCE2 = help.c graphics.c internal.c
X  CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
X  CSOURCE4 = term.c util.c version.c
X! CSOURCE5 = term/aed.trm term/dxy.trm term/epson.trm term/font5x7.trm \
X! 	term/hp26.trm term/hp2648.trm term/hpgl.trm \
X  	term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X  	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm \
X
X--- 41,48 -----
X  CSOURCE2 = help.c graphics.c internal.c
X  CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
X  CSOURCE4 = term.c util.c version.c
X! CSOURCE5 = term/aed.trm term/dxy.trm term/eps60.trm term/epson.trm \
X! 	term/font5x7.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
X  	term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X  	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X***************
X*** 61,68
X  	term/hp26.trm term/hp2648.trm term/hpgl.trm \
X  	term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X! 	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm \
X! 	term/imPcodes.h term/imagen.trm term/object.h term/fig.trm
X  # not C code, but still needed
X  ETC = README README.gnutex makefile.unx makefile.vms linkopt.vms \
X  	makefile.3b1 plot.h help.h setshow.h lasergnu \
X
X--- 45,53 -----
X  	term/font5x7.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
X  	term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X! 	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X! CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
X! 	term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
X  # not C code, but still needed
X  ETC = README README.gnutex makefile.unx makefile.vms linkopt.vms \
X  	README.x11 makefile.x11 \
X***************
X*** 65,71
X  	term/imPcodes.h term/imagen.trm term/object.h term/fig.trm
X  # not C code, but still needed
X  ETC = README README.gnutex makefile.unx makefile.vms linkopt.vms \
X! 	makefile.3b1 plot.h help.h setshow.h lasergnu \
X  	demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
X  	demo/simple.demo demo/polar.demo demo/electron.demo \
X  	bugtest/README bugtest/printf.c bugtest/scanf.c \
X
X--- 50,57 -----
X  	term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
X  # not C code, but still needed
X  ETC = README README.gnutex makefile.unx makefile.vms linkopt.vms \
X! 	README.x11 makefile.x11 \
X! 	makefile.3b1 plot.h help.h setshow.h term.h lasergnu \
X  	demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
X  	demo/simple.demo demo/polar.demo demo/electron.demo \
X  	bugtest/README bugtest/printf.c bugtest/scanf.c \
X***************
X*** 90,99
X  	translate/plot.h translate/scanner.c translate/standard.c \
X  	translate/test1 translate/test2 translate/util.c
X  
X! # -lplot iff you have -DUNIXPLOT
X! # -lsuntool -lsunwindow -lpixrect  iff you have -DSUN
X! # -lgl_s if IRIS4D
X! LIBS = -lm -lplot
X  
X  gnuplot: $(OBJS) version.o
X  	ld /lib/crt0s.o /lib/shlib.ifile $(OBJS) version.o $(LIBS) -o gnuplot
X
X--- 76,82 -----
X  	translate/plot.h translate/scanner.c translate/standard.c \
X  	translate/test1 translate/test2 translate/util.c
X  
X! all:    gnuplot doc
X  
X  gnuplot: $(OBJS) version.o
X  	ld /lib/crt0s.o /lib/shlib.ifile $(OBJS) version.o $(LIBS) -o gnuplot
X***************
X*** 104,111
X  translate:
X  	(cd translate; make)
X  
X- all:    gnuplot doc
X- 
X  install: gnuplot doc man_install
X  	cp gnuplot lasergnu $(DEST)
X  	strip $(DEST)/gnuplot
X
X--- 87,92 -----
X  translate:
X  	(cd translate; make)
X  
X  install: gnuplot doc man_install
X  	cp gnuplot lasergnu $(DEST)
X  	strip $(DEST)/gnuplot
X***************
X*** 114,120
X  man_install: docs/gnuplot.1 docs/lasergnu.1
X  	cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
X  
X! term.o: $(CSOURCE4) $(CSOURCE5) $(CSOURCE6)
X  	$(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
X  
X  $(OBJS): plot.h
X
X--- 95,101 -----
X  man_install: docs/gnuplot.1 docs/lasergnu.1
X  	cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
X  
X! term.o: $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
X  	$(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
X  
X  $(OBJS): plot.h
X***************
X*** 127,133
X  command.o graphics.o misc.o plot.o setshow.o: setshow.h
X  
X  SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
X! 	$(CSOURCE4) $(CSOURCE5) $(CSOURCE6)
X  
X  lint:
X  	lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
X
X--- 108,114 -----
X  command.o graphics.o misc.o plot.o setshow.o: setshow.h
X  
X  SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
X! 	$(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
X  
X  lint:
X  	lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
Xdiff -c ./makefile.msc ../patch/makefile.msc
X*** ./makefile.msc	Tue Mar 27 09:03:45 1990
X--- ../patch/makefile.msc	Mon Sep  3 15:59:53 1990
X***************
X*** 10,16
X  # /DPC means define symbol PC
X  CFLAGS = /c /AL /DPC #/DMSDOS #/Zi #/Od
X  
X! TERMFLAGS = /DHERCULES /DCORONA /DATT6300 /DEPSON /DPOSTSCRIPT /DHP75 /DHPGL /DDXY800A  /DNEC
X  
X  # /NOE means NO EXTernal Dictionary
X  # /EX  means pack EXE file
X
X--- 10,17 -----
X  # /DPC means define symbol PC
X  CFLAGS = /c /AL /DPC #/DMSDOS #/Zi #/Od
X  
X! # see other terminal defines in term.h
X! TERMFLAGS = 
X  
X  # /NOE means NO EXTernal Dictionary
X  # /EX  means pack EXE file
X***************
X*** 21,29
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X  	term.obj util.obj version.obj pcgraph.obj hrcgraph.obj corgraph.obj
X  
X! CSOURCE5 = term\aed.trm term\dxy.trm term\epson.trm term\font5x7.trm \
X! 	term\hp26.trm term\hp2648.trm term\hpgl.trm \
X! 	term\hpljet.trm term\iris4d.trm term\latex.trm 
X  CSOURCE6 = term\post.trm term\pc.trm term\qms.trm term\regis.trm \
X  	term\tek.trm term\unixpc.trm term\unixplot.trm term\v384.trm \
X  	term\imPcodes.h term\imagen.trm term\object.h term\fig.trm
X
X--- 22,30 -----
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X  	term.obj util.obj version.obj pcgraph.obj hrcgraph.obj corgraph.obj
X  
X! CSOURCE5 = term\aed.trm term\dxy.trm term\eps60.trm term\epson.trm \
X! 	term\font5x7.trm term\hp26.trm term\hp2648.trm term\hpgl.trm \
X! 	term\hpljet.trm term\iris4d.trm term\latex.trm term\sun.trm
X  CSOURCE6 = term\post.trm term\pc.trm term\qms.trm term\regis.trm \
X  	term\tek.trm term\unixpc.trm term\unixplot.trm term\v384.trm \
X  	term\imPcodes.h term\imagen.trm term\object.h term\fig.trm
X***************
X*** 65,72
X  
X  standard.obj: standard.c plot.h
X  
X! term.obj: term.c plot.h $(CSOURCE5) $(CSOURCE6)
X! 	cl $(CFLAGS) $(TERMFLAGS) term.c
X  
X  util.obj: util.c plot.h
X  
X
X--- 66,73 -----
X  
X  standard.obj: standard.c plot.h
X  
X! term.obj: term.c term.h plot.h $(CSOURCE5) $(CSOURCE6)
X! 	cl $(CFLAGS) $(TERMFLAGS) /Iterm term.c
X  
X  util.obj: util.c plot.h
X  
Xdiff -c ./makefile.tc ../patch/makefile.tc
X*** ./makefile.tc	Tue Mar 27 09:03:46 1990
X--- ../patch/makefile.tc	Mon Sep  3 15:58:19 1990
X***************
X*** 8,15
X  # location of Turbo C compiler
X  # if this is changed then linkopt.tc will need to be edited.
X  TC = \tc
X! # location of BGI files
X! BGI = $(TC)
X  # -c means don't link, -f means emulate 8087 if not present
X  # -ml means use large model (large code, large data)
X  # -M means produce link map
X
X--- 8,16 -----
X  # location of Turbo C compiler
X  # if this is changed then linkopt.tc will need to be edited.
X  TC = \tc
X! # location of BGI files and BGIOBJ.EXE,
X! # change this line if not in TC directory, i.e. $(TC)\bgi
X! BGI = $(TC)\bgi
X  # -c means don't link, -f means emulate 8087 if not present
X  # -ml means use large model (large code, large data)
X  # -M means produce link map
X***************
X*** 15,22
X  # -M means produce link map
X  # -y means include line numbers for debugger
X  # -v means include debug info
X! CFLAGS = -c -f -ml -M -y -v -I$(TC)\include -DMSDOS -DPC
X! TERMFLAGS = -DPOSTSCRIPT -DHPGL -DHP75 -DDXY800A -DEPSON -DNEC
X  
X  OBJS = 	command.obj eval.obj graphics.obj help.obj internal.obj \
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X
X--- 16,24 -----
X  # -M means produce link map
X  # -y means include line numbers for debugger
X  # -v means include debug info
X! # -w- means ignore warnings and do not report them
X! CFLAGS = -c -f -ml -M -y -v -w- -I$(TC)\include -DMSDOS -DPC
X! TERMFLAGS = 
X  
X  OBJS = 	command.obj eval.obj graphics.obj help.obj internal.obj \
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X***************
X*** 20,26
X  
X  OBJS = 	command.obj eval.obj graphics.obj help.obj internal.obj \
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X! 	term.obj util.obj version.obj cga.obj egavga.obj herc.obj
X  
X  CSOURCE5 = term\aed.trm term\dxy.trm term\epson.trm term\font5x7.trm \
X  	term\hp26.trm term\hp2648.trm term\hpgl.trm \
X
X--- 22,28 -----
X  
X  OBJS = 	command.obj eval.obj graphics.obj help.obj internal.obj \
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X! 	term.obj util.obj version.obj cga.obj egavga.obj herc.obj att.obj
X  
X  CSOURCE5 = term\aed.trm term\dxy.trm term\eps60.trm term\epson.trm \
X  	term\font5x7.trm term\hp26.trm term\hp2648.trm term\hpgl.trm \
X***************
X*** 22,29
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X  	term.obj util.obj version.obj cga.obj egavga.obj herc.obj
X  
X! CSOURCE5 = term\aed.trm term\dxy.trm term\epson.trm term\font5x7.trm \
X! 	term\hp26.trm term\hp2648.trm term\hpgl.trm \
X  	term\hpljet.trm term\iris4d.trm term\latex.trm 
X  CSOURCE6 = term\post.trm term\pc.trm term\qms.trm term\regis.trm \
X  	term\tek.trm term\unixpc.trm term\unixplot.trm term\v384.trm \
X
X--- 24,31 -----
X  	misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
X  	term.obj util.obj version.obj cga.obj egavga.obj herc.obj att.obj
X  
X! CSOURCE5 = term\aed.trm term\dxy.trm term\eps60.trm term\epson.trm \
X! 	term\font5x7.trm term\hp26.trm term\hp2648.trm term\hpgl.trm \
X  	term\hpljet.trm term\iris4d.trm term\latex.trm 
X  CSOURCE6 = term\post.trm term\pc.trm term\qms.trm term\regis.trm \
X  	term\tek.trm term\unixpc.trm term\unixplot.trm term\v384.trm \
X***************
X*** 65,72
X  
X  standard.obj: standard.c plot.h
X  
X! term.obj: term.c plot.h $(CSOURCE5) $(CSOURCE6)
X! 	tcc $(CFLAGS) $(TERMFLAGS) term.c
X  	
X  util.obj: util.c plot.h
X  
X
X--- 67,74 -----
X  
X  standard.obj: standard.c plot.h
X  
X! term.obj: term.c term.h plot.h $(CSOURCE5) $(CSOURCE6)
X! 	tcc $(CFLAGS) $(TERMFLAGS) -Iterm term.c
X  	
X  util.obj: util.c plot.h
X  
X***************
X*** 81,87
X  
X  # convert Borland Graphics Interface files to object for linking
X  cga.obj: $(BGI)\cga.bgi
X! 	bgiobj $(BGI)\cga
X  
X  egavga.obj: $(BGI)\egavga.bgi
X  	bgiobj $(BGI)\egavga
X
X--- 83,89 -----
X  
X  # convert Borland Graphics Interface files to object for linking
X  cga.obj: $(BGI)\cga.bgi
X! 	$(BGI)\bgiobj $(BGI)\cga
X  
X  egavga.obj: $(BGI)\egavga.bgi
X  	$(BGI)\bgiobj $(BGI)\egavga
X***************
X*** 84,90
X  	bgiobj $(BGI)\cga
X  
X  egavga.obj: $(BGI)\egavga.bgi
X! 	bgiobj $(BGI)\egavga
X  
X  herc.obj: $(BGI)\herc.bgi
X  	bgiobj $(BGI)\herc
X
X--- 86,92 -----
X  	$(BGI)\bgiobj $(BGI)\cga
X  
X  egavga.obj: $(BGI)\egavga.bgi
X! 	$(BGI)\bgiobj $(BGI)\egavga
X  
X  herc.obj: $(BGI)\herc.bgi
X  	$(BGI)\bgiobj $(BGI)\herc
X***************
X*** 87,90
X  	bgiobj $(BGI)\egavga
X  
X  herc.obj: $(BGI)\herc.bgi
X! 	bgiobj $(BGI)\herc
X
X--- 89,95 -----
X  	$(BGI)\bgiobj $(BGI)\egavga
X  
X  herc.obj: $(BGI)\herc.bgi
X! 	$(BGI)\bgiobj $(BGI)\herc
X! 
X! att.obj: $(BGI)\att.bgi
X! 	$(BGI)\bgiobj $(BGI)\att
Xdiff -c ./makefile.ult ../patch/makefile.ult
X*** ./makefile.ult	Tue Mar 27 08:59:07 1990
X--- ../patch/makefile.ult	Thu Sep 13 10:21:36 1990
X***************
X*** 1,12
X  #
X  # GNUPLOT Makefile for Ultrix
X  #
X- # Note: Ultrix standard cc compiler has a bug with static structure
X- # initializations [such as struct ts {int x;} tb[]={{100*0.32}};]
X- # and so this makefile uses vcc instead.  If this isn't possible,
X- # and you get "line xx: illegal initialization", then you'll have
X- # to go into the .trm include file and compute all the floating point
X- # defines with a calculator.
X  
X  # directory where to install executables on 'make install'
X  DEST=/usr/local/bin
X
X--- 1,6 -----
X  #
X  # GNUPLOT Makefile for Ultrix
X  #
X  
X  #   Changes were made in patch 1 so that the standard Ultrix cc compiler
X  #   can be used.  Use makefile.unx.
X***************
X*** 8,20
X  # to go into the .trm include file and compute all the floating point
X  # defines with a calculator.
X  
X! # directory where to install executables on 'make install'
X! DEST=/usr/local/bin
X! # directory for installing man page on 'make man_install'
X! MANDEST=/usr/man/manl
X! # where to install help file gnuplot.gih
X! #HELPDEST=/usr/local/lib/gnuplot.gih
X! HELPDEST=docs/gnuplot.gih
X  
X  # -DVFORK if you have vfork()
X  # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
X
X--- 2,9 -----
X  # GNUPLOT Makefile for Ultrix
X  #
X  
X! #   Changes were made in patch 1 so that the standard Ultrix cc compiler
X! #   can be used.  Use makefile.unx.
X  
X  all:
X  	echo "Use makefile.unx instead"
X***************
X*** 16,28
X  #HELPDEST=/usr/local/lib/gnuplot.gih
X  HELPDEST=docs/gnuplot.gih
X  
X! # -DVFORK if you have vfork()
X! # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
X! # -DBZERO if you need to use bzero() (another BSD feature) instead of memset()
X! # -DNOCOPY if you don't have a memcpy() by any name
X! # -DGAMMA if you've got gamma(3)
X! # -O if you trust your compiler's optimizer
X! CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA -O #-gx 
X  
X  # Not wise to use vcc for everything because math.h isn't compatible with
X  # vcc.  (How can they get away with this?)
X
X--- 5,10 -----
X  #   Changes were made in patch 1 so that the standard Ultrix cc compiler
X  #   can be used.  Use makefile.unx.
X  
X! all:
X! 	echo "Use makefile.unx instead"
X  
X***************
X*** 24,157
X  # -O if you trust your compiler's optimizer
X  CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA -O #-gx 
X  
X- # Not wise to use vcc for everything because math.h isn't compatible with
X- # vcc.  (How can they get away with this?)
X- #CC = vcc
X- 
X- # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X- # -DAED         AED 512 and AED 767
X- # -DBITGRAPH    BBN BitGraph
X- # -DDXY800A     Roland DXY800A plotter
X- # -DEPSON               Epson LX-800, Star NL-10, NX-1000 and lots of others
X- # -DFIG                 Fig graphics language (requires object.h from TransFig)
X- # -DHP2648              HP2648, HP2647
X- # -DHP26        HP2623A and maybe others
X- # -DHP75        HP7580, and probably other HPs
X- # -DHPGL                HP7475 and (hopefully) lots of others
X- # -DHPLJET              HP Laserjet
X- # -DIMAGEN      Imagen laser printers (300dpi) (requires -Iterm also)
X- # -DIRIS4D      IRIS4D series computer
X- # -DKERMIT      MS-Kermit Tektronix 4010 emulator
X- # -DLATEX       LATEX picture environment
X- # -DPOSTSCRIPT  Postscript
X- # -DPROPRINTER  IBM Proprinter
X- # -DQMS         QMS/QUIC laserprinter (Talaris 1200 and others)
X- # -DREGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
X- # -DSELANAR     Selanar
X- # -DTEK         Tektronix 4010, and probably others
X- # -DSUN         Sun Microsystems Workstation
X- # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X- # -DUNIXPLOT    unixplot
X- # -DV384        Vectrix 384 and tandy color printer
X- 
X- TERMFLAGS =  -Iterm -DAED -DBITGRAPH -DDXY800A -DEPSON -DHP2648 \
X- 	-DHP26 -DHP75 -DHPGL -DHPLJET -DIMAGEN -DKERMIT -DLATEX \
X- 	-DPOSTSCRIPT -DPROPRINTER -DQMS -DREGIS -DSELANAR -DTEK \
X- 	-DUNIXPLOT -DV384
X- 
X- #TERMFLAGS =  -Iterm -DIMAGEN
X- 
X- OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
X-     plot.o scanner.o setshow.o standard.o term.o util.o
X- 
X- DIRS = term demo bugtest docs docs/latextut translate
X- CSOURCE1 = command.c setshow.c
X- CSOURCE2 = help.c graphics.c internal.c
X- CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
X- CSOURCE4 = term.c util.c version.c
X- CSOURCE5 = term/aed.trm term/dxy.trm term/epson.trm term/font5x7.trm \
X- 	term/hp26.trm term/hp2648.trm term/hpgl.trm \
X- 	term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
X- CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X- 	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm \
X- 	term/imPcodes.h term/imagen.trm term/object.h term/fig.trm
X- # not C code, but still needed
X- ETC = README README.gnutex makefile.unx makefile.vms linkopt.vms \
X- 	makefile.3b1 plot.h help.h setshow.h lasergnu \
X- 	demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
X- 	demo/simple.demo demo/polar.demo demo/electron.demo \
X- 	bugtest/README bugtest/printf.c bugtest/scanf.c \
X- 	bugtest/mscbug.c term/README
X- # PC-specific files
X- PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
X- 	linkopt.msc linkopt.tc makefile.msc makefile.tc pcgraph.asm
X- # Documentation and help files
X- DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
X- 	docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
X- 	docs/gnuplot.1 docs/lasergnu.1 \
X- 	docs/titlepage.ms docs/titlepage.tex
X- DOCS2 = docs/gnuplot.doc
X- DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
X- 	docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
X- 	docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
X- 	docs/latextut/header.tex docs/latextut/tutorial.tex
X- # gnutex->gnuplot translator
X- TSOURCE1 = translate/Makefile translate/README translate/command.c \
X- 	translate/eval.c translate/gnut2p.1 translate/internal.c \
X- 	translate/misc.c translate/parse.c translate/plot.c \
X- 	translate/plot.h translate/scanner.c translate/standard.c \
X- 	translate/test1 translate/test2 translate/util.c
X- 
X- # -lplot iff you have -DUNIXPLOT
X- # -lsuntool -lsunwindow -lpixrect  iff you have -DSUN
X- # -lgl_s if IRIS4D
X- LIBS = -lm -lplot
X- 
X- gnuplot: $(OBJS) version.o
X- 	vcc $(CFLAGS) $(OBJS) version.o $(LIBS) -o gnuplot
X- 
X- doc:
X- 	( cd docs; make gnuplot.gih )
X- 
X- translate:
X- 	(cd translate; make)
X- 
X- all:    gnuplot doc
X- 
X- install: gnuplot doc man_install
X- 	cp gnuplot lasergnu $(DEST)
X- 	strip $(DEST)/gnuplot
X- 	(cd docs; make install-unix HELPDEST=$(HELPDEST))
X- 
X- man_install: docs/gnuplot.1 docs/lasergnu.1
X- 	cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
X- 
X- term.o: $(CSOURCE4) $(CSOURCE5) $(CSOURCE6)
X- 	vcc $(CFLAGS) $(TERMFLAGS) -c term.c
X- 
X- $(OBJS): plot.h
X- 
X- command.o:
X- 	cc $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
X- 
X- command.o help.o misc.o: help.h
X- 
X- command.o graphics.o misc.o plot.o setshow.o: setshow.h
X- 
X- SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
X- 	$(CSOURCE4) $(CSOURCE5) $(CSOURCE6)
X- 
X- lint:
X- 	lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
X- 
X- clean:
X- 	rm -f *.o *~ term/*~
X- 	(cd docs; make clean)
X- 	(cd docs/latextut; make clean)
X- 	(cd translate; make clean)
X- 
X- spotless:
X- 	rm -f *.o *~ term/*~ TAGS gnuplot
X- 	(cd docs; make clean)
X- 	(cd docs/latextut; make spotless)
X- 	(cd translate; make spotless)
X
X--- 8,10 -----
X  all:
X  	echo "Use makefile.unx instead"
X  
Xdiff -c ./makefile.unx ../patch/makefile.unx
X*** ./makefile.unx	Tue Mar 27 08:58:58 1990
X--- ../patch/makefile.unx	Thu Sep 13 09:57:07 1990
X***************
X*** 18,23
X  # -DNOCOPY if you don't have a memcpy() by any name
X  # -DGAMMA if you've got gamma(3)
X  # -fswitch if you are compiling on a Sun3 (or even -f68881)
X  # -O if you trust your compiler's optimizer
X  CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
X  
X
X--- 18,24 -----
X  # -DNOCOPY if you don't have a memcpy() by any name
X  # -DGAMMA if you've got gamma(3)
X  # -fswitch if you are compiling on a Sun3 (or even -f68881)
X+ #    (but -fswitch is buggy on some systems, so watch out)
X  # -O if you trust your compiler's optimizer
X  CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
X  
X***************
X*** 21,26
X  # -O if you trust your compiler's optimizer
X  CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
X  
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X  # -DAED         AED 512 and AED 767
X  # -DBITGRAPH    BBN BitGraph
X
X--- 22,32 -----
X  # -O if you trust your compiler's optimizer
X  CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
X  
X+ # -lplot if you have -DUNIXPLOT
X+ # -lsuntool -lsunwindow -lpixrect  if you have -DSUN
X+ # -lgl_s if IRIS4D
X+ LIBS = -lm -lplot
X+ 
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X  # see other terminal defines in term.h
X  # -DFIG         Fig graphics language (requires object.h from TransFig)
X***************
X*** 22,39
X  CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
X  
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X! # -DAED         AED 512 and AED 767
X! # -DBITGRAPH    BBN BitGraph
X! # -DDXY800A     Roland DXY800A plotter
X! # -DEEPIC	  	 EEPIC-extended LaTeX driver, for EEPIC users
X! # -DEPSON		Epson LX-800, Star NL-10, NX-1000 and lots of others
X! # -DFIG 	  	Fig graphics language (requires object.h from TransFig)
X! # -DHP2648		HP2648, HP2647
X! # -DHP26        HP2623A and maybe others
X! # -DHP75        HP7580, and probably other HPs
X! # -DHPGL		HP7475, HP7220 plotters, and (hopefully) lots of others
X! # -DHPLJET		HP Laserjet
X! # -DIMAGEN  	Imagen laser printers (300dpi) (requires -Iterm also)
X  # -DIRIS4D      IRIS4D series computer
X  # -DKERMIT      MS-Kermit Tektronix 4010 emulator
X  # -DLATEX       LATEX picture environment
X
X--- 28,35 -----
X  LIBS = -lm -lplot
X  
X  # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X! # see other terminal defines in term.h
X! # -DFIG         Fig graphics language (requires object.h from TransFig)
X  # -DIRIS4D      IRIS4D series computer
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPLOT    unixplot
X***************
X*** 35,49
X  # -DHPLJET		HP Laserjet
X  # -DIMAGEN  	Imagen laser printers (300dpi) (requires -Iterm also)
X  # -DIRIS4D      IRIS4D series computer
X- # -DKERMIT      MS-Kermit Tektronix 4010 emulator
X- # -DLATEX       LATEX picture environment
X- # -DNEC         NEC CP6 pinwriter printer
X- # -DPOSTSCRIPT  Postscript
X- # -DPROPRINTER  IBM Proprinter
X- # -DQMS         QMS/QUIC laserprinter (Talaris 1200 and others)
X- # -DREGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
X- # -DSELANAR     Selanar
X- # -DTEK         Tektronix 4010, and probably others
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X
X--- 31,36 -----
X  # see other terminal defines in term.h
X  # -DFIG         Fig graphics language (requires object.h from TransFig)
X  # -DIRIS4D      IRIS4D series computer
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPLOT    unixplot
X  
X***************
X*** 45,51
X  # -DSELANAR     Selanar
X  # -DTEK         Tektronix 4010, and probably others
X  # -DSUN         Sun Microsystems Workstation
X- # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X  # -DV384        Vectrix 384 and tandy color printer
X  
X
X--- 32,37 -----
X  # -DFIG         Fig graphics language (requires object.h from TransFig)
X  # -DIRIS4D      IRIS4D series computer
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPLOT    unixplot
X  
X  TERMFLAGS =  -Iterm -DUNIXPLOT
X***************
X*** 47,53
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X  # -DUNIXPLOT    unixplot
X- # -DV384        Vectrix 384 and tandy color printer
X  
X  TERMFLAGS =  -Iterm -DAED -DBITGRAPH -DDXY800A -DEPSON -DHP2648 \
X  	-DHP26 -DHP75 -DHPGL -DHPLJET -DIMAGEN -DKERMIT -DLATEX -DEEPIC \
X
X--- 33,38 -----
X  # -DIRIS4D      IRIS4D series computer
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPLOT    unixplot
X  
X  TERMFLAGS =  -Iterm -DUNIXPLOT
X  
X***************
X*** 49,58
X  # -DUNIXPLOT    unixplot
X  # -DV384        Vectrix 384 and tandy color printer
X  
X! TERMFLAGS =  -Iterm -DAED -DBITGRAPH -DDXY800A -DEPSON -DHP2648 \
X! 	-DHP26 -DHP75 -DHPGL -DHPLJET -DIMAGEN -DKERMIT -DLATEX -DEEPIC \
X! 	-DPOSTSCRIPT -DPROPRINTER -DQMS -DREGIS -DSELANAR -DTEK \
X! 	-DUNIXPLOT -DV384 
X  
X  OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
X      plot.o scanner.o setshow.o standard.o term.o util.o 
X
X--- 34,40 -----
X  # -DSUN         Sun Microsystems Workstation
X  # -DUNIXPLOT    unixplot
X  
X! TERMFLAGS =  -Iterm -DUNIXPLOT
X  
X  OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
X      plot.o scanner.o setshow.o standard.o term.o util.o 
X***************
X*** 62,70
X  CSOURCE2 = help.c graphics.c internal.c 
X  CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c 
X  CSOURCE4 = term.c util.c version.c
X! CSOURCE5 = term/aed.trm term/dxy.trm term/epson.trm term/font5x7.trm \
X! 	term/hp26.trm term/hp2648.trm term/hpgl.trm \
X! 	term/hpljet.trm term/iris4d.trm term/sun.trm
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X  	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X  CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
X
X--- 44,52 -----
X  CSOURCE2 = help.c graphics.c internal.c 
X  CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c 
X  CSOURCE4 = term.c util.c version.c
X! CSOURCE5 = term/aed.trm term/dxy.trm term/eps60.trm term/epson.trm \
X! 	term/font5x7.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
X! 	term/hpljet.trm term/iris4d.trm term/latex.trm term/sun.trm
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X  	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X  CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
X***************
X*** 68,74
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X  	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X  CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
X! 	term/latex.trm term/eepic.trm
X  # not C code, but still needed
X  ETC = Copyright README README.gnutex makefile.unx makefile.vms  \
X  	makefile.3b1 makefile.ult plot.h help.h setshow.h lasergnu \
X
X--- 50,56 -----
X  CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X  	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X  CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
X! 	term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
X  # not C code, but still needed
X  ETC = Copyright README README.gnutex makefile.unx makefile.vms  \
X  	README.x11 makefile.x11 \
X***************
X*** 71,77
X  	term/latex.trm term/eepic.trm
X  # not C code, but still needed
X  ETC = Copyright README README.gnutex makefile.unx makefile.vms  \
X! 	makefile.3b1 makefile.ult plot.h help.h setshow.h lasergnu \
X   	demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
X  	demo/simple.demo demo/polar.demo demo/electron.demo \
X  	bugtest/README bugtest/printf.c bugtest/scanf.c \
X
X--- 53,60 -----
X  	term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
X  # not C code, but still needed
X  ETC = Copyright README README.gnutex makefile.unx makefile.vms  \
X! 	README.x11 makefile.x11 \
X! 	makefile.3b1 plot.h help.h setshow.h term.h lasergnu \
X   	demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
X  	demo/simple.demo demo/polar.demo demo/electron.demo \
X  	bugtest/README bugtest/printf.c bugtest/scanf.c \
X***************
X*** 98,107
X  	translate/plot.h translate/scanner.c translate/standard.c \
X  	translate/test1 translate/test2 translate/util.c
X  
X! # -lplot if you have -DUNIXPLOT
X! # -lsuntool -lsunwindow -lpixrect  if you have -DSUN
X! # -lgl_s if IRIS4D
X! LIBS = -lm -lplot
X  
X  gnuplot: $(OBJS) version.o
X  	cc $(CFLAGS) $(OBJS) version.o $(LIBS) -o gnuplot
X
X--- 81,87 -----
X  	translate/plot.h translate/scanner.c translate/standard.c \
X  	translate/test1 translate/test2 translate/util.c
X  
X! all:	gnuplot doc
X  
X  gnuplot: $(OBJS) version.o
X  	$(CC) $(CFLAGS) $(OBJS) version.o $(LIBS) -o gnuplot
X***************
X*** 104,110
X  LIBS = -lm -lplot
X  
X  gnuplot: $(OBJS) version.o
X! 	cc $(CFLAGS) $(OBJS) version.o $(LIBS) -o gnuplot
X  
X  doc:
X  	( cd docs; make gnuplot.gih )
X
X--- 84,90 -----
X  all:	gnuplot doc
X  
X  gnuplot: $(OBJS) version.o
X! 	$(CC) $(CFLAGS) $(OBJS) version.o $(LIBS) -o gnuplot
X  
X  doc:
X  	( cd docs; make gnuplot.gih )
X***************
X*** 112,119
X  translate:
X  	(cd translate; make)
X  
X- all:	gnuplot doc
X- 
X  install: gnuplot doc man_install
X  	cp gnuplot lasergnu $(DEST)
X  	strip $(DEST)/gnuplot
X
X--- 92,97 -----
X  translate:
X  	(cd translate; make)
X  
X  install: gnuplot doc man_install
X  	cp gnuplot lasergnu $(DEST)
X  	strip $(DEST)/gnuplot
X***************
X*** 122,129
X  man_install: docs/gnuplot.1 docs/lasergnu.1
X  	cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
X  
X! term.o: $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
X! 	cc $(CFLAGS) $(TERMFLAGS) -c term.c
X  
X  version.o:
X  	cc $(CFLAGS) -DCONTACT=$(EMAIL) -c version.c
X
X--- 100,107 -----
X  man_install: docs/gnuplot.1 docs/lasergnu.1
X  	cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
X  
X! term.o: term.h $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
X! 	$(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
X  
X  version.o:
X  	$(CC) $(CFLAGS) -DCONTACT=$(EMAIL) -c version.c
X***************
X*** 126,132
X  	cc $(CFLAGS) $(TERMFLAGS) -c term.c
X  
X  version.o:
X! 	cc $(CFLAGS) -DCONTACT=$(EMAIL) -c version.c
X  
X  $(OBJS): plot.h
X  
X
X--- 104,110 -----
X  	$(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
X  
X  version.o:
X! 	$(CC) $(CFLAGS) -DCONTACT=$(EMAIL) -c version.c
X  
X  $(OBJS): plot.h
X  
X***************
X*** 131,137
X  $(OBJS): plot.h
X  
X  command.o:
X! 	cc $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
X  
X  command.o help.o misc.o: help.h
X  
X
X--- 109,115 -----
X  $(OBJS): plot.h
X  
X  command.o:
X! 	$(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
X  
X  command.o help.o misc.o: help.h
X  
Xdiff -c ./makefile.vms ../patch/makefile.vms
X*** ./makefile.vms	Tue Mar 27 08:58:59 1990
X--- ../patch/makefile.vms	Thu Sep  6 12:10:21 1990
X***************
X*** 9,38
X  # NOOP  NO Optimiser
X  CFLAGS = /NOOP
X  
X! # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X! # -DAED         AED 512 and AED 767
X! # -DBITGRAPH    BBN BitGraph
X! # -DDXY800A     Roland DXY800A plotter
X! # -DEPSON       Epson LX-800, Star NL-10, NX-1000 and lots of others
X! # -DFIG         Fig graphics language (requires object.h from TransFig)
X! # -DHP2648      HP2648, HP2647
X! # -DHP26        HP2623A and maybe others
X! # -DHP75        HP7580, and probably other HPs
X! # -DHPGL        HP7475 and (hopefully) lots of others
X! # -DHPLJET      HP Laserjet
X! # -DIMAGEN      Imagen laser printers (300dpi) (requires -Iterm also)
X! # -DIRIS4D      IRIS4D series computer
X! # -DKERMIT      MS-Kermit Tektronix 4010 emulator
X! # -DLATEX       LATEX picture environment
X! # -DPOSTSCRIPT  Postscript
X! # -DPROPRINTER  IBM Proprinter
X! # -DQMS         QMS/QUIC laserprinter (Talaris 1200 and others)
X! # -DREGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
X! # -DSELANAR     Selanar
X! # -DTEK         Tektronix 4010, and probably others
X! # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
X! # -DUNIXPLOT    unixplot
X! # -DV384        Vectrix 384 and tandy color printer
X  
X  
X  TERMFLAGS = /define=(AED,BITGRAPH,DXY800A,HP2648,HP26,HP75,HPGL, \
X
X--- 9,16 -----
X  # NOOP  NO Optimiser
X  CFLAGS = /NOOP
X  
X! # /define=(<terminal>) in TERMFLAGS iff you wish to support <terminal>
X! # see other terminal defines in term.h
X  
X  TERMFLAGS = 
X  
X***************
X*** 34,39
X  # -DUNIXPLOT    unixplot
X  # -DV384        Vectrix 384 and tandy color printer
X  
X  
X  TERMFLAGS = /define=(AED,BITGRAPH,DXY800A,HP2648,HP26,HP75,HPGL, \
X      KERMIT,LATEX,POSTSCRIPT,QMS,REGIS,SELANAR,TEK,V384)
X
X--- 12,18 -----
X  # /define=(<terminal>) in TERMFLAGS iff you wish to support <terminal>
X  # see other terminal defines in term.h
X  
X+ TERMFLAGS = 
X  
X  OBJS =  command.obj,eval.obj,graphics.obj,internal.obj, \
X          misc.obj,parse.obj,plot.obj,scanner.obj,setshow.obj, \
X***************
X*** 35,43
X  # -DV384        Vectrix 384 and tandy color printer
X  
X  
X- TERMFLAGS = /define=(AED,BITGRAPH,DXY800A,HP2648,HP26,HP75,HPGL, \
X-     KERMIT,LATEX,POSTSCRIPT,QMS,REGIS,SELANAR,TEK,V384)
X- 
X  OBJS =  command.obj,eval.obj,graphics.obj,internal.obj, \
X          misc.obj,parse.obj,plot.obj,scanner.obj,setshow.obj, \
X          standard.obj,term.obj,util.obj,version.obj
X
X--- 14,19 -----
X  
X  TERMFLAGS = 
X  
X  OBJS =  command.obj,eval.obj,graphics.obj,internal.obj, \
X          misc.obj,parse.obj,plot.obj,scanner.obj,setshow.obj, \
X          standard.obj,term.obj,util.obj,version.obj
X***************
X*** 46,53
X  CSOURCE2 = help.c graphics.c internal.c
X  CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
X  CSOURCE4 = term.c util.c version.c
X! CSOURCE5 = [.term]aed.trm [.term]dxy.trm [.term]epson.trm [.term]font5x7.trm  \
X!         [.term]hp26.trm [.term]hp2648.trm [.term]hpgl.trm  \
X          [.term]hpljet.trm [.term]iris4d.trm [.term]latex.trm
X  CSOURCE6 = [.term]post.trm [.term]pc.trm [.term]qms.trm [.term]regis.trm  \
X          [.term]tek.trm [.term]unixpc.trm [.term]unixplot.trm [.term]v384.trm  \
X
X--- 22,29 -----
X  CSOURCE2 = help.c graphics.c internal.c
X  CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
X  CSOURCE4 = term.c util.c version.c
X! CSOURCE5 = [.term]aed.trm [.term]dxy.trm [.term]eps60.trm [.term]epson.trm \
X! 	[.term]font5x7.trm  [.term]hp26.trm [.term]hp2648.trm [.term]hpgl.trm \
X          [.term]hpljet.trm [.term]iris4d.trm [.term]latex.trm
X  CSOURCE6 = [.term]post.trm [.term]pc.trm [.term]qms.trm [.term]regis.trm  \
X          [.term]tek.trm [.term]unixpc.trm [.term]unixplot.trm [.term]v384.trm  \
X***************
X*** 70,76
X          cc [.docs]doc2hlp.c
X          link doc2hlp,linkopt.vms/opt
X  
X! term.obj : $(CSOURCE4) $(CSOURCE5) $(CSOURCE6)
X          cc $(CFLAGS) $(TERMFLAGS) term.c
X  
X  $(OBJS) : plot.h
X
X--- 46,52 -----
X          cc [.docs]doc2hlp.c
X          link doc2hlp,linkopt.vms/opt
X  
X! term.obj : term.h $(CSOURCE4) $(CSOURCE5) $(CSOURCE6)
X          cc $(CFLAGS) $(TERMFLAGS) term.c
X  
X  $(OBJS) : plot.h
Xdiff -c ./makefile.x11 ../patch/makefile.x11
X*** ./makefile.x11	Thu Sep  6 09:22:34 1990
X--- ../patch/makefile.x11	Thu Sep 13 09:57:28 1990
X***************
X*** 0
X
X--- 1,210 -----
X+ #
X+ # GNUPLOT Makefile (Unix X11 support)
X+ #
X+ 
X+ # directory where to install executables on 'make install'
X+ DEST=/usr/local/bin
X+ # directory for installing man page on 'make man_install'
X+ MANDEST=/usr/man/manl
X+ # where to install help file gnuplot.gih
X+ #HELPDEST=/usr/local/lib/gnuplot.gih
X+ HELPDEST=docs/gnuplot.gih
X+ # Where to send email about bugs and comments (locally)
X+ EMAIL=\"pixar\!bug-gnuplot at sun.com\"
X+ 
X+ # -DVFORK if you have vfork()
X+ # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
X+ # -DBZERO if you need to use bzero() (another BSD feature) instead of memset() 
X+ # -DNOCOPY if you don't have a memcpy() by any name
X+ # -DGAMMA if you've got gamma(3)
X+ # -fswitch if you are compiling on a Sun3 (or even -f68881)
X+ #    (but -fswitch is buggy on some systems, so watch out)
X+ # -O if you trust your compiler's optimizer
X+ # -Dunix and no -DVFORK if IBM RS/6000 AIX 3.1
X+ CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
X+ 
X+ # -lplot if you have -DUNIXPLOT
X+ # -lsuntool -lsunwindow -lpixrect  if you have -DSUN
X+ # -lgl_s if IRIS4D
X+ LIBS = -lm -lplot
X+ 
X+ # standard MIT X11 R4:  -lXaw -lXmu -lXt -lXext -lX11
X+ # Apollo DomainOS 10.4.2 (R3): -L/usr/lib/X11 -lXaw -lXmu -lXt -lX11
X+ # IBM RS/6000 AIX 3.1 (R3): -L/usr/lpp/X11/Xamples/lib/Xmu \
X+ #			    -L/usr/lpp/X11/Xamples/lib/Xaw \
X+ #	                    -lXaw -lXmu -lXt -lXext -lX11
X+ X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
X+ 
X+ # standard MIT X11 R4: -I/usr/include/X11 -I/usr/include/X11/Xaw 
X+ # Apollo DomainOS 10.4.2 (R3): -I/usr/include/X11
X+ # IBM RS/6000 AIX 3.1 (R3): -I/usr/include/X11 -I/usr/lpp/X11/Xamples/lib/Xaw \
X+ #	                    -I/usr/lpp/X11/Xamples/lib/Xaw/X11
X+ X11INCLUDES = -I/usr/include/X11 -I/usr/include/X11/Xaw
X+ 
X+ # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
X+ # see other terminal defines in term.h
X+ # -DFIG         Fig graphics language (requires object.h from TransFig)
X+ # -DIRIS4D      IRIS4D series computer
X+ # -DSUN         Sun Microsystems Workstation
X+ # -DUNIXPLOT    unixplot
X+ # -DX11         X11 Window System
X+ 
X+ TERMFLAGS =  -Iterm -DUNIXPLOT -DX11
X+ 
X+ OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
X+     plot.o scanner.o setshow.o standard.o term.o util.o 
X+ 
X+ DIRS = term demo bugtest docs docs/latextut translate
X+ CSOURCE1 = command.c setshow.c 
X+ CSOURCE2 = help.c graphics.c internal.c 
X+ CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c 
X+ CSOURCE4 = term.c util.c version.c
X+ CSOURCE5 = term/aed.trm term/dxy.trm term/epson.trm term/font5x7.trm \
X+ 	term/hp26.trm term/hp2648.trm term/hpgl.trm \
X+ 	term/hpljet.trm term/iris4d.trm term/sun.trm
X+ CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
X+ 	term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
X+ CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
X+ 	term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
X+ # not C code, but still needed
X+ ETC = Copyright README README.gnutex makefile.unx makefile.vms  \
X+ 	README.x11 makefile.x11 \
X+ 	makefile.3b1 plot.h help.h setshow.h term.h lasergnu \
X+  	demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
X+ 	demo/simple.demo demo/polar.demo demo/electron.demo \
X+ 	bugtest/README bugtest/printf.c bugtest/scanf.c \
X+ 	bugtest/mscbug.c term/README \
X+ 	linkopt.vms buildvms.com
X+ # PC-specific files
X+ PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
X+ 	linkopt.msc linkopt.tc makefile.msc makefile.tc pcgraph.asm 
X+ # Documentation and help files
X+ DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
X+ 	docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
X+ 	docs/gnuplot.1 docs/lasergnu.1 \
X+ 	docs/titlepage.ms docs/titlepage.tex 
X+ DOCS2 = docs/gnuplot.doc
X+ DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
X+ 	docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
X+ 	docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
X+ 	docs/latextut/header.tex docs/latextut/tutorial.tex
X+ # gnutex->gnuplot translator
X+ TSOURCE1 = translate/Makefile translate/README translate/command.c \
X+ 	translate/eval.c translate/gnut2p.1 translate/internal.c \
X+ 	translate/misc.c translate/parse.c translate/plot.c
X+ TSOURCE2 = \
X+ 	translate/plot.h translate/scanner.c translate/standard.c \
X+ 	translate/test1 translate/test2 translate/util.c
X+ 
X+ all:	gnuplot gnuplot_x11 doc
X+ 
X+ gnuplot: $(OBJS) version.o
X+ 	$(CC) $(CFLAGS) $(OBJS) version.o $(LIBS) -o gnuplot
X+ 
X+ doc:
X+ 	( cd docs; make gnuplot.gih )
X+ 
X+ translate:
X+ 	(cd translate; make)
X+ 
X+ gnuplot_x11: gnuplot_x11.c
X+ 	$(CC) $(CFLAGS) $(X11INCLUDES) -o gnuplot_x11 gnuplot_x11.c $(X11LIBS)
X+ 
X+ install: gnuplot gnuplot_x11 doc man_install
X+ 	cp gnuplot gnuplot_x11 lasergnu $(DEST)
X+ 	strip $(DEST)/gnuplot
X+ 	strip $(DEST)/gnuplot_x11
X+ 	(cd docs; make install-unix HELPDEST=$(HELPDEST))
X+ 
X+ man_install: docs/gnuplot.1.x11 docs/lasergnu.1
X+ 	cp docs/lasergnu.1 $(MANDEST)
X+ 	cp docs/gnuplot.1.x11 $(MANDEST)/gnuplot.1
X+ 
X+ plot.o: plot.c
X+ 	$(CC) $(CFLAGS) -DX11 -c plot.c
X+ 
X+ term.o: term.h $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
X+ 	$(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
X+ 
X+ version.o:
X+ 	$(CC) $(CFLAGS) -DCONTACT=$(EMAIL) -c version.c
X+ 
X+ $(OBJS): plot.h
X+ 
X+ command.o:
X+ 	$(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)\"
X+ 
X+ command.o help.o misc.o: help.h
X+ 
X+ command.o graphics.o misc.o plot.o setshow.o: setshow.h
X+ 
X+ SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
X+ 	$(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
X+ 
X+ lint:
X+ 	lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
X+ 
X+ clean:
X+ 	rm -f *.o *~ term/*~
X+ 	(cd docs; make clean)
X+ 	(cd docs/latextut; make clean)
X+ 	(cd translate; make clean)
X+ 
X+ spotless:
X+ 	rm -f *.o *~ term/*~ TAGS gnuplot gnuplot_x11
X+ 	(cd docs; make clean)
X+ 	(cd docs/latextut; make spotless)
X+ 	(cd translate; make spotless)
X+ 
X+ shar: gnuplot.sh00 gnuplot.sh01 gnuplot.sh02 gnuplot.sh03 gnuplot.sh04 \
X+ 	gnuplot.sh05 gnuplot.sh06 gnuplot.sh07 gnuplot.sh08 \
X+ 	gnuplot.sh09 gnuplot.sh10 gnuplot.sh11 gnuplot.sh12 \
X+ 	gnuplot.sh13 gnuplot.sh14
X+ 
X+ gnuplot.sh00:
X+ 	echo '#!/bin/sh' > gnuplot.sh00
X+ 	echo '# This is a shell file to make directories' >> gnuplot.sh00
X+ 	echo mkdir $(DIRS) >> gnuplot.sh00
X+ 
X+ gnuplot.sh01: $(ETC)
X+ 	shar $(ETC) > gnuplot.sh01
X+ 
X+ gnuplot.sh02: $(DOCS1)
X+ 	shar $(DOCS1) > gnuplot.sh02
X+ 
X+ gnuplot.sh03: $(DOCS2)
X+ 	shar $(DOCS2) > gnuplot.sh03
X+ 
X+ gnuplot.sh04: $(DOCS3)
X+ 	shar $(DOCS3) > gnuplot.sh04
X+ 
X+ gnuplot.sh05: $(CSOURCE1)
X+ 	shar $(CSOURCE1) > gnuplot.sh05
X+ 
X+ gnuplot.sh06: $(CSOURCE2)
X+ 	shar $(CSOURCE2) > gnuplot.sh06
X+ 
X+ gnuplot.sh07: $(CSOURCE3)
X+ 	shar $(CSOURCE3) > gnuplot.sh07
X+ 
X+ gnuplot.sh08: $(CSOURCE4)
X+ 	shar $(CSOURCE4) > gnuplot.sh08
X+ 
X+ gnuplot.sh09: $(CSOURCE5)
X+ 	shar $(CSOURCE5) > gnuplot.sh09
X+ 
X+ gnuplot.sh10: $(CSOURCE6)
X+ 	shar $(CSOURCE6) > gnuplot.sh10
X+ 
X+ gnuplot.sh11: $(CSOURCE7)
X+ 	shar $(CSOURCE7) > gnuplot.sh11
X+ 
X+ gnuplot.sh12: $(PC)
X+ 	shar $(PC) > gnuplot.sh12
X+ 
X+ gnuplot.sh13: $(TSOURCE1)
X+ 	shar $(TSOURCE1) > gnuplot.sh13
X+ 
X+ gnuplot.sh14: $(TSOURCE2)
X+ 	shar $(TSOURCE2) > gnuplot.sh14
X+ 
Xdiff -c ./misc.c ../patch/misc.c
X*** ./misc.c	Tue Mar 27 09:01:30 1990
X--- ../patch/misc.c	Thu Sep  6 09:20:35 1990
X***************
X*** 36,41
X  #include <graphics.h>
X  #endif
X  
X  extern int c_token;
X  extern char replot_line[];
X  extern struct at_type at;
X
X--- 36,43 -----
X  #include <graphics.h>
X  #endif
X  
X+ extern char *malloc();
X+ 
X  extern int c_token;
X  extern char replot_line[];
X  extern struct at_type at;
X***************
X*** 514,520
X  {
X      char *p;				/* the new allocation */
X      char errbuf[100];		/* error message string */
X-     extern char *malloc();
X  
X      p = malloc(size);
X      if (p == (char *)NULL) {
X
X--- 516,521 -----
X  {
X      char *p;				/* the new allocation */
X      char errbuf[100];		/* error message string */
X  
X      p = malloc(size);
X      if (p == (char *)NULL) {
Xdiff -c ./parse.c ../patch/parse.c
X*** ./parse.c	Tue Mar 27 09:01:39 1990
X--- ../patch/parse.c	Thu Aug 30 09:40:22 1990
X***************
X*** 31,36
X  #include <setjmp.h>
X  #include <signal.h>
X  #include <errno.h>
X  #include "plot.h"
X  
X  #ifndef vms
X
X--- 31,37 -----
X  #include <setjmp.h>
X  #include <signal.h>
X  #include <errno.h>
X+ #include <math.h>
X  #include "plot.h"
X  
X  #ifndef vms
X***************
X*** 75,80
X  }
X  
X  
X  evaluate_at(at_ptr,val_ptr)
X  struct at_type *at_ptr;
X  struct value *val_ptr;
X
X--- 76,112 -----
X  }
X  
X  
X+ #ifdef apollo
X+ #include <apollo/base.h>
X+ #include <apollo/pfm.h>
X+ #include <apollo/fault.h>
X+ 
X+ /*
X+   On an Apollo, the OS can signal a couple errors that are not mapped
X+   into SIGFPE, namely signalling NaN and branch on an unordered
X+   comparison.  I suppose there are others, but none of these are documented,
X+   so I handle them as they arise.
X+ 
X+   Anyway, we need to catch these faults and signal SIGFPE.
X+ */
X+ 
X+ pfm_$fh_func_val_t apollo_sigfpe(pfm_$fault_rec_t& fault_rec)
X+ {
X+     kill(getpid(), SIGFPE);
X+     return pfm_$continue_fault_handling;
X+ }
X+ 
X+ apollo_pfm_catch()
X+ {
X+     status_$t status;
X+     pfm_$establish_fault_handler(fault_$fp_bsun, pfm_$fh_backstop,
X+ 				 apollo_sigfpe, &status);
X+     pfm_$establish_fault_handler(fault_$fp_sig_nan, pfm_$fh_backstop,
X+ 				 apollo_sigfpe, &status);
X+ }
X+ #endif
X+ 
X+ 
X  evaluate_at(at_ptr,val_ptr)
X  struct at_type *at_ptr;
X  struct value *val_ptr;
X***************
X*** 79,84
X  struct at_type *at_ptr;
X  struct value *val_ptr;
X  {
X  	undefined = FALSE;
X  	errno = 0;
X  	reset_stack();
X
X--- 111,118 -----
X  struct at_type *at_ptr;
X  struct value *val_ptr;
X  {
X+ 	double temp, real();
X+ 
X  	undefined = FALSE;
X  	errno = 0;
X  	reset_stack();
X***************
X*** 95,100
X  	} else {
X  		(void) pop(val_ptr);
X  		check_stack();
X  	}
X  }
X  
X
X--- 129,139 -----
X  	} else {
X  		(void) pop(val_ptr);
X  		check_stack();
X+ 	}
X+ /* At least one machine (ATT 3b1) computes Inf without a SIGFPE */
X+ 	temp = real(val_ptr);
X+ 	if (temp > VERYLARGE || temp < -VERYLARGE) {
X+ 		undefined = TRUE;
X  	}
X  }
X  
Xdiff -c ./pcgraph.asm ../patch/pcgraph.asm
X*** ./pcgraph.asm	Tue Mar 27 09:03:47 1990
X--- ../patch/pcgraph.asm	Fri Aug 31 12:53:35 1990
X***************
X*** 23,28
X  
X  GPg1_Base equ 0B800h	; Graphics page 1 base address
X  
X  _text	segment
X  
X  	public _PC_line, _PC_color, _PC_mask, _PC_curloc, _PC_puts, _Vmode
X
X--- 23,30 -----
X  
X  GPg1_Base equ 0B800h	; Graphics page 1 base address
X  
X+ 	extrn _inter:far
X+ 
X  _text	segment
X  
X  	public _PC_line, _PC_color, _PC_mask, _PC_curloc, _PC_puts, _Vmode
X***************
X*** 27,33
X  
X  	public _PC_line, _PC_color, _PC_mask, _PC_curloc, _PC_puts, _Vmode
X  	public _erase, _save_stack, _ss_interrupt
X- 	extrn _inter:near
X  
X  pcpixel proc near
X  	ror word ptr linemask,1
X
X--- 29,34 -----
X  
X  	public _PC_line, _PC_color, _PC_mask, _PC_curloc, _PC_puts, _Vmode
X  	public _erase, _save_stack, _ss_interrupt
X  
X  pcpixel proc near
X  	ror word ptr linemask,1
X***************
X*** 205,211
X  	mov sp,-1		; here too
X  save_sp equ this word - 2
X  	sti
X! 	jmp _inter; now it's safe to call the real routine
X  _ss_interrupt endp
X  
X  
X
X--- 206,212 -----
X  	mov sp,-1		; here too
X  save_sp equ this word - 2
X  	sti
X! 	jmp far ptr _inter; now it's safe to call the real routine
X  _ss_interrupt endp
X  
X  
Xdiff -c ./plot.c ../patch/plot.c
X*** ./plot.c	Tue Mar 27 09:01:43 1990
X--- ../patch/plot.c	Thu Sep  6 09:20:12 1990
X***************
X*** 170,175
X  registerbgidriver(CGA_driver);
X  registerbgidriver(EGAVGA_driver);
X  registerbgidriver(Herc_driver);
X  #endif
X  
X  	setbuf(stderr,(char *)NULL);
X
X--- 170,183 -----
X  registerbgidriver(CGA_driver);
X  registerbgidriver(EGAVGA_driver);
X  registerbgidriver(Herc_driver);
X+ registerbgidriver(ATT_driver);
X+ #endif
X+ #ifdef X11
X+      { int n = X11_args(argc, argv); argv += n; argc -= n; }
X+ #endif 
X+ 
X+ #ifdef apollo
X+     apollo_pfm_catch();
X  #endif
X  
X  	setbuf(stderr,(char *)NULL);
Xdiff -c ./standard.c ../patch/standard.c
X*** ./standard.c	Tue Mar 27 09:01:51 1990
X--- ../patch/standard.c	Thu Aug 30 14:33:01 1990
X***************
X*** 40,45
X  
X  extern struct value stack[STACK_DEPTH];
X  extern int s_p;
X  
X  struct value *pop(), *complex(), *integer();
X  
X
X--- 40,46 -----
X  
X  extern struct value stack[STACK_DEPTH];
X  extern int s_p;
X+ extern double zero;
X  
X  struct value *pop(), *complex(), *integer();
X  
X***************
X*** 45,50
X  
X  double magnitude(), angle(), real(), imag();
X  
X  
X  f_real()
X  {
X
X--- 46,56 -----
X  
X  double magnitude(), angle(), real(), imag();
X  
X+ /* The bessel function approximations here are from
X+  * "Computer Approximations"
X+  * by Hart, Cheney et al.
X+  * John Wiley & Sons, 1968
X+  */
X  
X  /* There appears to be a mistake in Hart, Cheney et al. on page 149.
X   * Where it list Qn(x)/x ~ P(z*z)/Q(z*z), z = 8/x, it should read
X***************
X*** 46,51
X  double magnitude(), angle(), real(), imag();
X  
X  
X  f_real()
X  {
X  struct value a;
X
X--- 52,268 -----
X   * John Wiley & Sons, 1968
X   */
X  
X+ /* There appears to be a mistake in Hart, Cheney et al. on page 149.
X+  * Where it list Qn(x)/x ~ P(z*z)/Q(z*z), z = 8/x, it should read
X+  *               Qn(x)/z ~ P(z*z)/Q(z*z), z = 8/x
X+  * In the functions below, Qn(x) is implementated using the later
X+  * equation.
X+  * These bessel functions are accurate to about 1e-13
X+  */
X+ 
X+ #define PI_ON_FOUR       0.78539816339744830961566084581987572
X+ #define PI_ON_TWO        1.57079632679489661923131269163975144
X+ #define THREE_PI_ON_FOUR 2.35619449019234492884698253745962716
X+ #define TWO_ON_PI        0.63661977236758134307553505349005744
X+ 
X+ static double dzero = 0.0;
X+ 
X+ /* jzero for x in [0,8]
X+  * Index 5849, 19.22 digits precision
X+  */
X+ static double pjzero[] = {
X+ 	 0.4933787251794133561816813446e+21,
X+ 	-0.11791576291076105360384408e+21,
X+ 	 0.6382059341072356562289432465e+19,
X+ 	-0.1367620353088171386865416609e+18,
X+ 	 0.1434354939140346111664316553e+16,
X+ 	-0.8085222034853793871199468171e+13,
X+ 	 0.2507158285536881945555156435e+11,
X+ 	-0.4050412371833132706360663322e+8,
X+ 	 0.2685786856980014981415848441e+5
X+ };
X+ 
X+ static double qjzero[] = {
X+ 	0.4933787251794133562113278438e+21,
X+ 	0.5428918384092285160200195092e+19,
X+ 	0.3024635616709462698627330784e+17,
X+ 	0.1127756739679798507056031594e+15,
X+ 	0.3123043114941213172572469442e+12,
X+ 	0.669998767298223967181402866e+9,
X+ 	0.1114636098462985378182402543e+7,
X+ 	0.1363063652328970604442810507e+4,
X+ 	0.1e+1
X+ };
X+ 
X+ /* pzero for x in [8,inf]
X+  * Index 6548, 18.16 digits precision
X+  */
X+ static double ppzero[] = {
X+ 	0.2277909019730468430227002627e+5,
X+ 	0.4134538663958076579678016384e+5,
X+ 	0.2117052338086494432193395727e+5,
X+ 	0.348064864432492703474453111e+4,
X+ 	0.15376201909008354295771715e+3,
X+ 	0.889615484242104552360748e+0
X+ };
X+ 
X+ static double qpzero[] = {
X+ 	0.2277909019730468431768423768e+5,
X+ 	0.4137041249551041663989198384e+5,
X+ 	0.2121535056188011573042256764e+5,
X+ 	0.350287351382356082073561423e+4,
X+ 	0.15711159858080893649068482e+3,
X+ 	0.1e+1
X+ };
X+ 
X+ /* qzero for x in [8,inf]
X+  * Index 6948, 18.33 digits precision
X+  */
X+ static double pqzero[] = {
X+ 	-0.8922660020080009409846916e+2,
X+ 	-0.18591953644342993800252169e+3,
X+ 	-0.11183429920482737611262123e+3,
X+ 	-0.2230026166621419847169915e+2,
X+ 	-0.124410267458356384591379e+1,
X+ 	-0.8803330304868075181663e-2,
X+ };
X+ 
X+ static double qqzero[] = {
X+ 	0.571050241285120619052476459e+4,
X+ 	0.1195113154343461364695265329e+5,
X+ 	0.726427801692110188369134506e+4,
X+ 	0.148872312322837565816134698e+4,
X+ 	0.9059376959499312585881878e+2,
X+ 	0.1e+1
X+ };
X+ 
X+ 
X+ /* yzero for x in [0,8]
X+  * Index 6245, 18.78 digits precision
X+  */
X+ static double pyzero[] = {
X+ 	-0.2750286678629109583701933175e+20,
X+ 	 0.6587473275719554925999402049e+20,
X+ 	-0.5247065581112764941297350814e+19,
X+ 	 0.1375624316399344078571335453e+18,
X+ 	-0.1648605817185729473122082537e+16,
X+ 	 0.1025520859686394284509167421e+14,
X+ 	-0.3436371222979040378171030138e+11,
X+ 	 0.5915213465686889654273830069e+8,
X+ 	-0.4137035497933148554125235152e+5
X+ };
X+ 
X+ static double qyzero[] = {
X+ 	0.3726458838986165881989980739e+21,
X+ 	0.4192417043410839973904769661e+19,
X+ 	0.2392883043499781857439356652e+17,
X+ 	0.9162038034075185262489147968e+14,
X+ 	0.2613065755041081249568482092e+12,
X+ 	0.5795122640700729537380087915e+9,
X+ 	0.1001702641288906265666651753e+7,
X+ 	0.1282452772478993804176329391e+4,
X+ 	0.1e+1
X+ };
X+ 
X+ 
X+ /* jone for x in [0,8]
X+  * Index 6050, 20.98 digits precision
X+  */
X+ static double pjone[] = {
X+ 	 0.581199354001606143928050809e+21,
X+ 	-0.6672106568924916298020941484e+20,
X+ 	 0.2316433580634002297931815435e+19,
X+ 	-0.3588817569910106050743641413e+17,
X+ 	 0.2908795263834775409737601689e+15,
X+ 	-0.1322983480332126453125473247e+13,
X+ 	 0.3413234182301700539091292655e+10,
X+ 	-0.4695753530642995859767162166e+7,
X+ 	 0.270112271089232341485679099e+4
X+ };
X+ 
X+ static double qjone[] = {
X+ 	0.11623987080032122878585294e+22,
X+ 	0.1185770712190320999837113348e+20,
X+ 	0.6092061398917521746105196863e+17,
X+ 	0.2081661221307607351240184229e+15,
X+ 	0.5243710262167649715406728642e+12,
X+ 	0.1013863514358673989967045588e+10,
X+ 	0.1501793594998585505921097578e+7,
X+ 	0.1606931573481487801970916749e+4,
X+ 	0.1e+1
X+ };
X+ 
X+ 
X+ /* pone for x in [8,inf]
X+  * Index 6749, 18.11 digits precision
X+  */
X+ static double ppone[] = {
X+ 	0.352246649133679798341724373e+5,
X+ 	0.62758845247161281269005675e+5,
X+ 	0.313539631109159574238669888e+5,
X+ 	0.49854832060594338434500455e+4,
X+ 	0.2111529182853962382105718e+3,
X+ 	0.12571716929145341558495e+1
X+ };
X+ 
X+ static double qpone[] = {
X+ 	0.352246649133679798068390431e+5,
X+ 	0.626943469593560511888833731e+5,
X+ 	0.312404063819041039923015703e+5,
X+ 	0.4930396490181088979386097e+4,
X+ 	0.2030775189134759322293574e+3,
X+ 	0.1e+1
X+ };
X+ 
X+ /* qone for x in [8,inf]
X+  * Index 7149, 18.28 digits precision
X+  */
X+ static double pqone[] = {
X+ 	0.3511751914303552822533318e+3,
X+ 	0.7210391804904475039280863e+3,
X+ 	0.4259873011654442389886993e+3,
X+ 	0.831898957673850827325226e+2,
X+ 	0.45681716295512267064405e+1,
X+ 	0.3532840052740123642735e-1
X+ };
X+ 
X+ static double qqone[] = {
X+ 	0.74917374171809127714519505e+4,
X+ 	0.154141773392650970499848051e+5,
X+ 	0.91522317015169922705904727e+4,
X+ 	0.18111867005523513506724158e+4,
X+ 	0.1038187585462133728776636e+3,
X+ 	0.1e+1
X+ };
X+ 
X+ 
X+ /* yone for x in [0,8]
X+  * Index 6444, 18.24 digits precision
X+  */
X+ static double pyone[] = {
X+ 	-0.2923821961532962543101048748e+20,
X+ 	 0.7748520682186839645088094202e+19,
X+ 	-0.3441048063084114446185461344e+18,
X+ 	 0.5915160760490070618496315281e+16,
X+ 	-0.4863316942567175074828129117e+14,
X+ 	 0.2049696673745662182619800495e+12,
X+ 	-0.4289471968855248801821819588e+9,
X+ 	 0.3556924009830526056691325215e+6
X+ };
X+ 
X+ static double qyone[] = {
X+ 	0.1491311511302920350174081355e+21,
X+ 	0.1818662841706134986885065935e+19,
X+ 	0.113163938269888452690508283e+17,
X+ 	0.4755173588888137713092774006e+14,
X+ 	0.1500221699156708987166369115e+12,
X+ 	0.3716660798621930285596927703e+9,
X+ 	0.726914730719888456980191315e+6,
X+ 	0.10726961437789255233221267e+4,
X+ 	0.1e+1
X+ };
X+ 
X+ 
X  f_real()
X  {
X  struct value a;
X***************
X*** 264,326
X  }
X  
X  
X- f_besj0()	/* j0(a) = sin(a)/a */
X- {
X- struct value a;
X- 	a = top_of_stack;
X- 	f_sin();
X- 	push(&a);
X- 	f_div();
X- }
X- 
X- 
X- f_besj1()	/* j1(a) = sin(a)/(a**2) - cos(a)/a */
X- {
X- struct value a;
X- 	a = top_of_stack;
X- 	f_sin();
X- 	push(&a);
X- 	push(&a);
X- 	f_mult();
X- 	f_div();
X- 	push(&a);
X- 	f_cos();
X- 	push(&a);
X- 	f_div();
X- 	f_minus();
X- }
X- 
X- 
X- f_besy0()	/* y0(a) = -cos(a)/a */
X- {
X- struct value a;
X- 	a = top_of_stack;
X- 	f_cos();
X- 	push(&a);
X- 	f_div();
X- 	f_uminus();
X- }
X- 
X- 
X- f_besy1()	/* y1(a) = -cos(a)/(a**2) - sin(a)/a */
X- {
X- struct value a;
X- 
X- 	a = top_of_stack;
X- 	f_cos();
X- 	push(&a);
X- 	push(&a);
X- 	f_mult();
X- 	f_div();
X- 	push(&a);
X- 	f_sin();
X- 	push(&a);
X- 	f_div();
X- 	f_plus();
X- 	f_uminus();
X- }
X- 
X- 
X  f_floor()
X  {
X  struct value a;
X
X--- 481,486 -----
X  }
X  
X  
X  f_floor()
X  {
X  struct value a;
X***************
X*** 369,371
X  }
X  
X  #endif /* GAMMA */
X
X--- 529,780 -----
X  }
X  
X  #endif /* GAMMA */
X+ 
X+ 
X+ /* bessel function approximations */
X+ double jzero(x)
X+ double x;
X+ {
X+ double p, q, x2;
X+ int n;
X+ 
X+ 	x2 = x * x;
X+ 	p = pjzero[8];
X+ 	q = qjzero[8];
X+ 	for (n=7; n>=0; n--) {
X+ 		p = p*x2 + pjzero[n];
X+ 		q = q*x2 + qjzero[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double pzero(x)
X+ double x;
X+ {
X+ double p, q, z, z2;
X+ int n;
X+ 
X+ 	z = 8.0 / x;
X+ 	z2 = z * z;
X+ 	p = ppzero[5];
X+ 	q = qpzero[5];
X+ 	for (n=4; n>=0; n--) {
X+ 		p = p*z2 + ppzero[n];
X+ 		q = q*z2 + qpzero[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double qzero(x)
X+ double x;
X+ {
X+ double p, q, z, z2;
X+ int n;
X+ 
X+ 	z = 8.0 / x;
X+ 	z2 = z * z;
X+ 	p = pqzero[5];
X+ 	q = qqzero[5];
X+ 	for (n=4; n>=0; n--) {
X+ 		p = p*z2 + pqzero[n];
X+ 		q = q*z2 + qqzero[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double yzero(x)
X+ double x;
X+ {
X+ double p, q, x2;
X+ int n;
X+ 
X+ 	x2 = x * x;
X+ 	p = pyzero[8];
X+ 	q = qyzero[8];
X+ 	for (n=7; n>=0; n--) {
X+ 		p = p*x2 + pyzero[n];
X+ 		q = q*x2 + qyzero[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double rj0(x)
X+ double x;
X+ {
X+ 	if ( x <= 0.0 )
X+ 		x = -x;
X+ 	if ( x < 8.0 )
X+ 		return(jzero(x));
X+ 	else
X+ 		return( sqrt(TWO_ON_PI/x) *
X+ 			(pzero(x)*cos(x-PI_ON_FOUR) - 8.0/x*qzero(x)*sin(x-PI_ON_FOUR)) );
X+ 
X+ }
X+ 
X+ double ry0(x)
X+ double x;
X+ {
X+ 	if ( x < 0.0 )
X+ 		return(dzero/dzero); /* error */
X+ 	if ( x < 8.0 )
X+ 		return( yzero(x) + TWO_ON_PI*rj0(x)*log(x) );
X+ 	else
X+ 		return( sqrt(TWO_ON_PI/x) *
X+ 			(pzero(x)*sin(x-PI_ON_FOUR) + 
X+ 			(8.0/x)*qzero(x)*cos(x-PI_ON_FOUR)) );
X+ 
X+ }
X+ 
X+ 
X+ double jone(x)
X+ double x;
X+ {
X+ double p, q, x2;
X+ int n;
X+ 
X+ 	x2 = x * x;
X+ 	p = pjone[8];
X+ 	q = qjone[8];
X+ 	for (n=7; n>=0; n--) {
X+ 		p = p*x2 + pjone[n];
X+ 		q = q*x2 + qjone[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double pone(x)
X+ double x;
X+ {
X+ double p, q, z, z2;
X+ int n;
X+ 
X+ 	z = 8.0 / x;
X+ 	z2 = z * z;
X+ 	p = ppone[5];
X+ 	q = qpone[5];
X+ 	for (n=4; n>=0; n--) {
X+ 		p = p*z2 + ppone[n];
X+ 		q = q*z2 + qpone[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double qone(x)
X+ double x;
X+ {
X+ double p, q, z, z2;
X+ int n;
X+ 
X+ 	z = 8.0 / x;
X+ 	z2 = z * z;
X+ 	p = pqone[5];
X+ 	q = qqone[5];
X+ 	for (n=4; n>=0; n--) {
X+ 		p = p*z2 + pqone[n];
X+ 		q = q*z2 + qqone[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double yone(x)
X+ double x;
X+ {
X+ double p, q, x2;
X+ int n;
X+ 
X+ 	x2 = x * x;
X+ 	p = 0.0;
X+ 	q = qyone[8];
X+ 	for (n=7; n>=0; n--) {
X+ 		p = p*x2 + pyone[n];
X+ 		q = q*x2 + qyone[n];
X+ 	}
X+ 	return(p/q);
X+ }
X+ 
X+ double rj1(x)
X+ double x;
X+ {
X+ double v,w;
X+ 	v = x;
X+ 	if ( x < 0.0 )
X+ 		x = -x;
X+ 	if ( x < 8.0 )
X+ 		return(v*jone(x));
X+ 	else {
X+ 		w = sqrt(TWO_ON_PI/x) *
X+ 			(pone(x)*cos(x-THREE_PI_ON_FOUR) - 
X+ 			   8.0/x*qone(x)*sin(x-THREE_PI_ON_FOUR)) ;
X+ 		if (v < 0.0)
X+ 			w = -w;
X+ 		return( w );
X+ 	}
X+ }
X+ 
X+ double ry1(x)
X+ double x;
X+ {
X+ 	if ( x <= 0.0 )
X+ 		return(dzero/dzero); /* error */
X+ 	if ( x < 8.0 )
X+ 		return( x*yone(x) + TWO_ON_PI*(rj1(x)*log(x) - 1.0/x) );
X+ 	else
X+ 		return( sqrt(TWO_ON_PI/x) *
X+ 			(pone(x)*sin(x-THREE_PI_ON_FOUR) + 
X+ 			(8.0/x)*qone(x)*cos(x-THREE_PI_ON_FOUR)) );
X+ }
X+ 
X+ 
X+ f_besj0()	
X+ {
X+ struct value a;
X+ double x;
X+ 	(void) pop(&a);
X+ 	if (imag(&a) > zero)
X+ 		int_error("can only do bessel functions of reals",NO_CARET);
X+ 	push( complex(&a,rj0(real(&a)),0.0) );
X+ }
X+ 
X+ 
X+ f_besj1()	
X+ {
X+ struct value a;
X+ double x;
X+ 	(void) pop(&a);
X+ 	if (imag(&a) > zero)
X+ 		int_error("can only do bessel functions of reals",NO_CARET);
X+ 	push( complex(&a,rj1(real(&a)),0.0) );
X+ }
X+ 
X+ 
X+ f_besy0()	
X+ {
X+ struct value a;
X+ double x;
X+ 	(void) pop(&a);
X+ 	if (imag(&a) > zero)
X+ 		int_error("can only do bessel functions of reals",NO_CARET);
X+ 	if (real(&a) > 0.0)
X+ 		push( complex(&a,ry0(real(&a)),0.0) );
X+ 	else {
X+ 		push( complex(&a,0.0,0.0) );
X+ 		undefined = TRUE ;
X+ 	}
X+ }
X+ 
X+ 
X+ f_besy1()	
X+ {
X+ struct value a;
X+ double x;
X+ 	(void) pop(&a);
X+ 	if (imag(&a) > zero)
X+ 		int_error("can only do bessel functions of reals",NO_CARET);
X+ 	if (real(&a) > 0.0)
X+ 		push( complex(&a,ry1(real(&a)),0.0) );
X+ 	else {
X+ 		push( complex(&a,0.0,0.0) );
X+ 		undefined = TRUE ;
X+ 	}
X+ }
X+ 
XCommon subdirectories: ./term and ../patch/term
XCommon subdirectories: ./translate and ../patch/translate
END_OF_patch1a
if test 76676 -ne `wc -c <patch1a`; then
    echo shar: \"patch1a\" unpacked with wrong size!
fi
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0



More information about the Comp.sources.misc mailing list