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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.10 by greg, Thu Apr 1 11:21:18 1993 UTC vs.
Revision 2.13 by greg, Sun Feb 27 10:16:57 1994 UTC

# Line 197 | Line 197 | char   *argv[];
197          if (ourpict == NULL || ourzbuf == NULL)
198                  syserror(progname);
199          bzero((char *)ourzbuf, hresolu*vresolu*sizeof(float));
200 +                                                        /* new header */
201 +        newheader("RADIANCE", stdout);
202                                                          /* get input */
203          for ( ; i < argc; i += 2)
204                  addpicture(argv[i], argv[i+1]);
# Line 241 | Line 243 | char   *s;
243   {
244          char    fmt[32];
245  
246 <        if (isformat(s)) {
247 <                formatval(fmt, s);
246 >        if (isheadid(s))
247 >                return;
248 >        if (formatval(fmt, s)) {
249                  wrongformat = strcmp(fmt, COLRFMT);
250                  return;
251          }
# Line 303 | Line 306 | char   *pfile, *zspec;
306                  register int    x;
307                  if (!isfloat(zspec) || (zvalue = atof(zspec)) <= 0.0)
308                          syserror(zspec);
306                        exit(1);
309                  for (x = scanlen(&tresolu); x-- > 0; )
310                          zin[x] = zvalue;
311          }
# Line 696 | Line 698 | char   *prog, *args;
698          cp = combuf;
699          wp = argv;
700          for ( ; ; ) {
701 <                while (isspace(*cp)) cp++;
702 <                if (!*cp) break;
703 <                *wp++ = cp;
704 <                while (!isspace(*cp))
705 <                        if (!*cp++) goto done;
706 <                *cp++ = '\0';
701 >                while (isspace(*cp))    /* nullify spaces */
702 >                        *cp++ = '\0';
703 >                if (!*cp)               /* all done? */
704 >                        break;
705 >                *wp++ = cp;             /* add argument to list */
706 >                while (*++cp && !isspace(*cp))
707 >                        ;
708          }
706 done:
709          *wp = NULL;
710                                                  /* start process */
711          if ((rval = open_process(PDesc, argv)) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines