166 |
|
error(WARNING, "reducing number of processes to match flush interval"); |
167 |
|
nproc = nextflush; |
168 |
|
} |
169 |
– |
switch (outform) { |
170 |
– |
case 'a': putreal = puta; break; |
171 |
– |
case 'f': putreal = putf; break; |
172 |
– |
case 'd': putreal = putd; break; |
173 |
– |
case 'c': |
174 |
– |
if (outvals[1] || !strchr("vrx", outvals[0])) |
175 |
– |
error(USER, "color format only with -ov, -or, -ox"); |
176 |
– |
putreal = putrgbe; break; |
177 |
– |
default: |
178 |
– |
error(CONSISTENCY, "botched output format"); |
179 |
– |
} |
169 |
|
if (nproc > 1) { /* start multiprocessing */ |
170 |
|
ray_popen(nproc); |
171 |
|
ray_fifo_out = printvals; |
230 |
|
if (!*vs) |
231 |
|
error(USER, "empty output specification"); |
232 |
|
|
233 |
+ |
switch (outform) { /* make sure (*putreal)() calls someone! */ |
234 |
+ |
case 'a': putreal = puta; break; |
235 |
+ |
case 'f': putreal = putf; break; |
236 |
+ |
case 'd': putreal = putd; break; |
237 |
+ |
case 'c': |
238 |
+ |
if (outvals[1] || !strchr("vrx", outvals[0])) |
239 |
+ |
error(USER, "color format only with -ov, -or, -ox"); |
240 |
+ |
putreal = putrgbe; break; |
241 |
+ |
default: |
242 |
+ |
error(CONSISTENCY, "botched output format"); |
243 |
+ |
} |
244 |
|
castonly = 1; /* sets castonly as side-effect */ |
245 |
|
do |
246 |
|
switch (*vs) { |