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

Comparing ray/src/ot/initotypes.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:00:57 1991 UTC vs.
Revision 2.4 by schorsch, Sat Mar 27 12:41:45 2004 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1990 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Initialize ofun[] list for octree generator
6   */
7  
8   #include  "standard.h"
12
9   #include  "octree.h"
14
10   #include  "otypes.h"
11 + #include  "oconv.h"
12  
13 < extern int  o_sphere();
13 > extern int  o_sphere(); /* XXX way too much linker magic involved here */
14   extern int  o_face();
15   extern int  o_cone();
16   extern int  o_instance();
17 + extern int  o_mesh();
18  
19   FUN  ofun[NUMOTYPE] = INIT_OTYPE;
20  
21 <
22 < initotypes()                    /* initialize ofun array */
21 > void
22 > ot_initotypes(void)                     /* initialize ofun array */
23   {
24          ofun[OBJ_SPHERE].funp =
25          ofun[OBJ_BUBBLE].funp = o_sphere;
# Line 33 | Line 30 | initotypes()                   /* initialize ofun array */
30          ofun[OBJ_TUBE].funp =
31          ofun[OBJ_RING].funp = o_cone;
32          ofun[OBJ_INSTANCE].funp = o_instance;
33 +        ofun[OBJ_MESH].funp = o_mesh;
34   }
35  
36  
37 < o_default()                     /* default action is no intersection */
37 > int
38 > o_default(void)                 /* default action is no intersection */
39   {
40          return(O_MISS);
41   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines