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

Comparing ray/src/ot/getbbox.c (file contents):
Revision 2.5 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 2.6 by schorsch, Sat Mar 27 12:41:45 2004 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include  "standard.h"
11
11   #include  "octree.h"
13
12   #include  "object.h"
13 + #include  "oconv.h"
14  
15   char  *progname;                        /* argv[0] */
16  
# Line 21 | Line 20 | void  (*addobjnotify[])() = {NULL};    /* new object noti
20  
21   FVECT  bbmin, bbmax;                    /* bounding box */
22  
23 < addobject(o)                    /* add object to bounding box */
24 < OBJREC  *o;
23 > static void addobject(OBJREC    *o);
24 >
25 >
26 >
27 > static void
28 > addobject(                      /* add object to bounding box */
29 >        OBJREC  *o
30 > )
31   {
32          add2bbox(o, bbmin, bbmax);
33   }
34  
35  
36 < main(argc, argv)                /* read object files and compute bounds */
37 < int  argc;
38 < char  **argv;
36 > int
37 > main(           /* read object files and compute bounds */
38 >        int  argc,
39 >        char  **argv
40 > )
41   {
42          extern char  *getenv();
43          int  nohead = 0;
# Line 69 | Line 76 | char  **argv;
76          printf("%9g %9g %9g %9g %9g %9g\n", bbmin[0], bbmax[0],
77                          bbmin[1], bbmax[1], bbmin[2], bbmax[2]);
78          quit(0);
79 +        return 0; /* pro forma return */
80   }
81  
82  
83   void
84 < quit(code)                              /* exit program */
85 < int  code;
84 > quit(                           /* exit program */
85 >        int  code
86 > )
87   {
88          exit(code);
89   }
90  
91  
92   void
93 < cputs()                                 /* interactive error */
93 > cputs(void)                                     /* interactive error */
94   {
95          /* referenced, but not used */
96   }
97  
98  
99   void
100 < wputs(s)                                /* warning message */
101 < char  *s;
100 > wputs(                          /* warning message */
101 >        char  *s
102 > )
103   {
104          if (!nowarn)
105                  eputs(s);
# Line 97 | Line 107 | char  *s;
107  
108  
109   void
110 < eputs(s)                                /* put string to stderr */
111 < register char  *s;
110 > eputs(                          /* put string to stderr */
111 >        register char  *s
112 > )
113   {
114          static int  inln = 0;
115  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines