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

Comparing ray/src/common/testBSDF.c (file contents):
Revision 1.12 by greg, Mon May 15 22:15:40 2017 UTC vs.
Revision 1.13 by greg, Thu May 10 01:41:33 2018 UTC

# Line 108 | Line 108 | main(int argc, char *argv[])
108                          printf("Manufacturer: '%s'\n", bsdf->makr);
109                          printf("Width, Height, Thickness (m): %.4e, %.4e, %.4e\n",
110                                          bsdf->dim[0], bsdf->dim[1], bsdf->dim[2]);
111 <                        printf("Has geometry: %s\n", bsdf->mgf ? "yes" : "no");
111 >                        if (bsdf->mgf)
112 >                                printf("Has geometry: %lu bytes\n",
113 >                                                (unsigned long)strlen(bsdf->mgf));
114 >                        else
115 >                                printf("Has geometry: no\n");
116                          continue;
117                  case 'C':                       /* report constant values */
118                          if (!bsdf)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines