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

Comparing ray/src/gen/gensdaymtx.c (file contents):
Revision 1.6 by greg, Tue Apr 15 20:15:50 2025 UTC vs.
Revision 1.7 by greg, Fri Jun 6 19:11:21 2025 UTC

# Line 15 | Line 15 | static const char RCSid[] = "$Id$";
15   #include "atmos.h"
16   #include "copyright.h"
17   #include "data.h"
18 + #include "paths.h"
19   #include "platform.h"
20   #include "rtio.h"
21   #include "rtmath.h"
# Line 40 | Line 41 | enum {
41          NSUNPATCH = 4      /* max. # patches to spread sun into */
42   };
43  
43 char    *progname;
44   double  altitude;          /* Solar altitude (radians) */
45   double  azimuth;                /* Solar azimuth (radians) */
46   int             julian_date;    /* Julian date */
# Line 508 | Line 508 | int main(int argc, char *argv[])
508          int                     i, j;
509          FVECT           view_point      = {0, 0, ER};
510  
511 <        progname = argv[0];
511 >        fixargv0(argv[0]);
512  
513          for (i = 1; i < argc && argv[i][0] == '-'; i++) {
514                  switch (argv[i][1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines