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

Comparing ray/src/meta/imagew.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 46 | Line 46 | static const char      RCSid[] = "$Id$";
46  
47  
48  
49 <
49 > #include  "rtprocess.h"
50   #include  "meta.h"
51
51   #include  "plot.h"
53
52   #include  "span.h"
53  
54  
55  
58
56   char  *progname;
57  
58   struct span  outspan;
# Line 102 | Line 99 | char  **argv;
99  
100   {
101   FILE  *fp;
105 #ifdef  UNIX
106 FILE  *popen();
107 #endif
102   char  comargs[200], command[300];
103  
110 #ifdef  CPM
111 fixargs("imagew", &argc, &argv);
112 #endif
113
104   progname = *argv++;
105   argc--;
106  
107   condonly = FALSE;
118 #ifdef  UNIX
108   conditioned = FALSE;
120 #else
121 conditioned = TRUE;
122 #endif
109  
110   while (argc && **argv == '-')  {
111      switch (*(*argv+1))  {
126 #ifdef  UNIX
112         case 'c':
113            condonly = TRUE;
114            break;
115         case 'r':
116            conditioned = TRUE;
117            break;
133 #endif
118         default:
119            error(WARNING, "unknown option");
120            break;
# Line 163 | Line 147 | char  **argv;
147         argc--;
148         }
149      sprintf(command, XCOM, comargs);
166 #ifdef  UNIX
150      if (condonly)
151         return(system(command));
152      else  {
# Line 176 | Line 159 | char  **argv;
159             nextpage();
160         puninit();
161         }
179 #endif
162      }
163  
164   return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines