1 |
– |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* cone.c - routines for making cones |
9 |
– |
* |
10 |
– |
* 2/12/86 |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "standard.h" |
11 |
|
|
12 |
|
#include "object.h" |
143 |
|
objerror(o, USER, "bad # arguments"); |
144 |
|
raderr: |
145 |
|
objerror(o, USER, "illegal radii"); |
146 |
+ |
return NULL; /* pro forma return */ |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
+ |
void |
151 |
|
freecone(o) /* free memory associated with cone */ |
152 |
|
OBJREC *o; |
153 |
|
{ |
156 |
|
if (co == NULL) |
157 |
|
return; |
158 |
|
if (co->tm != NULL) |
159 |
< |
free((char *)co->tm); |
160 |
< |
free((char *)co); |
159 |
> |
free((void *)co->tm); |
160 |
> |
free((void *)co); |
161 |
|
o->os = NULL; |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
+ |
void |
166 |
|
conexform(co) /* get cone transformation matrix */ |
167 |
|
register CONE *co; |
168 |
|
{ |