ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/writeoct.c
(Generate patch)

Comparing ray/src/ot/writeoct.c (file contents):
Revision 1.3 by greg, Thu Sep 6 23:30:13 1990 UTC vs.
Revision 2.1 by greg, Tue Nov 12 17:00:58 1991 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
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;
# Line 27 | Line 29 | char  *ofn[];
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;
# Line 108 | Line 110 | double  f;
110          int  e;
111  
112          putint((long)(frexp(f,&e)*0x7fffffff), 4);
113 <        putint(e, 1);
113 >        putint((long)e, 1);
114   }
115  
116  
# Line 147 | Line 149 | register OBJREC  *o;
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++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines