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

Comparing ray/src/ot/obj2mesh.c (file contents):
Revision 2.4 by greg, Fri Apr 18 21:47:45 2003 UTC vs.
Revision 2.7 by greg, Mon Jul 14 05:00:45 2003 UTC

# Line 6 | Line 6 | static const char RCSid[] = "$Id$";
6   */
7  
8   #include "copyright.h"
9 + #include "platform.h"
10   #include "standard.h"
11   #include "cvmesh.h"
12   #include "otypes.h"
# Line 57 | Line 58 | char  *argv[];
58                          error(USER, errmsg);
59                          break;
60                  }
61 +
62 +        if (i < argc-2)
63 +                error(USER, "too many file arguments");
64                                          /* initialize mesh */
65          cvinit(i==argc-2 ? argv[i+1] : "<stdout>");
66                                          /* load material input */
# Line 73 | Line 77 | char  *argv[];
77          if (i == argc-2)                /* open output file */
78                  if (freopen(argv[i+1], "w", stdout) == NULL)
79                          error(SYSTEM, "cannot open output file");
80 < #ifdef MSDOS
77 <        setmode(fileno(stdout), O_BINARY);
78 < #endif
80 >        SET_FILE_BINARY(stdout);
81          newheader("RADIANCE", stdout);  /* new binary file header */
82          printargs(i<argc ? i+1 : argc, argv, stdout);
83          fputformat(MESHFMT, stdout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines