axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] 20080606.02.tpd.patch (remove view


From: daly
Subject: [Axiom-developer] 20080606.02.tpd.patch (remove view
Date: Sat, 7 Jun 2008 11:20:12 -0500

The src/graph/viewman directory was removed.
The files are documented in bookvol8
========================================================================
diff --git a/changelog b/changelog
index a24057b..e0e7f6f 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,15 @@
+20080606 tpd src/graph/viewman.h removed, replace by bookvol8
+20080606 tpd src/graph/viewman.c removed, replace by bookvol8
+20080606 tpd src/graph/sselect.c removed, replace by bookvol8
+20080606 tpd src/graph/readview.c removed, replace by bookvol8
+20080606 tpd src/graph/makegraph.c removed, replace by bookvol8
+20080606 tpd src/graph/Makefile removed, replace by bookvol8
+20080606 tpd src/graph/make3d.c removed, replace by bookvol8
+20080606 tpd src/graph/make2d.c removed, replace by bookvol8
+20080606 tpd src/graph/globalsm.h removed, replace by bookvol8
+20080606 tpd src/graph/fun3d.c removed, replace by bookvol8
+20080606 tpd src/graph/fun2d.c removed, replace by bookvol8
+20080606 tpd src/graph/cleanup.c removed, replace by bookvol8
 20080605 tpd books/bookvol8 make viewman
 20080605 tpd src/graph/Makefile extract viewman from bookvol8
 20080604 tpd src/graph/Makefile remove fileformats
diff --git a/src/graph/viewman/Makefile.pamphlet 
b/src/graph/viewman/Makefile.pamphlet
deleted file mode 100644
index 35c4a9c..0000000
--- a/src/graph/viewman/Makefile.pamphlet
+++ /dev/null
@@ -1,330 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{src/graph/viewman Makefile}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{environment}
-<<environment>>=
-IN=    ${SRC}/graph/viewman
-MIDINT=        ${INT}/graph/viewman
-MIDOBJ=        ${OBJ}/${SYS}/graph/viewman
-OUT=   ${MNT}/${SYS}/lib
-LIB=    ${OBJ}/${SYS}/lib
-DOC=    ${MNT}/${SYS}/doc/src/graph
-
-# local include files shared by graphics
-LINC=  ${SRC}/graph/include
-
-# global include files shared by everyone 
-GINC=  ${SRC}/include
-
-@
-\section{viewman}
-<<viewman>>=
-${OUT}/viewman: ${OBJS} ${LIB}/util.o ${LIB}/bsdsignal.o
-       @ echo 1 linking ${OUT}/viewman
-       @ ${CC} ${OBJS} -o ${OUT}/viewman ${LIB}/util.o ${LIB}/bsdsignal.o 
${LDFLAGS}
-
-@
-<<viewman.c (MIDINT from IN)>>=
-${MIDINT}/viewman.c: ${IN}/viewman.c.pamphlet
-       @ echo 2 ${MIDINT}/viewman.c from ${IN}/viewman.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/viewman.c.pamphlet >viewman.c )
-
-@
-<<viewman.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/viewman.o: ${HEADERS} ${MIDINT}/viewman.c
-       @ echo 3 making ${MIDOBJ}/viewman.o from ${MIDINT}/viewman.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/viewman.c )
-
-@
-<<viewman.c.dvi (DOC from IN)>>=
-${DOC}/viewman.c.dvi: ${IN}/viewman.c.pamphlet 
-       @echo 4 making ${DOC}/viewman.c.dvi from ${IN}/viewman.c.pamphlet
-       @(cd ${DOC} ; \
-       cp ${IN}/viewman.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} viewman.c ; \
-       rm -f ${DOC}/viewman.c.pamphlet ; \
-       rm -f ${DOC}/viewman.c.tex ; \
-       rm -f ${DOC}/viewman.c )
-
-@
-\section{sselect}
-<<sselect.c (MIDINT from IN)>>=
-${MIDINT}/sselect.c: ${IN}/sselect.c.pamphlet
-       @ echo 5 ${MIDINT}/sselect.c from ${IN}/sselect.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/sselect.c.pamphlet >sselect.c )
-
-@
-<<sselect.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/sselect.o: ${HEADERS} ${MIDINT}/sselect.c
-       @ echo 6 making ${MIDOBJ}/sselect.o from ${MIDINT}/sselect.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/sselect.c )
-
-@
-<<sselect.c.dvi (DOC from IN)>>=
-${DOC}/sselect.c.dvi: ${IN}/sselect.c.pamphlet 
-       @echo 7 making ${DOC}/sselect.c.dvi from ${IN}/sselect.c.pamphlet
-       @(cd ${DOC} ; \
-       cp ${IN}/sselect.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} sselect.c ; \
-       rm -f ${DOC}/sselect.c.pamphlet ; \
-       rm -f ${DOC}/sselect.c.tex ; \
-       rm -f ${DOC}/sselect.c )
-
-@
-\section{cleanup}
-<<cleanup.c (MIDINT from IN)>>=
-${MIDINT}/cleanup.c: ${IN}/cleanup.c.pamphlet
-       @ echo 8 ${MIDINT}/cleanup.c from ${IN}/cleanup.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/cleanup.c.pamphlet >cleanup.c )
-
-@
-<<cleanup.c (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/cleanup.o: ${HEADERS} ${MIDINT}/cleanup.c
-       @ echo 9 making ${MIDOBJ}/cleanup.o from ${MIDINT}/cleanup.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/cleanup.c )
-
-@
-<<cleanup.c.dvi (DOC from IN)>>=
-${DOC}/cleanup.c.dvi: ${IN}/cleanup.c.pamphlet 
-       @echo 10 making ${DOC}/cleanup.c.dvi from ${IN}/cleanup.c.pamphlet
-       @(cd ${DOC} ; \
-       cp ${IN}/cleanup.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} cleanup.c ; \
-       rm -f ${DOC}/cleanup.c.pamphlet ; \
-       rm -f ${DOC}/cleanup.c.tex ; \
-       rm -f ${DOC}/cleanup.c )
-
-@
-\section{fun2d}
-<<fun2d.c (MIDINT from IN)>>=
-${MIDINT}/fun2d.c: ${IN}/fun2d.c.pamphlet
-       @ echo 11 ${MIDINT}/fun2d.c from ${IN}/fun2d.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/fun2d.c.pamphlet >fun2d.c )
-
-@
-<<fun2d.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/fun2d.o: ${HEADERS} ${MIDINT}/fun2d.c
-       @ echo 12 making ${MIDOBJ}/fun2d.o from ${MIDINT}/fun2d.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/fun2d.c )
-
-@
-<<fun2d.c.dvi (DOC from IN)>>=
-${DOC}/fun2d.c.dvi: ${IN}/fun2d.c.pamphlet 
-       @echo 13 making ${DOC}/fun2d.c.dvi from ${IN}/fun2d.c.pamphlet 
-       @(cd ${DOC} ; \
-       cp ${IN}/fun2d.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} fun2d.c ; \
-       rm -f ${DOC}/fun2d.c.pamphlet ; \
-       rm -f ${DOC}/fun2d.c.tex ; \
-       rm -f ${DOC}/fun2d.c )
-
-@
-\section{make2d}
-<<make2d.c (MIDINT from IN)>>=
-${MIDINT}/make2d.c: ${IN}/make2d.c.pamphlet
-       @ echo 14 ${MIDINT}/make2d.c from ${IN}/make2d.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/make2d.c.pamphlet >make2d.c )
-
-<<make2d.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/make2d.o: ${HEADERS} ${MIDINT}/make2d.c
-       @ echo 15 making ${MIDOBJ}/make2d.o from ${MIDINT}/make2d.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/make2d.c )
-
-@
-<<make2d.c.dvi (DOC from IN)>>=
-${DOC}/make2d.c.dvi: ${IN}/make2d.c.pamphlet 
-       @echo 16 making ${DOC}/make2d.c.dvi from ${IN}/make2d.c.pamphlet 
-       @(cd ${DOC} ; \
-       cp ${IN}/make2d.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} make2d.c ; \
-       rm -f ${DOC}/make2d.c.pamphlet ; \
-       rm -f ${DOC}/make2d.c.tex ; \
-       rm -f ${DOC}/make2d.c )
-
-@
-\section{makegraph}
-<<makegraph.c (MIDINT from IN)>>=
-${MIDINT}/makegraph.c: ${IN}/makegraph.c.pamphlet
-       @ echo 17 ${MIDINT}/makegraph.c from ${IN}/makegraph.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/makegraph.c.pamphlet >makegraph.c )
-
-@
-<<makegraph.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/makegraph.o: ${HEADERS} ${MIDINT}/makegraph.c
-       @ echo 18 making ${MIDOBJ}/makegraph.o from ${MIDINT}/makegraph.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/makegraph.c )
-
-@
-<<makegraph.c.dvi (DOC from IN)>>=
-${DOC}/makegraph.c.dvi: ${IN}/makegraph.c.pamphlet 
-       @echo 19 making ${DOC}/makegraph.c.dvi from ${IN}/makegraph.c.pamphlet 
-       @(cd ${DOC} ; \
-       cp ${IN}/makegraph.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} makegraph.c ; \
-       rm -f ${DOC}/makegraph.c.pamphlet ; \
-       rm -f ${DOC}/makegraph.c.tex ; \
-       rm -f ${DOC}/makegraph.c )
-
-@
-\section{fun3d}
-<<fun3d.c (MIDINT from IN)>>=
-${MIDINT}/fun3d.c: ${IN}/fun3d.c.pamphlet
-       @ echo 20 ${MIDINT}/fun3d.c from ${IN}/fun3d.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/fun3d.c.pamphlet >fun3d.c )
-
-@
-<<fun3d.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/fun3d.o: ${HEADERS} ${MIDINT}/fun3d.c
-       @ echo 21 making ${MIDOBJ}/fun3d.o from ${MIDINT}/fun3d.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/fun3d.c )
-
-@
-<<fun3d.c.dvi (DOC from IN)>>=
-${DOC}/fun3d.c.dvi: ${IN}/fun3d.c.pamphlet 
-       @echo 22 making ${DOC}/fun3d.c.dvi from ${IN}/fun3d.c.pamphlet 
-       @(cd ${DOC} ; \
-       cp ${IN}/fun3d.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} fun3d.c ; \
-       rm -f ${DOC}/fun3d.c.pamphlet ; \
-       rm -f ${DOC}/fun3d.c.tex ; \
-       rm -f ${DOC}/fun3d.c )
-
-@
-\section{make3d}
-<<make3d.c (MIDINT from IN)>>=
-${MIDINT}/make3d.c: ${IN}/make3d.c.pamphlet
-       @ echo 23 ${MIDINT}/make3d.c from ${IN}/make3d.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/make3d.c.pamphlet >make3d.c )
-
-@
-<<make3d.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/make3d.o: ${HEADERS} ${MIDINT}/make3d.c
-       @ echo 24 making ${MIDOBJ}/make3d.o from ${MIDINT}/make3d.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/make3d.c )
-
-@
-<<make3d.c.dvi (DOC from IN)>>=
-${DOC}/make3d.c.dvi: ${IN}/make3d.c.pamphlet 
-       @echo 25 making ${DOC}/make3d.c.dvi from ${IN}/make3d.c.pamphlet 
-       @(cd ${DOC} ; \
-       cp ${IN}/make3d.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} make3d.c ; \
-       rm -f ${DOC}/make3d.c.pamphlet ; \
-       rm -f ${DOC}/make3d.c.tex ; \
-       rm -f ${DOC}/make3d.c )
-
-@
-\section{readview}
-<<readview.c (MIDINT from IN)>>=
-${MIDINT}/readview.c: ${IN}/readview.c.pamphlet
-       @ echo 26 ${MIDINT}/readview.c from ${IN}/readview.c.pamphlet
-       @( cd ${MIDINT} ; \
-       ${TANGLE} ${IN}/readview.c.pamphlet >readview.c )
-
-@
-<<readview.o (MIDOBJ from MIDINT)>>=
-${MIDOBJ}/readview.o: ${HEADERS} ${MIDINT}/readview.c
-       @ echo 27 making ${MIDOBJ}/readview.o from ${MIDINT}/readview.c
-       @ ( cd ${MIDOBJ} ; ${CC} ${CFLAGS} -c ${MIDINT}/readview.c )
-
-@
-<<readview.c.dvi (DOC from IN)>>=
-${DOC}/readview.c.dvi: ${IN}/readview.c.pamphlet 
-       @echo 28 making ${DOC}/readview.c.dvi from ${IN}/readview.c.pamphlet 
-       @(cd ${DOC} ; \
-       cp ${IN}/readview.c.pamphlet ${DOC} ; \
-       ${DOCUMENT} ${NOISE} readview.c ; \
-       rm -f ${DOC}/readview.c.pamphlet ; \
-       rm -f ${DOC}/readview.c.tex ; \
-       rm -f ${DOC}/readview.c )
-
-@
-<<*>>=
-<<environment>>
-
-CFLAGS  = ${CCF} -I${LINC} -I${GINC} -I${IN}
-LDFLAGS = ${LDF} -lX11
-
-DOCFILES=${DOC}/viewman.c.dvi ${DOC}/sselect.c.dvi ${DOC}/cleanup.c.dvi \
-         ${DOC}/fun2d.c.dvi   ${DOC}/make2d.c.dvi  ${DOC}/makegraph.c.dvi \
-         ${DOC}/fun3d.c.dvi   ${DOC}/make3d.c.dvi  ${DOC}/readview.c.dvi
-
-OBJS=   ${MIDOBJ}/viewman.o ${MIDOBJ}/readview.o  ${MIDOBJ}/make3d.o \
-       ${MIDOBJ}/fun3d.o   ${MIDOBJ}/makegraph.o ${MIDOBJ}/make2d.o \
-        ${MIDOBJ}/fun2d.o   ${MIDOBJ}/cleanup.o   ${MIDOBJ}/sselect.o \
-        ${OBJ}/${SYS}/lib/sockio-c.o
-
-HEADERS= ${IN}/viewman.h       ${LINC}/component.h ${LINC}/view2d.h  \
-         ${LINC}/view3d.h      ${LINC}/tube.h      ${LINC}/actions.h \
-         ${LINC}/viewcommand.h ${GINC}/com.h
-
-all: ${OBJS} ${OUT}/viewman ${DOCFILES}
-       @ echo 30 finished ${IN}
-
-<<viewman>>
-
-<<viewman.c (MIDINT from IN)>>
-<<viewman.o (MIDOBJ from MIDINT)>>
-<<viewman.c.dvi (DOC from IN)>>
-
-<<sselect.c (MIDINT from IN)>>
-<<sselect.o (MIDOBJ from MIDINT)>>
-<<sselect.c.dvi (DOC from IN)>>
-
-<<cleanup.c (MIDINT from IN)>>
-<<cleanup.c (MIDOBJ from MIDINT)>>
-<<cleanup.c.dvi (DOC from IN)>>
-
-<<fun2d.c (MIDINT from IN)>>
-<<fun2d.o (MIDOBJ from MIDINT)>>
-<<fun2d.c.dvi (DOC from IN)>>
-
-<<make2d.c (MIDINT from IN)>>
-<<make2d.o (MIDOBJ from MIDINT)>>
-<<make2d.c.dvi (DOC from IN)>>
-
-<<makegraph.c (MIDINT from IN)>>
-<<makegraph.o (MIDOBJ from MIDINT)>>
-<<makegraph.c.dvi (DOC from IN)>>
-
-<<fun3d.c (MIDINT from IN)>>
-<<fun3d.o (MIDOBJ from MIDINT)>>
-<<fun3d.c.dvi (DOC from IN)>>
-
-<<make3d.c (MIDINT from IN)>>
-<<make3d.o (MIDOBJ from MIDINT)>>
-<<make3d.c.dvi (DOC from IN)>>
-
-<<readview.c (MIDINT from IN)>>
-<<readview.o (MIDOBJ from MIDINT)>>
-<<readview.c.dvi (DOC from IN)>>
-
-clean: 
-       @ echo 31 cleaning ${IN}/viewman
-
-document: 
-       @ echo 32 documenting ${IN}/viewman
-
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/cleanup.c.pamphlet 
b/src/graph/viewman/cleanup.c.pamphlet
deleted file mode 100644
index 0b9016e..0000000
--- a/src/graph/viewman/cleanup.c.pamphlet
+++ /dev/null
@@ -1,228 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman cleanup.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _CLEANUP_C
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#if !defined(BSDplatform)
-#include <malloc.h>
-#endif
-#include <assert.h>
-#include <signal.h>
-#include <sys/wait.h>
-
-#include "viewman.h"
-#include "actions.h"
-
-#include "util.h1"
-#include "cleanup.h1"
-#include "makegraph.h1"
-#include "readview.h1"
-
-void
-brokenPipe(int sig)
-{
-  fprintf(stderr,
-          "The viewport manager tried to write to a non-existing pipe.\n");
-}
-
-
-void
-endChild(int sig)
-{
-
-  checkClosedChild = yes;
-}
-
-
-/****************************
- * void rmViewMgr(slotPtr)  *
- *                          *
- * given a pointer to a     *
- * viewManager, this        *
- * procedure removes it     *
- * from the viewport list   *
-*****************************/
-
-void 
-rmViewMgr(viewManager *slotPtr)
-{
-  
-  int i,throwAway,code;
-  viewManager *somePort, *someOtherPort;
-  graphStruct *someGraph,*someOtherGraph;   /* used in discarding graphs */
-  viewsWithThisGraph *someView,*someOtherView;
-  
-  for (somePort=someOtherPort=viewports;
-       (somePort != 0) && (somePort != slotPtr);
-       somePort=(someOtherPort=somePort)->nextViewport)
-    {}
-  assert ((somePort == 0) ||
-         (somePort == viewports) ||
-         (somePort == someOtherPort->nextViewport));
-
-  if (somePort) {
-    if (somePort == viewports) viewports=viewports->nextViewport;
-    else someOtherPort->nextViewport = somePort->nextViewport;
-  }
-  /*** if view2d, then clean up after the graphs as well ***/
-  if (slotPtr->viewType == view2DType) {
-    for (i=0; i<maxGraphs; i++) {
-      code=readViewport(slotPtr,&throwAway,intSize);  /* get the graph to 
discard */
-      if (code == -1) break; /* read failure - give up */
-      if (throwAway) {                           /* zero means no graph */
-
-       for (someGraph = someOtherGraph = graphList;
-             (someGraph != 0) && (someGraph->key != throwAway);
-            someGraph=(someOtherGraph=someGraph)->nextGraph)
-         {
-         }
-        /* someGraph is 0 if not found */
-       /* someGraph == graphList if found at first */
-       /* otherwise someGraph == someOtherGraph->nextGraph */
-       assert( (someGraph == 0) ||
-               (someGraph == graphList) ||
-               (someGraph == someOtherGraph->nextGraph));
-
-        if (someGraph) {              /* if found (should always be true) */
-
-         for(someView=someOtherView=someGraph->views;
-             (someView !=0 ) && (someView->viewGr != slotPtr);
-             someView=(someOtherView=someView)->nextViewthing)
-           {
-           }
-         /* similarly */
-         assert( (someView == 0) ||
-                 (someView == someGraph->views) ||
-                 (someView == someOtherView->nextViewthing));
-
-          if (someView) {     /* if found (should always be true) */
-           if (someView == someGraph->views) 
-             /* first */
-             someGraph->views = someGraph->views->nextViewthing;
-           else
-             someOtherView->nextViewthing = someView->nextViewthing;
-            free(someView);                    /* remove this viewport 
-                                                 from list */
-          }
-         /* if now nothing is pointing  to this graph , remove the graph from 
the list*/
-          if (someGraph->views == 0) {
-           if (someGraph == graphList)
-             graphList = graphList->nextGraph;
-           else
-             someOtherGraph->nextGraph = someGraph->nextGraph;
-            discardGraph(someGraph);           /* free the graph */
-          }
-        }  /* if someGraph */
-      } /* if throwAway */
-    } /* for i */
-  } /* if type is view2D */
-  close(slotPtr->viewIn);
-  close(slotPtr->viewOut);
-  free(slotPtr);
-} /* rmViewMgr() */
-
-
-/***********************************
- * int closeChildViewport(slotPtr) *
- *                                 *
- * given a pointer to a viewport   *
- * structure (viewManager) this    *
- * procedure first waits for the   *
- * actual process to die and then  *
- * removes it from the list of     *
- * viewports via rmViewMgr().      *
- ***********************************/
-
-void  
-closeChildViewport(viewManager *slotPtr)
-{
-  
-  int status;
-  rmViewMgr(slotPtr);
-  wait(&status); 
-  
-}  /* closeChildViewport */
-
-
-/*********************
- * int goodbye()     *
- *                   *
- * kill all children *
- * (how mean) and    *
- * then kill self.   *
- *********************/
-
-void 
-goodbye(int sig)
-{
-
-  viewManager *v;
-
-  v = viewports;
-  while (v) {
-    kill(v->PID,SIGTERM);
-    while (wait(NULL) == -1);
-    v = v->nextViewport;
-  }
-  exit(0);
-
-}
-
-
-
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/fun2d.c.pamphlet 
b/src/graph/viewman/fun2d.c.pamphlet
deleted file mode 100644
index 834bd79..0000000
--- a/src/graph/viewman/fun2d.c.pamphlet
+++ /dev/null
@@ -1,396 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman fun2d.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _FUN2D_C
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-
-
-
-#include "viewman.h"
-#include "actions.h"
-
-#include "util.h1"
-#include "sockio-c.h1"
-#include "fun2d.h1"
-#include "readview.h1"
-#include "make2d.h1"
-
-#define writeEach
-
-void 
-funView2D(int viewCommand)
-{
-
-  int code;
-  int viewPID;
-  float f1,f2;
-  int i1,i2,i3;
-  viewManager *viewport;
-
-  viewPID = get_int(spadSock);
-
-
-  viewport = viewports;
-  while ((viewport) && (viewport->PID != viewPID)) {
-    viewport = viewport->nextViewport;
-  }
-  
-  if (viewport) {
-    send_int(spadSock,1);  /* acknowledge to spad */
-    code = write(viewport->viewOut,&viewCommand,intSize);
-
-
-    switch (viewCommand) {
-
-    case putGraph:
-      i1 = get_int(spadSock);  /* graph key */
-      i2 = get_int(spadSock);  /* viewport slot 1..9 */
-      i2--; /* 0..8*/
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&i2,intSize);
-      i3 = 1; /* continue*/
-      code = write(viewport->viewOut,&i3,intSize);      
-      sendGraphToView2D(0,i1,viewport,&currentGraphState);
-     
-      break;
-
-    case translate2D:
-      i1 = get_int(spadSock);   /* graph index */
-      f1 = get_float(spadSock); /* translate in the x direction */
-      f2 = get_float(spadSock); /* translate in the y direction */
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      break;
-
-    case scale2D:
-      i1 = get_int(spadSock);   /* graph index */
-      f1 = get_float(spadSock); /* scale in the x direction */
-      f2 = get_float(spadSock); /* scale in the y direction */
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      break;
-
-    case hideControl2D:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-
-    case axesOnOff2D:
-    case unitsOnOff2D:
-    case connectOnOff:
-    case pointsOnOff:
-    case spline2D:
-    case showing2D:
-      i1 = get_int(spadSock);   /* graph index */
-      i2 = get_int(spadSock);   /* axes status */
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&i2,intSize);
-      break;
-
-    case moveViewport:
-    case resizeViewport:
-      i1 = get_int(spadSock);
-      i2 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&i2,intSize);
-      break;
-
-    case changeTitle:
-      s1 = get_string(spadSock);
-      i1 = strlen(s1);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,s1,i1);
-      break;
-
-    case writeView:
-      s1 = get_string(spadSock);
-      i1 = strlen(s1);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,s1,i1);
-        /* write out the types of things to be written */
-      i2 = get_int(spadSock);
-      code = write(viewport->viewOut,&i2,intSize);
-      while (i2) {
-        i2 = get_int(spadSock);
-        code = write(viewport->viewOut,&i2,intSize);
-      }
-      break;
-
-    case spadPressedAButton:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-
-    }  /* switch */
-         /*** get acknowledge from viewport */
-    code = readViewport(viewport,&acknow,intSize);
-    send_int(spadSock,1);  /* acknowledge to spad */
-  } else {  
-    send_int(spadSock,-1);  /* send error value in acknowledge to spad */
-  }
-
-}
-
-void 
-forkView2D(void)
-{
-
-  viewManager      *viewport;
-  int              childPID, code;
-  int              i;
-  view2DStruct     doView2D;
-  graphStateStruct doGraphStateArray[maxGraphs];
-  int              there;
-  int  pipe0[2], pipe1[2];
-
-  char envAXIOM[100],runView[100];
-
-#ifdef DEBUG
-  fprintf(stderr,"fun2d:Pipe calls for 2D\n");
-#endif
-  check(pipe(pipe0));
-  check(pipe(pipe1));
-
-#ifdef DEBUG
-  fprintf(stderr,"Fork routine for 2D\n");
-#endif
-  childPID = check(fork());
-
-  switch(childPID) {
-
-  case -1:
-    fprintf(stderr,
-            "The viewport manager cannot open a viewport window.\nTry closing 
some viewports.\n");
-    return;
-
-  case 0:
-    /*****************************
-     *       child process       *
-     *****************************/
-        /* map pipes from viewport manager to standard input and output */
-#ifdef DEBUG
-    fprintf(stderr,"Mapping pipes to standard I/O in 2D\n");
-#endif
-    check(dup2(pipe0[0],0));
-    check(dup2(pipe1[1],1));
-    close(pipe0[0]);
-    close(pipe0[1]);
-    close(pipe1[0]);
-    close(pipe1[1]);
-
-#ifdef DEBUG
-    fprintf(stderr,"Executing TwoDimensionalViewport process\n");
-#endif
-    sprintf(envAXIOM,"%s",getenv("AXIOM"));
-    sprintf(runView,"%s%s",envAXIOM,"/lib/view2d");
-    check(execl(runView,runView,NULL));
-    fprintf(stderr,"The viewport manager could not execute view2d.\nCheck that 
view2d is on your PATH.\n");
-    exit(-1);
-
-  default:
-    /******************************
-     *       parent process       *
-     ******************************/
-    if (!(viewport = (viewManager *)malloc(sizeof(viewManager)))) {
-      fprintf(stderr,"The viewport manager ran out of memory trying to create 
a new viewport window (viewManager).\n");
-      return;
-    }
-    viewport->viewType = view2DType;
-    viewport->PID = childPID;
-
-         /* set up pipes to child process */
-    close(pipe0[0]);
-    close(pipe1[1]);
-    viewport->viewIn  = pipe1[0];
-    viewport->viewOut = pipe0[1];
-
-         /* add new viewport to global list */
-    viewport->nextViewport = viewports;
-    viewports = viewport;
-
-    if (viewport->viewIn <0) {
-      fprintf(stderr,
- "viewman could not create connection to a 2D viewport window. Try again.\n");
-      return;
-    } else {
-
-      code = readViewport(viewport,&acknow,intSize);
-
-      if (code < 0) {
-        fprintf(stderr,
-         "viewman could not read from a 2D viewport window\ncode=%d\nack=%d\n",
-         code,acknow);
-        return;
-      }
-    } 
-
-    makeView2DFromSpadData(&doView2D,doGraphStateArray);
-
-      /* tell the child that mother is a viewport manager */
-    i = no;
-    write(viewport->viewOut,&i,sizeof(int));
-
-    write(viewport->viewOut,&doView2D,sizeof(view2DStruct));
-    i = strlen(doView2D.title)+1;
-    write(viewport->viewOut,&i,intSize); /* send length of the title child */
-    write(viewport->viewOut,doView2D.title,i);  /* send title to the child */
-    for (i=0; i<maxGraphs; i++) {
-      there = doView2D.graphKeyArray[i];
-      write(viewport->viewOut,&there,intSize);
-      sendGraphToView2D(i,there,viewport,doGraphStateArray);
-    };  /* for i in graphs */
-    
-         /*** get acknowledge from viewport */
-
-    code = readViewport(viewport,&(viewport->viewWindow),sizeof(Window));
-    sleep(1);  /* wait a second...*/
-    send_int(spadSock,viewport->PID);  /* acknowledge to spad */
-
-  }   /* switch */
-
-}    /* forkView2D() */
-
-
-
-void
-sendGraphToView2D(int i,int there,viewManager *viewport,
-                  graphStateStruct *doGraphStateArray)
-{
-
-  graphStruct      *gPtr;
-  pointListStruct  *llPtr;
-  pointStruct      *p;
-  viewsWithThisGraph *oneView;
-  int j,k;
-
-  if (there) {
-    gPtr = graphList;
-    while ( gPtr != NULL  &&   gPtr->key != there)    /** find the right graph 
(same key) in graph list **/
-      gPtr = gPtr->nextGraph;
-    if ((gPtr==NULL) ||(gPtr->key != there) ){
-      fprintf(stderr,
-              "The viewport manager cannot find the requested graph and will 
quit and restart.\n");
-      exit(-1);
-    } 
-    
-
-/*** Before sending off the data, insert a pointer to viewport from graph ***/
-  if (!(oneView = (viewsWithThisGraph *)malloc(sizeof(viewsWithThisGraph)))) {
-    fprintf(stderr,"The viewport manager ran out of memory trying to create a 
new graph (viewsWithThisGraph).\n");
-    return;
-  }
-  oneView->viewGr          = viewport;
-  oneView->nextViewthing   = gPtr->views;
-  gPtr->views              = oneView;
-
-#ifdef writeEach    
-    write(viewport->viewOut,&(gPtr->xmin),floatSize);
-    write(viewport->viewOut,&(gPtr->xmax),floatSize);
-    write(viewport->viewOut,&(gPtr->ymin),floatSize);
-    write(viewport->viewOut,&(gPtr->ymax),floatSize);
-    write(viewport->viewOut,&(gPtr->xNorm),floatSize);
-    write(viewport->viewOut,&(gPtr->yNorm),floatSize);
-    write(viewport->viewOut,&(gPtr->spadUnitX),floatSize);
-    write(viewport->viewOut,&(gPtr->spadUnitY),floatSize);
-    write(viewport->viewOut,&(gPtr->unitX),floatSize);
-    write(viewport->viewOut,&(gPtr->unitY),floatSize);
-    write(viewport->viewOut,&(gPtr->originX),floatSize);
-    write(viewport->viewOut,&(gPtr->originY),floatSize);
-    write(viewport->viewOut,&(gPtr->numberOfLists),intSize);
-#else
-    write(viewport->viewOut,gPtr,sizeof(graphStruct));
-#endif
-    
-    llPtr = gPtr->listOfListsOfPoints;
-    for (j=0; j<(gPtr->numberOfLists); j++) {
-      write(viewport->viewOut,&(llPtr->numberOfPoints),intSize);
-      p = llPtr->listOfPoints;
-      for (k=0; k<(llPtr->numberOfPoints); k++) {
-        write(viewport->viewOut,&(p->x),floatSize);
-        write(viewport->viewOut,&(p->y),floatSize);
-        write(viewport->viewOut,&(p->hue),floatSize);
-        write(viewport->viewOut,&(p->shade),floatSize);
-        p++;
-      }    /* for k in list of points */
-      write(viewport->viewOut,&(llPtr->pointColor),intSize);
-      write(viewport->viewOut,&(llPtr->lineColor),intSize);
-      write(viewport->viewOut,&(llPtr->pointSize),intSize);
-      llPtr++;
-    }   /* for j in list of lists of points */
-    
-    /* a graph state is defined for a graph if graph is there */
-    write(viewport->viewOut,&(doGraphStateArray[i].scaleX),floatSize);    
-    write(viewport->viewOut,&(doGraphStateArray[i].scaleY),floatSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].deltaX),floatSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].deltaY),floatSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].pointsOn),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].connectOn),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].splineOn),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].axesOn),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].axesColor),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].unitsOn),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].unitsColor),intSize);
-    write(viewport->viewOut,&(doGraphStateArray[i].showing),intSize);
-
-  }   /* if graph is there */
-
-}
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/fun3d.c.pamphlet 
b/src/graph/viewman/fun3d.c.pamphlet
deleted file mode 100644
index 78de429..0000000
--- a/src/graph/viewman/fun3d.c.pamphlet
+++ /dev/null
@@ -1,384 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman fun3d.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _FUN3D_C
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-
-#include "viewman.h"
-#include "mode.h"
-#include "actions.h"
-  
-#include "util.h1"
-#include "sockio-c.h1"
-#include "fun3d.h1"
-#include "make3d.h1"
-#include "readview.h1"
-
-void 
-funView3D(int viewCommand)
-{
-
-  int code;
-  int viewPID;
-  float f1,f2,f3,f4;
-  int i1,i2;
-  viewManager *viewport;
-
-  viewPID = get_int(spadSock);
-
-  viewport = viewports;
-  while ((viewport) && (viewport->PID != viewPID)) 
-    viewport = viewport->nextViewport;
-
-  if (viewport) {
-    send_int(spadSock,1);  /* acknowledge to spad */
-
-    viewmanEvent.xclient.window = viewport->viewWindow;
-
-    code = write(viewport->viewOut,&viewCommand,intSize);
-    switch (viewCommand) {
-    case rotate:
-      f1 = get_float(spadSock);
-      f2 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      break;
-
-    case zoom:
-      f1 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      break;
-
-    case zoomx:
-      f1 = get_float(spadSock);
-      f2 = get_float(spadSock);
-      f3 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      code = write(viewport->viewOut,&f3,floatSize);
-      break;
-
-    case translate:
-      f1 = get_float(spadSock);
-      f2 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      break;
-
-    case modifyPOINT:
-      i1 = get_int(spadSock);
-      f1 = get_float(spadSock);
-      f2 = get_float(spadSock);
-      f3 = get_float(spadSock);
-      f4 = get_float(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      code = write(viewport->viewOut,&f3,floatSize);
-      code = write(viewport->viewOut,&f4,floatSize);
-      break;
-
-    case hideControl:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-
-    case axesOnOff:
-    case perspectiveOnOff:
-    case region3D:
-    case clipRegionOnOff:
-    case clipSurfaceOnOff:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-
-    case eyeDistanceData:
-    case hitherPlaneData:
-      f1 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      break;
-
-    case colorDef:
-      i1 = get_int(spadSock);
-      i2 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&i2,intSize);
-      break;
-
-    case moveViewport:
-      i1 = get_int(spadSock);
-      i2 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&i2,intSize);
-      break;
-
-    case resizeViewport:
-      i1 = get_int(spadSock);
-      i2 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,&i2,intSize);
-      break;
-
-    case transparent:
-    case opaqueMesh:
-    case render:
-      break;
-
-    case lightDef:
-      f1 = get_float(spadSock);
-      f2 = get_float(spadSock);
-      f3 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      code = write(viewport->viewOut,&f2,floatSize);
-      code = write(viewport->viewOut,&f3,floatSize);
-      break;
-
-    case translucenceDef:
-      f1 = get_float(spadSock);
-      code = write(viewport->viewOut,&f1,floatSize);
-      break;
-
-
-    case changeTitle:
-      s1 = get_string(spadSock);
-      i1 = strlen(s1);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,s1,i1);
-      break;
-
-    case writeView:
-      s1 = get_string(spadSock);
-      i1 = strlen(s1);
-      code = write(viewport->viewOut,&i1,intSize);
-      code = write(viewport->viewOut,s1,i1);
-      /* write out the types of things to be written */
-      i2 = get_int(spadSock);
-      code = write(viewport->viewOut,&i2,intSize);
-      while (i2) {
-        i2 = get_int(spadSock);
-        code = write(viewport->viewOut,&i2,intSize);
-      }
-      break;
-
-    case diagOnOff:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-
-    case outlineOnOff:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-
-    case spadPressedAButton:
-      i1 = get_int(spadSock);
-      code = write(viewport->viewOut,&i1,intSize);
-      break;
-    }  /* switch */
-    /*** get acknowledge from viewport */
-
-    code = readViewport(viewport,&acknow,intSize);
-    send_int(spadSock,1);  /* acknowledge to spad */
-  } else {  /* if (viewport) */
-    send_int(spadSock,-1);  /* send error value in acknowledge to spad */
-  }
-
-}
-void
-forkView3D(int typeOfViewport)
-{
-
-  viewManager *viewport;
-  int         childPID, code;
-  int         i;
-
-  view3DStruct doView3D;
-  int  pipe0[2],pipe1[2];
-  int *anIndex;
-
-  char envAXIOM[100],runView[100];
-  int j,k;
-  LLPoint *anLLPoint;
-  LPoint *anLPoint;
-
-#ifdef DEBUG
-  fprintf(stderr,"Pipe calls for 3D\n");
-#endif
-  check(pipe(pipe0));
-  check(pipe(pipe1));
-
-#ifdef DEBUG
-  fprintf(stderr,"Fork routine for 3D\n");
-#endif
-  switch(childPID = check(fork())) {
-
-  case -1:
-    printf("Cannot create a new process - you probably have too many things 
running already.\n");
-    return;
-
-  case 0:
-    /*****************************
-     *       child process       *
-     *****************************/
-        /* map pipes from viewport manager to standard input and output */
-#ifdef DEBUG
-    fprintf(stderr,"Mapping pipes to standard I/O in 3D\n");
-#endif
-    check(dup2(pipe0[0],0));
-    check(dup2(pipe1[1],1));
-    close(pipe0[0]);
-    close(pipe0[1]);
-    close(pipe1[0]);
-    close(pipe1[1]);
-
-#ifdef DEBUG
-    fprintf(stderr,"Executing ThreeDimensionalViewport process\n");
-#endif
-    sprintf(envAXIOM,"%s",getenv("AXIOM"));
-    sprintf(runView,"%s%s",envAXIOM,"/lib/view3d");
-    check(execl(runView,runView,NULL));
-    fprintf(stderr,"The viewport manager could not execute view3d.\nCheck that 
view3d is on your PATH.\n");
-    exit(-1);
-
-  default:
-    /******************************
-     *       parent process       *
-     ******************************/
-    if (!(viewport = (viewManager *)malloc(sizeof(viewManager)))) {
-      printf("Ran out of memory trying to create a new viewport process.\n");
-      return;
-    }
-    viewport->viewType = typeOfViewport;
-    viewport->PID = childPID;
-
-         /* set up pipes to child process */
-    close(pipe0[0]);
-    close(pipe1[1]);
-    viewport->viewIn  = pipe1[0];
-    viewport->viewOut = pipe0[1];
-
-         /* add new viewport to global list */
-    viewport->nextViewport = viewports;
-    viewports = viewport;
-
-    if (viewport->viewIn <0) {
-      fprintf(stderr,
-              "The viewport manager could not create connection to a 3D 
viewport window. Try again.\n");
-      return;
-    } else {
-
-      code = readViewport(viewport,&acknow,intSize);
-
-      if (code < 0) {
-        fprintf(stderr,
-              "The viewport manager could not read from a 3D viewport 
window\ncode=%d\nack=%d\n",code,acknow);
-        return;
-      }
-    } 
-
-    makeView3DFromSpadData(&doView3D,typeOfViewport);
-
-      /* tell the child that parent is a viewport manager */
-    i = no;
-    write(viewport->viewOut,&i,sizeof(int));
-
-    write(viewport->viewOut,&doView3D,sizeof(view3DStruct));
-
-    i = strlen(doView3D.title)+1;
-    write(viewport->viewOut,&i,intSize);        /* tell the length of the 
title to child */
-    write(viewport->viewOut,doView3D.title,i);  /* tell the title to the child 
*/
-    write(viewport->viewOut,&(doView3D.lightVec[0]),floatSize);
-    write(viewport->viewOut,&(doView3D.lightVec[1]),floatSize);
-    write(viewport->viewOut,&(doView3D.lightVec[2]),floatSize);
-
-    /* send generalized 3D components */
-    write(viewport->viewOut,&(doView3D.numOfPoints),intSize);
-    for (i=0; i<doView3D.numOfPoints; i++) {
-      write(viewport->viewOut,&(refPt(doView3D,i)->x),floatSize);
-      write(viewport->viewOut,&(refPt(doView3D,i)->y),floatSize);
-      write(viewport->viewOut,&(refPt(doView3D,i)->z),floatSize);
-      write(viewport->viewOut,&(refPt(doView3D,i)->c),floatSize);
-    }
-    write(viewport->viewOut,&(doView3D.lllp.numOfComponents),intSize);
-    anLLPoint = doView3D.lllp.llp;
-    for (i=0; i<doView3D.lllp.numOfComponents; i++,anLLPoint++) {
-      write(viewport->viewOut,&(anLLPoint->prop.closed),intSize);
-      write(viewport->viewOut,&(anLLPoint->prop.solid),intSize);
-      write(viewport->viewOut,&(anLLPoint->numOfLists),intSize);
-      anLPoint = anLLPoint->lp;
-      for (j=0; j<anLLPoint->numOfLists; j++,anLPoint++) {
-        write(viewport->viewOut,&(anLPoint->prop.closed),intSize);
-        write(viewport->viewOut,&(anLPoint->prop.solid),intSize);
-        write(viewport->viewOut,&(anLPoint->numOfPoints),intSize);
-        anIndex = anLPoint->indices;
-        for (k=0; k<anLPoint->numOfPoints; k++,anIndex++)
-          write(viewport->viewOut,anIndex,intSize);
-      } /* for LPoints in LLPoints (j) */
-    } /* for LLPoints in LLLPoints (i) */
-    
-         /*** get acknowledge from viewport */
-    code = readViewport(viewport,&(viewport->viewWindow),sizeof(Window)); 
-    sleep(1);  /* wait a second...*/
-    send_int(spadSock,viewport->PID);  /* acknowledge to spad */
-
-  }   /* switch */
-
-}    /* forkView3D() */
-
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/globalsm.h b/src/graph/viewman/globalsm.h
deleted file mode 100755
index 019ecc3..0000000
--- a/src/graph/viewman/globalsm.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-extern viewManager *viewports,*slot,*stepSlot;
-extern Sock        *spadSock;
-extern int         viewType, viewCommand; 
-extern fd_set         filedes;
-extern int             acknow;
-extern int         graphKey; 
-extern graphStruct *graphList;
-extern char *s1;
-extern Display *dsply;
-extern int     defDsply;
-extern Window  root;
-extern XEvent  viewmanEvent;
-extern int              currentGraph;
-extern graphStateStruct currentGraphState;
-extern int picked;
-extern int viewOkay;
-extern int viewError;
-extern int checkClosedChild,
-           foundBrokenPipe;
-extern char propertyBuffer[];
diff --git a/src/graph/viewman/make2d.c.pamphlet 
b/src/graph/viewman/make2d.c.pamphlet
deleted file mode 100644
index 2a969aa..0000000
--- a/src/graph/viewman/make2d.c.pamphlet
+++ /dev/null
@@ -1,98 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman make2d.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _MAKE2D_C
-
-#include "viewman.h"
-
-#include "sockio-c.h1"
-#include "make2d.h1"
-
-void 
-makeView2DFromSpadData(view2DStruct *viewdata,graphStateStruct graphState[])
-{
-
-  int i;
-
-  viewdata->title = get_string(spadSock);
-
-  viewdata->vX = get_int(spadSock);
-  viewdata->vY = get_int(spadSock);
-  viewdata->vW = get_int(spadSock);
-  viewdata->vH = get_int(spadSock);
-
-  viewdata->showCP = get_int(spadSock);
-
-  for (i=0; i<maxGraphs; i++) {
-    viewdata->graphKeyArray[i] = get_int(spadSock);
-    if (viewdata->graphKeyArray[i]) {
-
-      graphState[i].scaleX     = get_float(spadSock);
-      graphState[i].scaleY     = get_float(spadSock);
-      graphState[i].deltaX     = get_float(spadSock);
-      graphState[i].deltaY     = get_float(spadSock);  
-      graphState[i].pointsOn   = get_int(spadSock);
-      graphState[i].connectOn  = get_int(spadSock);
-      graphState[i].splineOn   = get_int(spadSock);
-      graphState[i].axesOn     = get_int(spadSock);
-      graphState[i].axesColor  = get_int(spadSock);
-      graphState[i].unitsOn    = get_int(spadSock);
-      graphState[i].unitsColor = get_int(spadSock);
-      graphState[i].showing    = get_int(spadSock);
-      graphState[i].selected   = 1;                /* always default to 
selected? */
-
-    }
-  }
-}
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/make3d.c.pamphlet 
b/src/graph/viewman/make3d.c.pamphlet
deleted file mode 100644
index ec92bc0..0000000
--- a/src/graph/viewman/make3d.c.pamphlet
+++ /dev/null
@@ -1,178 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman make3d.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _MAKE3D_C
-
-#include <stdlib.h>
-
-#include "viewman.h"
-#include "mode.h"
-
-#include "sockio-c.h1"
-#include "make3d.h1"
-
-void 
-makeView3DFromSpadData(view3DStruct *viewdata,int typeOfViewport)
-{
-
-  int i,j,k;
-  LLPoint *anLLPoint;
-  LPoint *anLPoint;
-  int *anIndex;
-  int firstPieceOfData = yes;
-  int constantColor;
-  double cMin = 0;
-  double cMax = 0;
-  double cNorm = 0;
-
-  viewdata->typeOf3D = typeOfViewport;
-
-  viewdata->title = get_string(spadSock);
-
-  viewdata->deltaX = get_float(spadSock);
-  viewdata->deltaY = get_float(spadSock);
-  viewdata->scale  = get_float(spadSock);
-  viewdata->scaleX = get_float(spadSock);
-  viewdata->scaleY = get_float(spadSock);
-  viewdata->scaleZ = get_float(spadSock);
-  viewdata->theta  = get_float(spadSock);
-  viewdata->phi    = get_float(spadSock);
-
-  viewdata->vX = get_int(spadSock);
-  viewdata->vY = get_int(spadSock);
-  viewdata->vW = get_int(spadSock);
-  viewdata->vH = get_int(spadSock);
-  
-  viewdata->showCP    = get_int(spadSock);
-  viewdata->style     = get_int(spadSock);
-  viewdata->AxesOn    = get_int(spadSock);
-  viewdata->diagonals = get_int(spadSock);
-  viewdata->outlineRenderOn = get_int(spadSock);
-  viewdata->box = get_int(spadSock);
-  viewdata->clipbox = get_int(spadSock);
-  viewdata->clipStuff = get_int(spadSock);
-
-  viewdata->hueOff    = get_int(spadSock);
-  viewdata->numOfHues = get_int(spadSock);
-
-  viewdata->lightVec[0]  = get_float(spadSock);
-  viewdata->lightVec[1]  = get_float(spadSock);
-  viewdata->lightVec[2]  = get_float(spadSock);
-  viewdata->translucency = get_float(spadSock);
-
-  viewdata->perspective = get_int(spadSock);
-  viewdata->eyeDistance = get_float(spadSock);
-
-  viewdata->numOfPoints = get_int(spadSock);
-  viewdata->points = (viewTriple *)malloc(viewdata->numOfPoints * 
sizeof(viewTriple));
-  for (i=0; i<viewdata->numOfPoints; i++) {
-    refPt(*viewdata,i)->x = get_float(spadSock);
-    refPt(*viewdata,i)->y = get_float(spadSock);
-    refPt(*viewdata,i)->z = get_float(spadSock);
-    refPt(*viewdata,i)->c = get_float(spadSock);
-          /* set min/max values */
-    if (firstPieceOfData) {
-      firstPieceOfData = no;
-      viewdata->xmin = viewdata->xmax = refPt(*viewdata,i)->x;
-      viewdata->ymin = viewdata->ymax = refPt(*viewdata,i)->y;
-      viewdata->zmin = viewdata->zmax = refPt(*viewdata,i)->z;
-      cMin = cMax = refPt(*viewdata,i)->c;
-    } else {
-      if (refPt(*viewdata,i)->x < viewdata->xmin) viewdata->xmin = 
refPt(*viewdata,i)->x;
-      else if (refPt(*viewdata,i)->x > viewdata->xmax) viewdata->xmax = 
refPt(*viewdata,i)->x;
-      if (refPt(*viewdata,i)->y < viewdata->ymin) viewdata->ymin = 
refPt(*viewdata,i)->y;
-      else if (refPt(*viewdata,i)->y > viewdata->ymax) viewdata->ymax = 
refPt(*viewdata,i)->y;
-      if (refPt(*viewdata,i)->z < viewdata->zmin) viewdata->zmin = 
refPt(*viewdata,i)->z;
-      else if (refPt(*viewdata,i)->z > viewdata->zmax) viewdata->zmax = 
refPt(*viewdata,i)->z;
-      if (refPt(*viewdata,i)->c < cMin) cMin = refPt(*viewdata,i)->c;
-      else if (refPt(*viewdata,i)->c > cMax) cMax = refPt(*viewdata,i)->c;
-    } /* if (firstPieceOfData) else */
-  } /* for i (point data) */
-
-  viewdata->lllp.numOfComponents = get_int(spadSock);
-  anLLPoint = viewdata->lllp.llp =
-    (LLPoint *)malloc(viewdata->lllp.numOfComponents*sizeof(LLPoint));
-  for (i=0; i<viewdata->lllp.numOfComponents; i++,anLLPoint++) {
-    anLLPoint->prop.closed = get_int(spadSock);
-    anLLPoint->prop.solid = get_int(spadSock);
-    anLLPoint->numOfLists = get_int(spadSock);
-    anLPoint = anLLPoint->lp =
-      (LPoint *)malloc(anLLPoint->numOfLists*sizeof(LPoint));
-    for (j=0; j<anLLPoint->numOfLists; j++,anLPoint++) {
-      anLPoint->prop.closed = get_int(spadSock);
-      anLPoint->prop.solid = get_int(spadSock);
-      anLPoint->numOfPoints = get_int(spadSock);
-      anIndex = anLPoint->indices =
-        (int *)malloc(anLPoint->numOfPoints*sizeof(int));
-      for (k=0; k<anLPoint->numOfPoints; k++,anIndex++)
-        *anIndex = get_int(spadSock);
-    } /* for LPoints in LLPoints (j) */
-  } /* for LLPoints in LLLPoints (i) */
-
-      /* now normalize the colors */
-  cNorm = cMax - cMin;
-         /*** new fields - cmin, cmax ***/
-  viewdata->cmin = cMin;
-  viewdata->cmax = cMax;
-
-  constantColor = (cNorm < 0.0001);
-  for (i=0; i<viewdata->numOfPoints; i++)
-    if (constantColor) refPt(*viewdata,i)->c = 0.5;
-    else refPt(*viewdata,i)->c = (refPt(*viewdata,i)->c - cMin)/cNorm;
-
-  viewdata->scaleDown = yes; 
-
-}
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/makegraph.c.pamphlet 
b/src/graph/viewman/makegraph.c.pamphlet
deleted file mode 100644
index 18dcc3d..0000000
--- a/src/graph/viewman/makegraph.c.pamphlet
+++ /dev/null
@@ -1,155 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman makegraph.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _MAKEGRAPH_C
-
-#include <stdlib.h>
-#include <stdio.h>
-
-#include "viewman.h"
-
-#include "sockio-c.h1"
-#include "makegraph.h1"
-
-graphStruct *
-makeGraphFromSpadData(void)
-{
-  
-  graphStruct     *graphData;
-  pointListStruct *pL;
-  pointStruct     *p;
-  int i,j;
-
-  if (!(graphData = (graphStruct *)malloc(sizeof(graphStruct)))) {
-    fprintf(stderr,"The viewport manager ran out of memory trying to create a 
new graph (graphStruct).\n");
-    exit(-1);
-  }
-
-  graphData->xmin = get_float(spadSock);   /* after everything is normalized */
-  graphData->xmax = get_float(spadSock);
-  graphData->ymin = get_float(spadSock);   /* view2d */
-  graphData->ymax = get_float(spadSock);
-
-  graphData->xNorm = 1/(graphData->xmax - graphData->xmin);
-  graphData->yNorm = 1/(graphData->ymax - graphData->ymin);
-
-  graphData->spadUnitX = get_float(spadSock);
-  graphData->spadUnitY = get_float(spadSock);
-
-  graphData->unitX = graphData->spadUnitX * graphData->xNorm;
-  graphData->unitY = graphData->spadUnitY * graphData->yNorm;
-
-  graphData->originX = -graphData->xmin * graphData->xNorm - 0.5;
-  graphData->originY = -graphData->ymin * graphData->yNorm - 0.5;
-
-
-  graphData->numberOfLists = get_int(spadSock);
-  if (!(pL = (pointListStruct *)malloc(graphData->numberOfLists * 
sizeof(pointListStruct)))) {
-    fprintf(stderr,"The viewport manager ran out of memory trying to create a 
new graph (pointListStruct).\n");
-    exit(-1);
-  }
-  graphData->listOfListsOfPoints = pL;
-
-  for (i=0; i<graphData->numberOfLists; i++) {
-
-    pL->numberOfPoints = get_int(spadSock);
-    if (!(p = (pointStruct *)malloc(pL->numberOfPoints * 
sizeof(pointStruct)))) {
-      fprintf(stderr,"The viewport manager ran out of memory trying to create 
a new graph (pointStruct).\n");
-      exit(-1);
-    }
-    pL->listOfPoints = p;             /** point to current point list **/
-
-    for (j=0; j<pL->numberOfPoints; j++) {
-      p->x     = get_float(spadSock);         /* get numbers from AXIOM */
-      p->y     = get_float(spadSock);
-      p->hue   = get_float(spadSock) - 1;     /* make zero based */
-      p->shade = get_float(spadSock) - 1;
-        /* normalize to range [-0.5..0.5] */
-      p->x = (p->x - graphData->xmin) * graphData->xNorm - 0.5;
-      p->y = (p->y - graphData->ymin) * graphData->yNorm - 0.5;
-      p++;
-    }
-        /* for now, getting hue, shade - do hue * totalHues + shade */
-    pL->pointColor = get_int(spadSock);
-    pL->lineColor = get_int(spadSock);
-    pL->pointSize = get_int(spadSock);
-    pL++;                          /** advance to next point list **/
-  }
-
-
-  graphData->key = graphKey++;
-  
-  send_int(spadSock,(graphKey-1));          /* acknowledge to spad */
-
-
-  return(graphData);
-
-}
-  
-
-void 
-discardGraph (graphStruct *theGraph)
-{
-
-  pointListStruct *pL;
-  int j;
-
-  for (j=0, pL=theGraph->listOfListsOfPoints; 
-          j<theGraph->numberOfLists; j++,pL++)
-    free(pL->listOfPoints);
-  free(theGraph->listOfListsOfPoints);
-  free(theGraph);
-
-}
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/readview.c.pamphlet 
b/src/graph/viewman/readview.c.pamphlet
deleted file mode 100644
index 3c739d4..0000000
--- a/src/graph/viewman/readview.c.pamphlet
+++ /dev/null
@@ -1,78 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman readview.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _READVIEW_C
-
-#include <unistd.h>
-#include <stdio.h>
-#include <errno.h>
-
-#include "viewman.h"
-
-#include "cleanup.h1"
-
-int 
-readViewport (viewManager *viewPort,void *info,int size)
-{
-
-  int canRead;
-
-again:  
-  if ((canRead=read(viewPort->viewIn,info,size)) > 0)   return(canRead); 
-  if (errno==EINTR || errno==EAGAIN) goto again;
-  return(-1);
-}
-
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/sselect.c.pamphlet 
b/src/graph/viewman/sselect.c.pamphlet
deleted file mode 100644
index 6722f7d..0000000
--- a/src/graph/viewman/sselect.c.pamphlet
+++ /dev/null
@@ -1,115 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman sselect.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _SSELECT_C
-
-#include <stdio.h>
-#include <errno.h>
-#include <sys/time.h>
-#include <sys/wait.h>
-#include <signal.h>
-
-#include "viewman.h"
-#include "bsdsignal.h"
-
-#include "sockio-c.h1"
-#include "bsdsignal.h1"
-#include "cleanup.h1"
-#include "sselect.h1"
-
-/*******************************************
- * int superSelect(n, rd, wr, ex, timeout) *
- *                                         *
- * superselect! if select returns a -1     *
- * due to an interrupt (EINTR), this       *
- * routine checks to see if it's a         *
- * child viewport that has closed.         *
- * Expected global variables:              *
- *   int  checkClosedChild                 *
- *******************************************/
- 
-int 
-superSelect(int n, int *rd, int *wr, int *ex, char *timeout)
-{
-  
-  int waiting;
-  viewManager *viewport;
-  int ret_val;
-  
-  ret_val = select(n, (void *)rd, (void *)wr, (void *)ex, (void *)timeout);
-  while (ret_val == -1 && errno == EINTR) {
-    /* checkClosedChild gets set by the SIGCHLD handler */
-    if (checkClosedChild) {
-      while ((waiting = wait(0)) == -1 );
-      viewport = viewports;
-      while ((viewport) && (viewport->PID != waiting))
-       viewport = viewport->nextViewport;
-      if (viewport) {
-       /* we shouldn't really be doing this since child is dead */
-       /* rmViewMgr(viewport); */
-       /* flush(spadSock); */
-        /* send_int(spadSock,1);   acknowledge to spad */
-        checkClosedChild = no;
-#if defined(BSDplatform) || defined(MACOSXplatform)
-        bsdSignal(SIGCHLD,endChild,DontRestartSystemCalls);
-#else
-        bsdSignal(SIGCLD,endChild,DontRestartSystemCalls);
-#endif
-      }
-    }
-    ret_val = select(n, (void *)rd, (void *)wr, (void *)ex, (void *)timeout);
-  }
-  return ret_val;
-}
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/viewman.c.pamphlet 
b/src/graph/viewman/viewman.c.pamphlet
deleted file mode 100644
index 429c91c..0000000
--- a/src/graph/viewman/viewman.c.pamphlet
+++ /dev/null
@@ -1,271 +0,0 @@
-\documentclass{article}
-\usepackage{axiom}
-\begin{document}
-\title{\$SPAD/src/graph/viewman viewman.c}
-\author{The Axiom Team}
-\maketitle
-\begin{abstract}
-\end{abstract}
-\eject
-\tableofcontents
-\eject
-\section{License}
-<<license>>=
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-@
-<<*>>=
-<<license>>
-
-#define _VIEWMAN_C
-
-#include <unistd.h>
-#include <sys/time.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <signal.h>
-#ifdef SGIplatform
-#include <bstring.h>
-#endif
-
-#include "viewman.h"
-#include "mode.h"
-#include "actions.h"
-#include "viewcommand.h"
-#include "bsdsignal.h"
-
-
-#include "bsdsignal.h1"
-#include "util.h1"
-#include "sockio-c.h1"
-#include "fun2d.h1"
-#include "fun3d.h1"
-#include "makegraph.h1"
-#include "readview.h1"
-#include "cleanup.h1"
-#include "sselect.h1"
-
-/************* global variables **************/
-
-Display *dsply;
-Window  root;
-XEvent  viewmanEvent;
-viewManager *viewports,
-  *slot,
-  *stepSlot;
-Sock        *spadSock;
-int         viewType, 
-  viewCommand,
-  acknow,
-  graphKey = 1,
-  defDsply,
-  currentGraph,
-  picked = no,
-  viewOkay  = 0,
-  viewError = -1,
-  checkClosedChild = no,
-  foundBrokenPipe = no;
-fd_set      filedes;
-graphStruct *graphList;
-graphStateStruct currentGraphState;
-char        *s1,
-  propertyBuffer[256];/* XProperty buffer */
-
-
-int
-main (void)
-{
-
-  graphStruct *aGraph;
-  int keepLooking,code;
-  
-  bsdSignal(SIGPIPE,brokenPipe,DontRestartSystemCalls);
-#if defined(BSDplatform) || defined(MACOSXplatform)
-  bsdSignal(SIGCHLD,endChild,RestartSystemCalls);
-#else
-  bsdSignal(SIGCLD,endChild,RestartSystemCalls);
-#endif
-  bsdSignal(SIGTERM,goodbye,DontRestartSystemCalls);
-  
-  /* Connect up to AXIOM server */
-  spadSock = connect_to_local_server(SpadServer,ViewportServer,Forever);
-  if (spadSock == NULL) {
-    fprintf(stderr,"The viewport manager couldn't connect to AXIOM\n");
-    exit(-1);
-  }
-#ifdef DEBUG
-  else
-    fprintf(stderr,"viewman: Connected to AXIOM\n");
-#endif
-  
-  /******** initialize ********/
-  viewports = 0;
-  graphList = 0;
-  
-  /******** getting stuff from spad and viewports ********
-  *********   the viewports have priority over    ****
-  ***   AXIOM.                              ***/
-  while (1) {
-    FD_ZERO(&filedes); /* zero out file descriptor */
-    FD_SET(spadSock->socket,&filedes);
-    slot = viewports;
-    while (slot) {
-      FD_SET(slot->viewIn,&filedes);
-      slot = slot->nextViewport;
-    }
-    
-#ifdef DEBUG
-    fprintf(stderr,"Selection for filedes of %x \n",filedes);
-#endif
-    code = check(superSelect(FD_SETSIZE,(void *) &filedes,0,0,0));
-    for (;code<=0;) 
-      code = check(superSelect(FD_SETSIZE,(void *)&filedes,0,0,0));
-    
-    slot = viewports;
-    keepLooking = 1;
-    while (keepLooking && slot) {
-      if (FD_ISSET(slot->viewIn,&filedes)) {
-        keepLooking = 0;
-#ifdef DEBUG
-        fprintf(stderr,"Reading child viewport...\n");
-#endif
-        readViewport(slot,&viewCommand,intSize);
-       
-        switch (viewCommand) {
-         
-        case pick2D:
-#ifdef DEBUG
-          fprintf(stderr,"viewman: Doing 2D pick\n");
-#endif
-          picked = yes;
-         
-          readViewport(slot,&currentGraph,intSize); /* get the graph to pick */
-          readViewport(slot,&currentGraphState,sizeof(graphStateStruct));
-          break;
-         
-        case drop2D:
-#ifdef DEBUG
-          fprintf(stderr,"viewman: Doing 2D drop\n");
-#endif
-          if (picked) {
-            write(slot->viewOut,&viewOkay,intSize);
-            write(slot->viewOut,&currentGraph,intSize);
-            sendGraphToView2D(0,currentGraph,slot,&currentGraphState);
-          } else {
-            write(slot->viewOut,&viewError,intSize);
-            fprintf(stderr,"The viewport manager cannot drop a graph because 
nothing has been picked yet.\n");
-          }
-          break;
-         
-        case viewportClosing:
-#ifdef DEBUG
-          fprintf(stderr,"viewman: closing viewport\n");
-#endif
-          closeChildViewport(slot);
-          break;
-
-        };  /* switch */
-       
-      };  /* if reading slot->viewIn */
-      stepSlot = slot;
-      slot = slot->nextViewport;
-    };  /* while */
-    
-    if (keepLooking) {   /* if  1 => slots not read, read from spad */
-#ifdef DEBUG
-      fprintf(stderr,"viewman: still looking\n");
-#endif
-      viewType = get_int(spadSock);
-      if (viewType == -1) goodbye(-1);
-      viewCommand = get_int(spadSock);
-      
-      switch (viewType) {
-        
-      case view3DType:
-#ifdef DEBUG
-        fprintf(stderr,"viewman: making 3D viewport\n");
-#endif
-        if (viewCommand == makeViewport) 
-          forkView3D(view3DType);
-       else 
-         funView3D(viewCommand);
-        
-        break;
-       
-      case viewTubeType:
-#ifdef DEBUG
-        fprintf(stderr,"viewman: viewing a tube\n");
-#endif
-        if (viewCommand == makeViewport) 
-          forkView3D(viewTubeType);
-       else 
-          funView3D(viewCommand);
-        
-        break;
-        
-      case viewGraphType:
-#ifdef DEBUG
-        fprintf(stderr,"viewman: making a graph\n");
-#endif
-        if (viewCommand == makeGraph) {
-          aGraph            = makeGraphFromSpadData();
-          aGraph->nextGraph = graphList;
-          graphList         = aGraph;
-        }
-        break;
-        
-      case view2DType:
-#ifdef DEBUG
-       fprintf(stderr,"viewman: forking 2D\n");
-#endif
-        if (viewCommand == makeViewport) {
-          forkView2D();
-        } else {
-          funView2D(viewCommand);
-        }
-        break;
-        
-      }   /* switch on viewType */
-    }   /* if (keepLooking) */ 
-  }   /* while (1) */
-}
-
-
-
-@
-\eject
-\begin{thebibliography}{99}
-\bibitem{1} nothing
-\end{thebibliography}
-\end{document}
diff --git a/src/graph/viewman/viewman.h b/src/graph/viewman/viewman.h
deleted file mode 100755
index d7df451..0000000
--- a/src/graph/viewman/viewman.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
-    - Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    - Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in
-      the documentation and/or other materials provided with the
-      distribution.
-
-    - Neither the name of The Numerical ALgorithms Group Ltd. nor the
-      names of its contributors may be used to endorse or promote products
-      derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
-OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include "view2d.h"
-#include "view3d.h"
-
-      /* Viewport Commands */
-#define makeViewport -1
-#define makeGraph    -1
-
-#define check(code) checker(code,__LINE__,"")
-#define maxConnect 40
-#define intSize sizeof(int)
-#define floatSize sizeof(float)
-#define yes 1
-#define no 0
-
-
-#include "com.h"
-#include "globalsm.h"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]