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.2 by schorsch, Fri Aug 1 14:14:24 2003 UTC

# Line 102 | Line 102 | char  **argv;
102  
103   {
104   FILE  *fp;
105 #ifdef  UNIX
105   FILE  *popen();
107 #endif
106   char  comargs[200], command[300];
107  
110 #ifdef  CPM
111 fixargs("imagew", &argc, &argv);
112 #endif
113
108   progname = *argv++;
109   argc--;
110  
111   condonly = FALSE;
118 #ifdef  UNIX
112   conditioned = FALSE;
120 #else
121 conditioned = TRUE;
122 #endif
113  
114   while (argc && **argv == '-')  {
115      switch (*(*argv+1))  {
126 #ifdef  UNIX
116         case 'c':
117            condonly = TRUE;
118            break;
119         case 'r':
120            conditioned = TRUE;
121            break;
133 #endif
122         default:
123            error(WARNING, "unknown option");
124            break;
# Line 163 | Line 151 | char  **argv;
151         argc--;
152         }
153      sprintf(command, XCOM, comargs);
166 #ifdef  UNIX
154      if (condonly)
155         return(system(command));
156      else  {
# Line 176 | Line 163 | char  **argv;
163             nextpage();
164         puninit();
165         }
179 #endif
166      }
167  
168   return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines