11 |
|
|
12 |
|
#include "ray.h" |
13 |
|
#include "otypes.h" |
14 |
+ |
#include "rtotypes.h" |
15 |
|
#include "face.h" |
16 |
|
#include "cone.h" |
17 |
|
#include "instance.h" |
18 |
|
#include "data.h" |
19 |
|
#include "font.h" |
20 |
+ |
#include "func.h" |
21 |
+ |
#include "mesh.h" |
22 |
|
|
23 |
|
|
24 |
< |
int |
25 |
< |
free_os(op) /* free unneeded memory for object */ |
26 |
< |
register OBJREC *op; |
24 |
> |
extern int |
25 |
> |
free_os( /* free unneeded memory for object */ |
26 |
> |
register OBJREC *op |
27 |
> |
) |
28 |
|
{ |
29 |
|
if (op->os == NULL) |
30 |
|
return(0); |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
< |
int |
71 |
< |
free_objs(on, no) /* free some object structures */ |
72 |
< |
register OBJECT on; |
73 |
< |
OBJECT no; |
70 |
> |
extern int |
71 |
> |
free_objs( /* free some object structures */ |
72 |
> |
register OBJECT on, |
73 |
> |
OBJECT no |
74 |
> |
) |
75 |
|
{ |
76 |
|
int nfreed; |
77 |
|
register OBJREC *op; |
85 |
|
} |
86 |
|
|
87 |
|
|
88 |
< |
void |
89 |
< |
free_objmem() /* free all object cache memory */ |
88 |
> |
extern void |
89 |
> |
free_objmem(void) /* free all object cache memory */ |
90 |
|
{ |
91 |
|
free_objs(0, nobjects); |
92 |
|
freedata(NULL); |