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

Comparing ray/src/util/getinfo.c (file contents):
Revision 2.10 by greg, Mon Jul 28 17:25:03 2014 UTC vs.
Revision 2.12 by greg, Mon Sep 8 18:21:39 2014 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21   #endif
22  
23   #ifdef _WIN32
24 + #include <process.h>
25   #define execvp  _execvp
26   #endif
27  
# Line 62 | Line 63 | main(
63          } else if (argc > 2 && !strcmp(argv[1], "-c")) {
64                  SET_FILE_BINARY(stdin);
65                  SET_FILE_BINARY(stdout);
66 +                setvbuf(stdin, NULL, _IONBF, 2);
67                  getheader(stdin, (gethfunc *)fputs, stdout);
68                  printargs(argc-2, argv+2, stdout);
69                  fputc('\n', stdout);
# Line 145 | Line 147 | static void
147   copycat(void)                   /* copy input to output */
148   {
149          char    buf[8192];
150 <        ssize_t n;
150 >        int     n;
151  
152          fflush(stdout);
153          while ((n = fread(buf, 1, sizeof(buf), stdin)) > 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines