ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/util/pvsum.c
(Generate patch)

Comparing ray/src/util/pvsum.c (file contents):
Revision 2.7 by greg, Fri Oct 24 16:31:18 2025 UTC vs.
Revision 2.8 by greg, Fri Oct 24 22:41:10 2025 UTC

# Line 32 | Line 32 | int    xres=0, yres=0;                 /* input image dimensions */
32   char    viewspec[128] = "";             /* VIEW= line from first header */
33   char    pixasp[48] = "";                /* PIXASPECT= line from header */
34  
35 + int     gargc;                          /* global argc */
36 + char    **gargv;                        /* global argv */
37 +
38   RMATRIX *cmtx = NULL;                   /* coefficient matrix */
39  
40   /* does the given spec contain integer format? */
# Line 255 | Line 258 | open_output(char *ospec, int fno)
258                  fputs(cmtx->info, fp);
259          else
260                  fputnow(fp);
261 +        printargs(gargc, gargv, fp);    /* this command */
262          if (fno >= 0)
263                  fprintf(fp, "FRAME=%d\n", fno);
264          if (viewspec[0])
# Line 563 | Line 567 | int
567   main(int argc, char *argv[])
568   {
569          int     a;
570 +
571 +        gargc = argc;                   /* for header output */
572 +        gargv = argv;
573  
574          for (a = 1; a < argc-1 && argv[a][0] == '-'; a++)
575                  switch (argv[a][1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)