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

Comparing ray/src/ot/oconv.c (file contents):
Revision 2.22 by greg, Tue Jun 17 18:18:50 2014 UTC vs.
Revision 2.24 by greg, Tue Jun 3 21:31:51 2025 UTC

# Line 20 | Line 20 | static const char RCSid[] = "$Id$";
20  
21   #define  MAXOBJFIL      255             /* maximum number of scene files */
22  
23 char  *progname;                        /* argv[0] */
24
23   int  nowarn = 0;                        /* supress warnings? */
24  
25   int  objlim = 6;                        /* # of objects before split */
# Line 54 | Line 52 | main(          /* convert object files to an octree */
52          OBJECT  startobj;
53          int  i;
54  
55 <        progname = argv[0] = fixargv0(argv[0]);
55 >        fixargv0(argv[0]);              /* sets global progname */
56  
57          ot_initotypes();
58  
# Line 178 | Line 176 | cputs(void)                                    /* interactive error */
176  
177   void
178   wputs(                          /* warning message */
179 <        char  *s
179 >        const char  *s
180   )
181   {
182          if (!nowarn)
# Line 188 | Line 186 | wputs(                         /* warning message */
186  
187   void
188   eputs(                          /* put string to stderr */
189 <        register char  *s
189 >        const char  *s
190   )
191   {
192          static int  inln = 0;
# Line 217 | Line 215 | eputs(                         /* put string to stderr */
215  
216   static void
217   addobject(                      /* add an object to a cube */
218 <        register CUBE  *cu,
218 >        CUBE  *cu,
219          OBJECT  obj
220   )
221   {
# Line 257 | Line 255 | addobject(                     /* add an object to a cube */
255  
256   static void
257   add2full(                       /* add object to full node */
258 <        register CUBE  *cu,
258 >        CUBE  *cu,
259          OBJECT  obj,
260          int  inc
261   )
# Line 266 | Line 264 | add2full(                      /* add object to full node */
264          OBJECT  oset[MAXSET+1];
265          CUBE  cukid;
266          unsigned char  inflg[(MAXSET+7)/8], volflg[(MAXSET+7)/8];
267 <        register int  i, j;
267 >        int  i, j;
268  
269          objset(oset, cu->cutree);
270          cukid.cusize = cu->cusize * 0.5;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines