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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.9 by greg, Thu Nov 19 20:25:55 1992 UTC vs.
Revision 2.10 by greg, Wed Feb 10 14:03:01 1993 UTC

# Line 74 | Line 74 | static char  *reserve_mem = NULL;      /* pre-allocated res
74   quit(code)                      /* quit program */
75   int  code;
76   {
77 + #ifdef MSTATS
78 +        if (code == 2 && errno == ENOMEM)
79 +                printmemstats(stderr);
80 + #endif
81          devclose();
82          exit(code);
83   }
# Line 185 | Line 189 | again:
189          else *++args = '\0';
190          
191          switch (inpbuf[0]) {
192 <        case 'f':                               /* new frame */
193 <                if (badcom("frame"))
194 <                        goto commerr;
192 >        case 'f':                               /* new frame (or free mem.) */
193 >                if (badcom("frame")) {
194 >                        if (badcom("free"))
195 >                                goto commerr;
196 >                        free_objmem();
197 >                        break;
198 >                }
199                  getframe(args);
200                  break;
201          case 'v':                               /* view */
# Line 225 | Line 233 | again:
233                          goto commerr;
234                  getaim(args);
235                  break;
236 <        case 'm':                               /* move camera */
236 >        case 'm':                               /* move camera (or memstats) */
237                  if (badcom("move"))
238   #ifdef  MSTATS
239                  {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines