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

Comparing ray/src/cal/rcalc.c (file contents):
Revision 1.18 by greg, Thu Jun 2 04:47:27 2005 UTC vs.
Revision 1.19 by greg, Tue Jun 14 01:25:02 2005 UTC

# Line 646 | Line 646 | getrec(void)                           /* get next record from file */
646          register struct field  *f;
647  
648          while (ipb.chr != EOF) {
649 <                if (blnkeq)             /* beware of nbsynch() */
649 >                if (blnkeq) {           /* beware of nbsynch() */
650                          while (isblnk(ipb.chr))
651                                  resetinp();
652 +                        if (ipb.chr == EOF)
653 +                                return(0);
654 +                }
655                  eatline = (!igneol && ipb.chr != '\n');
656                  clearrec();             /* start with fresh record */
657                  for (f = inpfmt; f != NULL; f = f->next)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines