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

Comparing ray/src/meta/impress.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by schorsch, Fri Aug 1 14:14:24 2003 UTC

# Line 34 | Line 34 | char  **argv;
34  
35   {
36   FILE  *fp;
37 #ifdef  UNIX
37   FILE  *popen();
39 #endif
38   short  condonly, conditioned;
39   char  comargs[200], command[300];
40  
43 #ifdef  CPM
44 fixargs("impress", &argc, &argv);
45 #endif
46
41   progname = *argv++;
42   argc--;
43  
44   condonly = FALSE;
51 #ifdef  UNIX
45   conditioned = FALSE;
53 #else
54 conditioned = TRUE;
55 #endif
46  
47   while (argc && **argv == '-')  {
48      switch (*(*argv+1))  {
59 #ifdef  UNIX
49         case 'c':
50            condonly = TRUE;
51            break;
52         case 'r':
53            conditioned = TRUE;
54            break;
66 #endif
55         default:
56            error(WARNING, "unknown option");
57            break;
# Line 94 | Line 82 | char  **argv;
82         argc--;
83         }
84      sprintf(command, XCOM, comargs);
97 #ifdef  UNIX
85      if (condonly)
86         return(system(command));
87      else  {
# Line 103 | Line 90 | char  **argv;
90         plot(fp);
91         pclose(fp);
92         }
106 #endif
93      }
94  
95   if (!newpage)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines