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

Comparing ray/src/common/loadvars.c (file contents):
Revision 2.2 by greg, Wed Jan 17 15:45:16 1996 UTC vs.
Revision 2.4 by greg, Fri Apr 19 09:09:28 1996 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
18   extern char  *malloc(), *realloc();
19   #endif
20  
21 + extern char  *fgetline();
22  
23 +
24   loadvars(rfname)                /* load variables into vv from file */
25   char    *rfname;
26   {
# Line 76 | Line 78 | register char  *ass;
78          for (n = strlen(ass); n > 0; n--)
79                  if (!isspace(ass[n-1]))
80                          break;
81 <        if (!n && !nowarn) {
82 <                fprintf(stderr, "%s: warning - missing value for variable '%s'\n",
83 <                                progname, varname);
81 >        if (!n) {
82 >                if (!nowarn)
83 >                        fprintf(stderr,
84 >                        "%s: warning - missing value for variable '%s'\n",
85 >                                        progname, varname);
86                  return;
87          }
88                                          /* match variable from list */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines