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

Comparing ray/src/cv/rad2mgf.c (file contents):
Revision 2.16 by greg, Sat Feb 22 02:07:23 2003 UTC vs.
Revision 2.18 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   #include "standard.h"
9   #include <ctype.h>
10   #include <string.h>
11 + #include <stdio.h>
12 +
13 + #include "platform.h"
14   #include "object.h"
15   #include "color.h"
16   #include "lookup.h"
# Line 260 | Line 263 | char   *id;
263                  *cp2++ = 'O';
264          }
265          for (cp = id; cp < end; *cp2++ = *cp++) {
266 <                if (*cp < '!' | *cp > '~')      /* limit to visible chars */
266 >                if ((*cp < '!') | (*cp > '~'))  /* limit to visible chars */
267                          *cp = '?';
268                  diff += *cp != *cp2;
269          }
# Line 425 | Line 428 | FUNARGS        *fa;
428          register char   *cp;
429          register int    i;
430  
431 <        if (fa->nfargs < 9 | fa->nfargs % 3)
431 >        if ((fa->nfargs < 9) | (fa->nfargs % 3))
432                  return(-1);
433          setmat(mod);
434          setobj(id);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines