Results 53 comments of Michael Drake

Unions are basically implemented on the [tlsa/unions](https://github.com/tlsa/libcyaml/commits/tlsa/unions) branch, but I need to write a load of tests for it.

That's a good idea, I could make a `CYAML_BINARY` type that does that. At the moment, it would load as a string, and you would need to base64 decode manually....

Once we have `CYAML_BINARY`, the YAML `!!binary` tag becomes redundant. It would be simple to implement `CYAML_BINARY` in the same way as `CYAML_SEQUENCE` is implemented at the moment. However, `CYAML_SEQUENCE`...

I don't have Windows myself. Please update to the latest `main` branch (commit `6f2ad8b1278853e0cf2ee9a4ae8bc3179dd532ec`), and build with: ```bash make Q= ``` That should indicate what command it is saying has...

The `cyaml_load_file` call has to take a double pointer (`cyaml_data_t **data`) because it needs to return the pointer to a new allocation to the caller through a function parameter (the...

This is already supported. A schema such as: ```c static const cyaml_schema_field_t schema_book_fields[] = { CYAML_FIELD_UINT("page", CYAML_FLAG_DEFAULT, struct book_t, page), CYAML_FIELD_END }; static const cyaml_schema_value_t schema_book_mapping = { CYAML_VALUE_MAPPING(CYAML_FLAG_DEFAULT, struct...

Oh, I see what you mean. There is no support for C99 flexible array members. It would be a bit ugly to support them, because the YAML input could have...

Hi, It's still on my radar. I'll get to this after I've finished working on https://github.com/tlsa/libcyaml/issues/90. Both will require ABI breaking changes, so it will mean making a v2.0.0 of...

I've been thinking about this. It kind of goes against the core principal of the library, which is that it simply slots data into client-defined data structures. I was assuming...

https://github.com/tlsa/libcyaml/pull/12 fixes the issue where subsequent documents would trample the data for the first document. So with this, only the first document in the stream is loaded, and if there...