aboutsummaryrefslogtreecommitdiff
path: root/src/graph/viewman
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-04-05 21:06:47 +0000
committerdos-reis <gdr@axiomatics.org>2008-04-05 21:06:47 +0000
commit73bb103e111fb12bed013b2b3728d592c1a11587 (patch)
tree1a538a0253a133db5bed07f8dc85f6c5ad05b568 /src/graph/viewman
parentf165b636e6f5041cade0955284503864b07b9f63 (diff)
downloadopen-axiom-73bb103e111fb12bed013b2b3728d592c1a11587.tar.gz
Remove remaining K&R style prototypes.
Diffstat (limited to 'src/graph/viewman')
-rw-r--r--src/graph/viewman/cleanup.c27
-rw-r--r--src/graph/viewman/fun2D.c18
-rw-r--r--src/graph/viewman/fun3D.c14
-rw-r--r--src/graph/viewman/make2D.c10
-rw-r--r--src/graph/viewman/make3D.c6
-rw-r--r--src/graph/viewman/makeGraph.c13
-rw-r--r--src/graph/viewman/readView.c11
7 files changed, 10 insertions, 89 deletions
diff --git a/src/graph/viewman/cleanup.c b/src/graph/viewman/cleanup.c
index 6d42d963..761e7f92 100644
--- a/src/graph/viewman/cleanup.c
+++ b/src/graph/viewman/cleanup.c
@@ -16,7 +16,7 @@
the documentation and/or other materials provided with the
distribution.
- - Neither the name of The Numerical ALgorithms Group Ltd. nor the
+ - 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.
@@ -52,12 +52,7 @@
#include "readView.H1"
void
-#ifdef _NO_PROTO
-brokenPipe(sig)
-int sig;
-#else
brokenPipe(int sig)
-#endif
{
fprintf(stderr,
"The viewport manager tried to write to a non-existing pipe.\n");
@@ -65,12 +60,7 @@ brokenPipe(int sig)
void
-#ifdef _NO_PROTO
-endChild(sig)
-int sig;
-#else
endChild(int sig)
-#endif
{
checkClosedChild = yes;
@@ -87,12 +77,7 @@ endChild(int sig)
*****************************/
void
-#ifdef _NO_PROTO
-rmViewMgr(slotPtr)
- viewManager *slotPtr;
-#else
rmViewMgr(viewManager *slotPtr)
-#endif
{
int i,throwAway,code;
@@ -182,12 +167,7 @@ rmViewMgr(viewManager *slotPtr)
***********************************/
void
-#ifdef _NO_PROTO
-closeChildViewport(slotPtr)
- viewManager *slotPtr;
-#else
closeChildViewport(viewManager *slotPtr)
-#endif
{
int status;
@@ -206,12 +186,7 @@ closeChildViewport(viewManager *slotPtr)
*********************/
void
-#ifdef _NO_PROTO
-goodbye(sig)
-int sig;
-#else
goodbye(int sig)
-#endif
{
viewManager *v;
diff --git a/src/graph/viewman/fun2D.c b/src/graph/viewman/fun2D.c
index f2cdda03..49a84454 100644
--- a/src/graph/viewman/fun2D.c
+++ b/src/graph/viewman/fun2D.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.
+ Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.
All rights reserved.
Copyright (C) 2007-2008, Gabriel Dos Reis.
All rights reserved.
@@ -55,12 +55,7 @@
#define writeEach
void
-#ifdef _NO_PROTO
-funView2D(viewCommand)
- int viewCommand;
-#else
funView2D(int viewCommand)
-#endif
{
int code;
@@ -176,11 +171,7 @@ funView2D(int viewCommand)
}
void
-#ifdef _NO_PROTO
-forkView2D()
-#else
forkView2D(void)
-#endif
{
viewManager *viewport;
@@ -301,14 +292,7 @@ forkView2D(void)
void
-#ifdef _NO_PROTO
-sendGraphToView2D(i,there,viewport,doGraphStateArray)
- int i,there;
- viewManager *viewport;
- graphStateStruct *doGraphStateArray;
-#else
sendGraphToView2D(int i,int there,viewManager *viewport,graphStateStruct *doGraphStateArray)
-#endif
{
graphStruct *gPtr;
diff --git a/src/graph/viewman/fun3D.c b/src/graph/viewman/fun3D.c
index d50f06b4..15ed92e8 100644
--- a/src/graph/viewman/fun3D.c
+++ b/src/graph/viewman/fun3D.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.
+ Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.
All rights reserved.
Copyright (C) 2007-2008, Gabriel Dos Reis.
All rights reserved.
@@ -16,7 +16,7 @@
the documentation and/or other materials provided with the
distribution.
- - Neither the name of The Numerical ALgorithms Group Ltd. nor the
+ - 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.
@@ -52,12 +52,7 @@
#include "readView.H1"
void
-#ifdef _NO_PROTO
-funView3D(viewCommand)
- int viewCommand;
-#else
funView3D(int viewCommand)
-#endif
{
int code;
@@ -227,12 +222,7 @@ funView3D(int viewCommand)
}
void
-#ifdef _NO_PROTO
-forkView3D(typeOfViewport)
- int typeOfViewport;
-#else
forkView3D(int typeOfViewport)
-#endif
{
viewManager *viewport;
diff --git a/src/graph/viewman/make2D.c b/src/graph/viewman/make2D.c
index a4beba4e..74f89b78 100644
--- a/src/graph/viewman/make2D.c
+++ b/src/graph/viewman/make2D.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.
+ Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.
All rights reserved.
Copyright (C) 2007-2008, Gabriel Dos Reis.
All rights reserved.
@@ -16,7 +16,7 @@
the documentation and/or other materials provided with the
distribution.
- - Neither the name of The Numerical ALgorithms Group Ltd. nor the
+ - 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.
@@ -42,13 +42,7 @@
#include "make2D.H1"
void
-#ifdef _NO_PROTO
-makeView2DFromSpadData(viewdata,graphState)
- view2DStruct *viewdata;
- graphStateStruct graphState[];
-#else
makeView2DFromSpadData(view2DStruct *viewdata,graphStateStruct graphState[])
-#endif
{
int i;
diff --git a/src/graph/viewman/make3D.c b/src/graph/viewman/make3D.c
index 7cac382b..349ebf09 100644
--- a/src/graph/viewman/make3D.c
+++ b/src/graph/viewman/make3D.c
@@ -45,13 +45,7 @@
#include "make3D.H1"
void
-#ifdef _NO_PROTO
-makeView3DFromSpadData(viewdata,typeOfViewport)
- view3DStruct *viewdata;
- int typeOfViewport;
-#else
makeView3DFromSpadData(view3DStruct *viewdata,int typeOfViewport)
-#endif
{
int i,j,k;
diff --git a/src/graph/viewman/makeGraph.c b/src/graph/viewman/makeGraph.c
index 8f8fc540..69e0a656 100644
--- a/src/graph/viewman/makeGraph.c
+++ b/src/graph/viewman/makeGraph.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.
+ Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.
All rights reserved.
Copyright (C) 2007-2008, Gabriel Dos Reis.
All rights reserved.
@@ -16,7 +16,7 @@
the documentation and/or other materials provided with the
distribution.
- - Neither the name of The Numerical ALgorithms Group Ltd. nor the
+ - 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.
@@ -45,11 +45,7 @@
#include "makeGraph.H1"
graphStruct *
-#ifdef _NO_PROTO
-makeGraphFromSpadData()
-#else
makeGraphFromSpadData(void)
-#endif
{
graphStruct *graphData;
@@ -125,12 +121,7 @@ makeGraphFromSpadData(void)
void
-#ifdef _NO_PROTO
-discardGraph (theGraph)
- graphStruct *theGraph;
-#else
discardGraph (graphStruct *theGraph)
-#endif
{
pointListStruct *pL;
diff --git a/src/graph/viewman/readView.c b/src/graph/viewman/readView.c
index ba65b435..201e26b4 100644
--- a/src/graph/viewman/readView.c
+++ b/src/graph/viewman/readView.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd.
+ Copyright (C) 1991-2002, The Numerical Algorithms Group Ltd.
All rights reserved.
Copyright (C) 2007-2008, Gabriel Dos Reis.
All rights reserved.
@@ -16,7 +16,7 @@
the documentation and/or other materials provided with the
distribution.
- - Neither the name of The Numerical ALgorithms Group Ltd. nor the
+ - 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.
@@ -45,14 +45,7 @@
#include "cleanup.H1"
int
-#ifdef _NO_PROTO
-readViewport (viewPort,info,size)
- viewManager *viewPort;
- void *info;
- int size;
-#else
readViewport (viewManager *viewPort,void *info,int size)
-#endif
{
int canRead;