| 57 | } |
| 58 | |
| 59 | static struct hc_value *field_init(struct hc_slog_field *f, |
| 60 | const char *name, |
| 61 | const struct hc_type *type) { |
| 62 | f->name = strdup(name); |
| 63 | hc_value_init(&f->value, type); |
| 64 | return &f->value; |
| 65 | } |
| 66 | |
| 67 | struct hc_slog_field *hc_slog_bool(const char *name, const bool value) { |
| 68 | struct hc_slog_field *f = malloc(sizeof(struct hc_slog_field)); |
no test coverage detected