| 136 | } |
| 137 | |
| 138 | static void context_write(struct hc_slog *s, |
| 139 | const size_t n, |
| 140 | struct hc_slog_field *fields[]) { |
| 141 | struct hc_slog_context *c = hc_baseof(s, struct hc_slog_context, slog); |
| 142 | struct hc_slog_field *fs[c->length + n]; |
| 143 | memcpy(fs, c->fields, sizeof(struct hc_slog_field *) * c->length); |
| 144 | memcpy(fs + c->length, fields, sizeof(struct hc_slog_field *) * n); |
| 145 | slog_write(c->parent, c->length + n, fs); |
| 146 | } |
| 147 | |
| 148 | struct hc_slog_context *hc_slog_context_init(struct hc_slog_context *c, |
| 149 | size_t length, |
nothing calls this directly
no test coverage detected