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

Comparing ray/src/cal/lam.c (file contents):
Revision 1.19 by greg, Thu Jul 4 17:36:04 2019 UTC vs.
Revision 1.20 by greg, Fri Jul 5 00:20:57 2019 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include <ctype.h>
14  
15   #include "platform.h"
16 #include "rtprocess.h"
16   #include "rtio.h"
17  
18   #define MAXFILE         512             /* maximum number of files */
# Line 23 | Line 22 | static const char      RCSid[] = "$Id$";
22   FILE    *input[MAXFILE];
23   int     bytsiz[MAXFILE];
24   char    *tabc[MAXFILE];
25 < int     nfiles;
25 > int     nfiles = 0;
26  
27   char    buf[MAXLINE];
28  
29   int
30 < main(argc, argv)
32 < int     argc;
33 < char    *argv[];
30 > main(int argc, char *argv[])
31   {
32          long    incnt = 0;
33          int     unbuff = 0;
# Line 40 | Line 37 | char   *argv[];
37          int     puteol;
38          int     i;
39  
43        nfiles = 0;
40          for (i = 1; i < argc; i++) {
41                  if (argv[i][0] == '-') {
42                          switch (argv[i][1]) {
# Line 149 | Line 145 | char   *argv[];
145                          if (bytsiz[i] > 0) {            /* binary input */
146                                  if (getbinary(buf, bytsiz[i], 1, input[i]) < 1)
147                                          break;
152                                if (i)
153                                        fputs(tabc[i], stdout);
148                                  putbinary(buf, bytsiz[i], 1, stdout);
149                          } else if (bytsiz[i] < 0) {     /* multi-line input */
150                                  int     n = -bytsiz[i];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines