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

Comparing ray/src/common/fputword.c (file contents):
Revision 3.10 by greg, Fri Nov 13 01:06:14 2020 UTC vs.
Revision 3.11 by greg, Sat Aug 3 15:32:59 2024 UTC

# Line 30 | Line 30 | FILE  *fp;
30                  else if ((cp > s) & (*cp == '\'') && cp[1])
31                          quote = '"';
32  
33 <        if (hasspace || quote) {        /* output with quotes */
33 >        if (!*s | hasspace | quote) {   /* output with quotes */
34                  if (!quote) quote = '"';
35                  fputc(quote, fp);
36                  fputs(s, fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines