tlsa / libcyaml

C library for reading and writing YAML.
ISC License
261 stars 58 forks source link

Multi-document streams #11

Open tlsa opened 6 years ago

tlsa commented 6 years ago

Decide how/whether to support multi-document streams.

Maybe the current API only supports single document streams, and a new one can be added that takes a client callback that is called for each new document created from the stream.

tlsa commented 6 years ago

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 are more a warning is logged.