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

Comparing ray/src/cv/thf2rad.c (file contents):
Revision 2.5 by greg, Mon Nov 8 13:43:34 1993 UTC vs.
Revision 2.7 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1990 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /* Copyright (c) 1988 Regents of the University of California */
5  
6   /*
# Line 13 | Line 10 | static char SCCSid[] = "$SunId$ LBL";
10   */
11  
12   #include <stdio.h>
13 + #include <stdlib.h>
14   #include <math.h>
15  
16   #define MAXSTR          128             /* maximum string or id length */
# Line 24 | Line 22 | typedef struct {
22  
23   double  rad = 0.0;                      /* line radius */
24  
27 #ifdef  DCL_ATOF
28 extern double  atof();
29 #endif
25  
31
26   main(argc, argv)
27   int     argc;
28   char    *argv[];
# Line 84 | Line 78 | char   *name, *file;
78                  if (name == NULL)
79                          name = file;
80          }
81 <        for (cp = nambuf; *cp = *name++; cp++)
81 >        for (cp = nambuf; (*cp = *name++); cp++)
82                  ;
83                                  /* get objects from file */
84          on = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines