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

Comparing ray/src/gen/gensky.c (file contents):
Revision 2.27 by greg, Thu Nov 7 23:15:07 2019 UTC vs.
Revision 2.28 by greg, Sat Jul 25 19:18:01 2020 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   *     3/26/86
11   */
12  
13 < #include  <stdio.h>
13 > #include  "rtio.h"
14   #include  <stdlib.h>
15 #include  <string.h>
15   #include  <math.h>
16   #include  <ctype.h>
17   #include  "sun.h"
# Line 87 | Line 86 | void printdefaults(void);
86   void userror(char  *msg);
87   double normsc(void);
88   int cvthour(char  *hs);
90 void printhead(int  ac, char  **av);
89  
90  
91   int
# Line 184 | Line 182 | main(
182          "%s: warning - %.1f hours btwn. standard meridian and longitude\n",
183                          progname, (s_longitude-s_meridian)*12/PI);
184  
185 <        printhead(argc, argv);
185 >        fputs("# ", stdout);
186 >        printargs(argc, argv, stdout);
187  
188          computesky();
189          printsky();
# Line 419 | Line 418 | cvthour(                       /* convert hour string */
418                  fprintf(stderr, " %s", tzone[i].zname);
419          putc('\n', stderr);
420          exit(1);
422 }
423
424
425 void
426 printhead(              /* print command header */
427        int  ac,
428        char  **av
429 )
430 {
431        putchar('#');
432        while (ac--) {
433                putchar(' ');
434                fputs(*av++, stdout);
435        }
436        putchar('\n');
421   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines