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

Comparing ray/src/hd/rholo2.c (file contents):
Revision 3.10 by gregl, Thu Dec 18 09:33:35 1997 UTC vs.
Revision 3.11 by gregl, Sat Jan 10 16:37:10 1998 UTC

# Line 124 | Line 124 | getradfile()                   /* run rad and get needed variables */
124          register char   *cp;
125                                          /* check if rad file specified */
126          if (!vdef(RIF))
127 <                return;
127 >                return(0);
128                                          /* create rad command */
129          mktemp(tf1);
130          sprintf(tf2, "%s.rif", tf1);
# Line 150 | Line 150 | getradfile()                   /* run rad and get needed variables */
150          if (system(combuf)) {
151                  unlink(tf2);                    /* clean up */
152                  unlink(tf1);
153 <                error(USER, "error executing rad command");
153 >                error(WARNING, "error executing rad command");
154 >                return(-1);
155          }
156          if (pippt == NULL) {
157                  loadvars(tf2);                  /* load variables */
# Line 158 | Line 159 | getradfile()                   /* run rad and get needed variables */
159          }
160          rtargc += wordfile(rtargv+rtargc, tf1); /* get rtrace options */
161          unlink(tf1);                    /* clean up */
162 +        return(1);
163   }
164  
165  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines