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

Comparing ray/src/common/wordfile.c (file contents):
Revision 2.22 by schorsch, Fri May 13 09:12:19 2016 UTC vs.
Revision 2.23 by greg, Fri May 13 16:24:26 2016 UTC

# Line 29 | Line 29 | wordfile(                      /* get words from fname, put in words */
29   {
30          int     wrdcnt = 0;
31          int     n = 0;
32        int dlen = 0;
32          int     fd;
33          char    buf[MAXWLEN];
34                                          /* load file into buffer */
# Line 41 | Line 40 | wordfile(                      /* get words from fname, put in words */
40                  return(-1);                     /* open error */
41          words[0] = NULL;
42          while (nargs > 1 && (n += read(fd, buf+n, MAXWLEN-n)) > 0) {
43 <                dlen = n;
43 >                int     dlen = n;
44                  int     crem = 0;
45                  if (n > MAXWLEN/2)              /* check for mid-word end */
46                          while (!isspace(buf[--n])) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines