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

Comparing ray/src/rt/devmain.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:09:01 1991 UTC vs.
Revision 2.2 by gregl, Tue Nov 11 20:02:59 1997 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12   *      10/25/89
13   */
14  
15 < #include <stdio.h>
15 > #include "standard.h"
16  
17   #include "color.h"
18  
19   #include "driver.h"
20  
21 int     (*wrnvec)(), (*errvec)(), (*cmdvec)();  /* error vectors, unused */
22
21   struct driver   *dev = NULL;                    /* output device */
22  
23   FILE    *devin, *devout;                        /* communications channels */
# Line 44 | Line 42 | char   *argv[];
42                                                  /* set up I/O */
43          progname = argv[0];
44          if (argc < 3) {
45 <                stderr_v("arg count\n");
45 >                eputs("arg count\n");
46                  quit(1);
47          }
48          devin = fdopen(atoi(argv[1]), "r");
49          devout = fdopen(atoi(argv[2]), "w");
50          if (devin == NULL || devout == NULL || getw(devin) != COM_SENDM) {
51 <                stderr_v("connection failure\n");
51 >                eputs("connection failure\n");
52                  quit(1);
53          }
54                                                  /* open device */
# Line 62 | Line 60 | char   *argv[];
60                                                  /* loop on requests */
61          while ((com = getc(devin)) != EOF) {
62                  if (com >= NREQUESTS || dev_func[com] == NULL) {
63 <                        stderr_v("invalid request\n");
63 >                        eputs("invalid request\n");
64                          quit(1);
65                  }
66                  (*dev_func[com])();             /* process request */
# Line 182 | Line 180 | register FILE  *fp;
180   }
181  
182  
183 < stderr_v(s)                             /* put string to stderr */
183 > eputs(s)                                /* put string to stderr */
184   register char  *s;
185   {
186          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines