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

Comparing ray/src/cv/ies2rad.c (file contents):
Revision 2.13 by greg, Wed Jun 12 19:13:42 1996 UTC vs.
Revision 2.14 by greg, Tue Jun 18 21:28:52 1996 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12  
13   #include <stdio.h>
14   #include <math.h>
15 + #include <sys/types.h>
16   #include <ctype.h>
17   #include "color.h"
18   #include "paths.h"
# Line 127 | Line 128 | extern char    *strcpy(), *strcat(), *stradd(), *tailtrun
128                  *filename(), *libname(), *fullname(), *malloc(),
129                  *getword(), *atos();
130   extern float    *matchlamp();
131 + extern time_t   fdate();
132  
133   #define scnint(fp,ip)   cvtint(ip,getword(fp))
134   #define scnflt(fp,rp)   cvtflt(rp,getword(fp))
# Line 1048 | Line 1050 | FILE   *outfp;                 /* close output file upon return */
1050                  strcpy(cp, "| oconv - > ");
1051                  cp += 12;
1052                  fullname(cp,outname,T_OCT);
1053 <                if (system(buf)) {              /* create octree */
1053 >                if (fdate(inpname) > fdate(outname) &&
1054 >                                system(buf)) {          /* create octree */
1055                          fclose(outfp);
1056                          return(-1);
1057                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines