18 |
|
|
19 |
|
#include "otypes.h" |
20 |
|
|
21 |
+ |
static int putint(), putstr(), puttree(), putobj(); |
22 |
|
|
23 |
+ |
|
24 |
|
writeoct(store, scene, ofn) /* write octree structures to stdout */ |
25 |
|
int store; |
26 |
|
CUBE *scene; |
29 |
|
char sbuf[64]; |
30 |
|
register int i; |
31 |
|
/* write format number */ |
32 |
< |
putint((long)OCTMAGIC, 2); |
32 |
> |
putint((long)(OCTMAGIC+sizeof(OBJECT)), 2); |
33 |
|
|
34 |
|
if (!(store & IO_BOUNDS)) |
35 |
|
return; |
110 |
|
int e; |
111 |
|
|
112 |
|
putint((long)(frexp(f,&e)*0x7fffffff), 4); |
113 |
< |
putint(e, 1); |
113 |
> |
putint((long)e, 1); |
114 |
|
} |
115 |
|
|
116 |
|
|
149 |
|
for (i = 0; i < o->oargs.nsargs; i++) |
150 |
|
putstr(o->oargs.sarg[i]); |
151 |
|
#ifdef IARGS |
152 |
< |
putint(o->oargs.niargs, 2); |
152 |
> |
putint((long)o->oargs.niargs, 2); |
153 |
|
for (i = 0; i < o->oargs.niargs; i++) |
154 |
< |
putint(o->oargs.iarg[i], 4); |
154 |
> |
putint((long)o->oargs.iarg[i], 4); |
155 |
|
#endif |
156 |
|
putint((long)o->oargs.nfargs, 2); |
157 |
|
for (i = 0; i < o->oargs.nfargs; i++) |