| 382 | } |
| 383 | |
| 384 | static void batch_write(struct batch_options *opt, const void *data, int len) |
| 385 | { |
| 386 | if (opt->buffer_output) { |
| 387 | if (fwrite(data, 1, len, stdout) != len) |
| 388 | die_errno("unable to write to stdout"); |
| 389 | } else |
| 390 | write_or_die(1, data, len); |
| 391 | } |
| 392 | |
| 393 | static void print_object_or_die(struct batch_options *opt, struct expand_data *data) |
| 394 | { |
no test coverage detected