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

Comparing ray/src/rt/initotypes.c (file contents):
Revision 2.6 by gwlarson, Wed Jan 20 14:10:06 1999 UTC vs.
Revision 2.9 by greg, Tue Mar 11 17:08:55 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 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 renderers
6   */
7  
8 + #include  "copyright.h"
9 +
10   #include  "standard.h"
11  
12   #include  "otypes.h"
# Line 18 | Line 17 | extern int  o_sphere();
17   extern int  o_face();
18   extern int  o_cone();
19   extern int  o_instance();
20 + extern int  o_mesh();
21   extern int  m_light();
22   extern int  m_normal();
23   extern int  m_aniso();
# Line 49 | Line 49 | initotypes()                   /* initialize ofun array */
49          ofun[OBJ_TUBE].funp =
50          ofun[OBJ_RING].funp = o_cone;
51          ofun[OBJ_INSTANCE].funp = o_instance;
52 +        ofun[OBJ_MESH].funp = o_mesh;
53          ofun[MAT_LIGHT].funp =
54          ofun[MAT_ILLUM].funp =
55          ofun[MAT_GLOW].funp =
# Line 99 | Line 100 | initotypes()                   /* initialize ofun array */
100   o_default()                     /* default action is error */
101   {
102          error(INTERNAL, "unexpected object call");
103 +                                /* call to pull in freeobjmem.o */
104 +        free_objs(0, 0);
105   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines