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.5 by schorsch, Sun Jun 8 12:03:09 2003 UTC vs.
Revision 1.7 by schorsch, Sun Jul 27 22:12:01 2003 UTC

# Line 15 | Line 15 | static const char RCSid[] = "$Id$";
15  
16   #include  "platform.h"
17   #include  "calcomp.h"
18 + #include  "rterror.h"
19  
20   #ifdef  CPM
21   #define  getc           agetc   /* text files only, right? */
# Line 616 | Line 617 | getfield(                             /* get next fiel
617   register struct field  *f
618   )
619   {
620 <        static char  buf[MAXWORD+1];            /* no recursion! */
620 >        static char  buf[RMAXWORD+1];            /* no recursion! */
621          int  delim, inword;
622          double  d;
623          char  *np;
# Line 661 | Line 662 | register struct field  *f
662                                  *cp++ = ipb.chr;
663                                  scaninp();
664                          }
665 <                } while (inword && cp < &buf[MAXWORD]);
665 >                } while (inword && cp < &buf[RMAXWORD]);
666                  *cp = '\0';
667                  if (f->f.sv->val == NULL)
668                          f->f.sv->val = savqstr(buf);    /* first setting */
# Line 690 | Line 691 | register struct field  *f
691                                  *cp++ = ipb.chr;
692                                  scaninp();
693                          }
694 <                } while (inword && cp < &buf[MAXWORD]);
694 >                } while (inword && cp < &buf[RMAXWORD]);
695                  *cp = '\0';
696                  d = np==NULL ? 0. : atof(np);
697                  if (!vardefined(f->f.nv))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines