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.3 by schorsch, Mon Oct 27 10:28:59 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9   */
10  
11  
12 + #include  "rtprocess.h"
13   #include  "meta.h"
13
14   #include  "imPcodes.h"
15
15   #include  "imPfuncs.h"
16  
17  
# Line 34 | Line 33 | char  **argv;
33  
34   {
35   FILE  *fp;
37 #ifdef  UNIX
38 FILE  *popen();
39 #endif
36   short  condonly, conditioned;
37   char  comargs[200], command[300];
38  
43 #ifdef  CPM
44 fixargs("impress", &argc, &argv);
45 #endif
46
39   progname = *argv++;
40   argc--;
41  
42   condonly = FALSE;
51 #ifdef  UNIX
43   conditioned = FALSE;
53 #else
54 conditioned = TRUE;
55 #endif
44  
45   while (argc && **argv == '-')  {
46      switch (*(*argv+1))  {
59 #ifdef  UNIX
47         case 'c':
48            condonly = TRUE;
49            break;
50         case 'r':
51            conditioned = TRUE;
52            break;
66 #endif
53         default:
54            error(WARNING, "unknown option");
55            break;
# Line 94 | Line 80 | char  **argv;
80         argc--;
81         }
82      sprintf(command, XCOM, comargs);
97 #ifdef  UNIX
83      if (condonly)
84         return(system(command));
85      else  {
# Line 103 | Line 88 | char  **argv;
88         plot(fp);
89         pclose(fp);
90         }
106 #endif
91      }
92  
93   if (!newpage)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines