| 100 | } |
| 101 | |
| 102 | static void stream_write(struct hc_slog *s, |
| 103 | const size_t n, |
| 104 | struct hc_slog_field *fields[]) { |
| 105 | struct hc_slog_stream *ss = hc_baseof(s, struct hc_slog_stream, slog); |
| 106 | |
| 107 | for(size_t i = 0; i < n; i++) { |
| 108 | struct hc_slog_field *f = fields[i]; |
| 109 | if (i) { hc_puts(ss->out, ", "); } |
| 110 | field_write(f, ss->out); |
| 111 | } |
| 112 | |
| 113 | hc_putc(ss->out, '\n'); |
| 114 | } |
| 115 | |
| 116 | struct hc_slog_stream *_hc_slog_stream_init(struct hc_slog_stream *s, |
| 117 | struct hc_stream *out, |
nothing calls this directly
no test coverage detected