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

Comparing ray/src/cal/rcalc.c (file contents):
Revision 1.17 by greg, Wed Feb 16 17:20:22 2005 UTC vs.
Revision 1.18 by greg, Thu Jun 2 04:47:27 2005 UTC

# Line 189 | Line 189 | char  *argv[]
189                                  break;
190                          case 'd':
191                                  bocols = 1;
192 +                                SET_FILE_BINARY(stdout);
193                                  break;
194                          case 'f':
195                                  bocols = -1;
196 +                                SET_FILE_BINARY(stdout);
197                                  break;
198 +                        default:
199 +                                goto userr;
200                          }
201                          break;
202                  case 'w':
# Line 208 | Line 212 | char  *argv[]
212   eputs(" [-b][-l][-n][-p][-w][-u][-tS][-s svar=sval][-e expr][-f source][-i infmt][-o outfmt] [file]\n");
213                          quit(1);
214                  }
215 <
215 >        if (bocols)
216 >                SET_FILE_BINARY(stdout);
217          if (noinput) {          /* produce a single output record */
218                  if (i < argc) {
219                          eputs(argv[0]);
# Line 219 | Line 224 | eputs(" [-b][-l][-n][-p][-w][-u][-tS][-s svar=sval][-e
224                  putout();
225                  quit(0);
226          }
227 +        if (nbicols)
228 +                SET_FILE_BINARY(stdin);
229  
230          if (blnkeq)             /* for efficiency */
231                  nbsynch();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines